summaryrefslogtreecommitdiff
path: root/ivfdec.c
AgeCommit message (Collapse)Author
2018-05-10Remove extra line in warnings in ivfdec.cJerome Jiang
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
2016-07-19top-level: apply clang-formatclang-format
Change-Id: Ibd5395bf8956a80f7c0df4d539c7a42c927a1fc7
2016-06-03ivfdec: tolerate invalid framerates (2)James Zern
add an upper bound to the framerate denominator above which 30fps will be reported; fixes warning in corrupt / fuzzed files Change-Id: I46a6a6f34ab756535cd009fe12273d83dcc1e9f1
2016-05-31ivfdec: tolerate invalid frameratesJames Zern
default invalid framerates to 30, quiets warnings in corrupt / fuzzed files Change-Id: Ib10d2b67df83cb6f9ed1cd6ef8e0e637aa7099ff
2014-02-26Reusing mem_get_le{16, 32} defined in vpx_ports/mem_opts.h.Dmitry Kovalev
Change-Id: If4b5209ac14aaba6f1c1014bc0497baa8eabfaff
2014-02-05Adding video reader/writer APIs.Dmitry Kovalev
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
2014-01-24Implementing simple API to read video files.Dmitry Kovalev
New API is supposed to be used from example code. Current implementation only supports IVF containers (will be extended to Y4M). Change-Id: Ib7da87237690b1a28297bdf03bc41c6836a84b7e
2014-01-15Cleaning up ivf-related code.Dmitry Kovalev
Change-Id: I80f3e197562f3424acddbff786a5d0d209fbd666
2014-01-13Removing VpxInputContext dependency from {ivf, raw}_read_frame().Dmitry Kovalev
File type check inside ivf_read_frame() is not necessary (it is done before this function get called). Change-Id: Iede8feb358d25878b340473d85c3b01d701fc624
2014-01-06Fix encoding Raw yv12 and i420 from a pipe.Alex Converse
rewind() does not work on pipes. https://code.google.com/p/webm/issues/detail?id=678 Change-Id: I057f1e25c3f5662012d6e33ff4c97c88f50df357
2013-11-19Fix a bug in vpxenc reading raw input frameYaowu Xu
The bug was introduced in 00a35aab. The reading of raw yuv input frame was off by 4 bytes. Change-Id: I6923ea5528aa529a47a06b64adca8f94847f19a6
2013-11-15vpx[dec|enc]: Extract IVF support from the apps.Tom Finegan
- 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
2010-10-25rename ivf{enc,dec} to vpx{enc,dec}John Koleszar
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
2010-10-25ivfdec: support y4m output from raw inputJohn Koleszar
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
2010-10-25ivfdec: webm reader supportJohn Koleszar
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
2010-10-11Remove ivfenc usage message leading underscoresJohn Koleszar
An earlier automatic transform changed eg '\nOptions' to '\n_options' which is incorrect in these printfs. Fix these. Change-Id: I7e0f37931ef82b79fadddd7058ce0df5572e2ca1
2010-09-09Use WebM in copyright notice for consistencyJohn Koleszar
Changes 'The VP8 project' to 'The WebM project', for consistency with other webmproject.org repositories. Fixes issue #97. Change-Id: I37c13ed5fbdb9d334ceef71c6350e9febed9bbba
2010-06-18cosmetics: trim trailing whitespaceJohn Koleszar
When the license headers were updated, they accidentally contained trailing whitespace, so unfortunately we have to touch all the files again. Change-Id: I236c05fade06589e417179c0444cb39b09e4200d
2010-06-14Use public domain implementation for MD5 algorithmAndres Mejia
The RSA Data Security, Inc. implementation license bears a requirement similar to the old problematic BSD license with advertising clause. Change-Id: I877b71ff0548934b1c4fd87245696f53dedbdf26
2010-06-04LICENSE: update with latest textJohn Koleszar
Change-Id: Ieebea089095d9073b3a94932791099f614ce120c
2010-06-03Add support for YUV4MPEG2 output.Timothy B. Terriberry
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
2010-05-24vpx_image: add VPX_ prefix to PLANE_*John Koleszar
The PLANE_{PACKED,Y,U,V,ALPHA} macros should be renamed to be within the VPX_ namespace. Fixes #27
2010-05-24install includes in DIST_DIR/include/vpx, move vpx_codec/ to vpx/John Koleszar
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
2010-05-18Initial WebM releaseJohn Koleszar