Mercurial > mxe-octave
view src/of-video-1-fixes.patch @ 4073:03ed5810b068
of-video: add video package
* src/of-video.mk: new file
* src/of-video-1-fixes.patch: new file
* Makefile.in: add of-video to forge packages
* index.html: add of-video package
author | John Donoghue |
---|---|
date | Wed, 06 Jan 2016 15:59:32 -0500 |
parents | |
children | 7c123db86666 |
line wrap: on
line source
diff -ur video-1.2.1.orig/src/oct-avifile.cc video-1.2.1/src/oct-avifile.cc --- video-1.2.1.orig/src/oct-avifile.cc 2016-01-06 12:44:20.588188244 -0500 +++ video-1.2.1/src/oct-avifile.cc 2016-01-06 12:59:04.321779847 -0500 @@ -57,6 +57,14 @@ } void +Avifile::print(std::ostream& os, bool pr_as_read_syntax) +{ + os << "AVI movie [" << filename << "][" << av->get_codec() << "]: " + << frames << " frame" << (frames != 1 ? "s" : "") << ", " + << frame_rows << "x" << frame_columns << "\n"; +} + +void Avifile::addframe(const NDArray &f) { if (frames == 0) diff -ur video-1.2.1.orig/src/oct-avifile.h video-1.2.1/src/oct-avifile.h --- video-1.2.1.orig/src/oct-avifile.h 2016-01-06 12:44:20.588188244 -0500 +++ video-1.2.1/src/oct-avifile.h 2016-01-06 12:58:15.673572910 -0500 @@ -52,6 +52,7 @@ ~Avifile(void); void print(std::ostream& os, bool pr_as_read_syntax) const; + void print(std::ostream& os, bool pr_as_read_syntax=false); void addframe(const NDArray &f);