summaryrefslogtreecommitdiff
path: root/ivfdec.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra line in warnings in ivfdec.cJerome Jiang2018-05-101-4/+4
| | | | | | | | | | | | | | | | The warnings give an extra line which is confusing sometimes. E.g. Warning: Read invalid frame size (308164564) // This is for frame 5 Warning: Failed to decode frame 5: Invalid parameter Warning: Read invalid frame size (1936229463) // This is for frame 6 Warning: Failed to decode frame 6: Invalid parameter Warning: Read invalid frame size (2282536257) Change-Id: I1753fa32079deca5c8b534c6ca9a527cc9e491e9
* top-level: apply clang-formatclang-format2016-07-191-6/+6
| | | | Change-Id: Ibd5395bf8956a80f7c0df4d539c7a42c927a1fc7
* ivfdec: tolerate invalid framerates (2)James Zern2016-06-031-1/+1
| | | | | | | add an upper bound to the framerate denominator above which 30fps will be reported; fixes warning in corrupt / fuzzed files Change-Id: I46a6a6f34ab756535cd009fe12273d83dcc1e9f1
* ivfdec: tolerate invalid frameratesJames Zern2016-05-311-1/+1
| | | | | | | default invalid framerates to 30, quiets warnings in corrupt / fuzzed files Change-Id: Ib10d2b67df83cb6f9ed1cd6ef8e0e637aa7099ff
* Reusing mem_get_le{16, 32} defined in vpx_ports/mem_opts.h.Dmitry Kovalev2014-02-261-0/+2
| | | | Change-Id: If4b5209ac14aaba6f1c1014bc0497baa8eabfaff
* Adding video reader/writer APIs.Dmitry Kovalev2014-02-051-65/+0
| | | | | | | Right now only IVF format is supported which is enough for example code. Other formats like y4m, webm, raw yuv will be supported later. Change-Id: I34c6f20731c1851947587ca5c589d7856b675164
* Implementing simple API to read video files.Dmitry Kovalev2014-01-241-4/+71
| | | | | | | New API is supposed to be used from example code. Current implementation only supports IVF containers (will be extended to Y4M). Change-Id: Ib7da87237690b1a28297bdf03bc41c6836a84b7e
* Cleaning up ivf-related code.Dmitry Kovalev2014-01-151-21/+21
| | | | Change-Id: I80f3e197562f3424acddbff786a5d0d209fbd666
* Removing VpxInputContext dependency from {ivf, raw}_read_frame().Dmitry Kovalev2014-01-131-8/+2
| | | | | | | File type check inside ivf_read_frame() is not necessary (it is done before this function get called). Change-Id: Iede8feb358d25878b340473d85c3b01d701fc624
* Fix encoding Raw yv12 and i420 from a pipe.Alex Converse2014-01-061-5/+0
| | | | | | | | rewind() does not work on pipes. https://code.google.com/p/webm/issues/detail?id=678 Change-Id: I057f1e25c3f5662012d6e33ff4c97c88f50df357
* Fix a bug in vpxenc reading raw input frameYaowu Xu2013-11-191-3/+4
| | | | | | | The bug was introduced in 00a35aab. The reading of raw yuv input frame was off by 4 bytes. Change-Id: I6923ea5528aa529a47a06b64adca8f94847f19a6
* vpx[dec|enc]: Extract IVF support from the apps.Tom Finegan2013-11-151-0/+118
| | | | | | | | - Move IVF reading support into ivfdec.c and ivfdec.h - Move IVF writing support into ivfenc.c and ivfenc.h - Removed IVF writing code from the SVC example in favor of ivfenc. Change-Id: I70adf6240d0320fdd232d8546ed573f0f68dd793
* rename ivf{enc,dec} to vpx{enc,dec}John Koleszar2010-10-251-898/+0
| | | | | | | | | | | The new WebM output support should be preferred to IVF, but we can't change the default behavior of the ivf* tools. There are a few other default behaviors for these tools that are counterintuitive for historical reasons, and changing the binary name provides the opportunity to clean those up as well. This patch takes the first step by renaming the binaries. Change-Id: I647008ae37cc352dd27ec1da7ed13489e0609b24
* ivfdec: support y4m output from raw inputJohn Koleszar2010-10-251-37/+69
| | | | | | | | | | The width and height needed to write the Y4M header can be found by probing the stream with vpx_codec_peek_stream_info(). This also has the consequence of supporting multiple codecs from raw files with automatic detections, should we add additional codecs in the future. Change-Id: I7522a8f4c7577b6ed9876d744c59cd86d30c6049
* ivfdec: webm reader supportJohn Koleszar2010-10-251-31/+257
| | | | | | | | | | | | | | | | | | | This patch enables ivfdec to decode WebM files. WebM demuxing is provided by the Matthew Gregan's Nestegg library. This patch also makes minor changes to the timebase->framerate handling when doing Y4M output. For WebM files, the framerate is guessed by looking at the first second of video. For IVF files, the timebase=1/(2*fps) hack is still in place, but is only used if the timebase denominator is less than 1000. This is in anticipation of change I8d25b5b, which introduces the distinction between framerate and timebase to ivfenc. In the case of high resolution timebases, like 100ns, we would have to guess the framerate like we do for WebM, but since WebM support in ivfenc will deprecate IVF output, we just assume 30fps rather than writing the lookahead code. Change-Id: I1dd8600f13bf6071533d2816f005da9ede4f60a2
* Remove ivfenc usage message leading underscoresJohn Koleszar2010-10-111-1/+1
| | | | | | | An earlier automatic transform changed eg '\nOptions' to '\n_options' which is incorrect in these printfs. Fix these. Change-Id: I7e0f37931ef82b79fadddd7058ce0df5572e2ca1
* Use WebM in copyright notice for consistencyJohn Koleszar2010-09-091-1/+1
| | | | | | | | | Changes 'The VP8 project' to 'The WebM project', for consistency with other webmproject.org repositories. Fixes issue #97. Change-Id: I37c13ed5fbdb9d334ceef71c6350e9febed9bbba
* cosmetics: trim trailing whitespaceJohn Koleszar2010-06-181-2/+2
| | | | | | | | When the license headers were updated, they accidentally contained trailing whitespace, so unfortunately we have to touch all the files again. Change-Id: I236c05fade06589e417179c0444cb39b09e4200d
* Use public domain implementation for MD5 algorithmAndres Mejia2010-06-141-4/+4
| | | | | | | The RSA Data Security, Inc. implementation license bears a requirement similar to the old problematic BSD license with advertising clause. Change-Id: I877b71ff0548934b1c4fd87245696f53dedbdf26
* LICENSE: update with latest textJohn Koleszar2010-06-041-4/+5
| | | | Change-Id: Ieebea089095d9073b3a94932791099f614ce120c
* Add support for YUV4MPEG2 output.Timothy B. Terriberry2010-06-031-4/+50
| | | | | | | These files can be played back directly in most major open-source media frameworks without the need for additional patches or parameters. Change-Id: I59f98c1658298245c688f7d107cf393445e470d5
* vpx_image: add VPX_ prefix to PLANE_*John Koleszar2010-05-241-6/+6
| | | | | | | The PLANE_{PACKED,Y,U,V,ALPHA} macros should be renamed to be within the VPX_ namespace. Fixes #27
* install includes in DIST_DIR/include/vpx, move vpx_codec/ to vpx/John Koleszar2010-05-241-2/+2
| | | | | | | | | | This renames the vpx_codec/ directory to vpx/, to allow applications to more consistently reference these includes with the vpx/ prefix. This allows the includes to be installed in /usr/local/include/vpx rather than polluting the system includes directory with an excessive number of includes. Change-Id: I7b0652a20543d93f38f421c60b0bbccde4d61b4f
* Initial WebM releasev0.9.0John Koleszar2010-05-181-0/+593