summaryrefslogtreecommitdiff
path: root/vpxdec.c
AgeCommit message (Collapse)Author
2017-11-28vpx{enc,dec}: add --helpJames Zern
only output short usage to stderr on error, with --help use stdout Change-Id: I7089f3bca829817e14b14c766f4f3eaee6f54e5c
2017-04-20Fix the decoder seg fault when frame is corrupted.Jerome Jiang
BUG=webm:1399 Change-Id: I1e006e0260d9b56a4d2273659ca19b86c69c474b
2017-03-29vpxdec: silently ignore -frame-parallelJames Zern
BUG=webm:1395 Change-Id: Ibf47cc931e51b71e49067c6d7b7a39ab57c11c96
2017-01-13Add CSV per-frame stats to vpxdec.Peter Boström
Used with --framestats=file.csv. Currently prints raw codec QP (not internal 0-63 range) and bytes per frame. Change-Id: Ifbb90129c218dda869eaf5b810bad12a32ebd82d
2016-11-03vp9-svc: Add decoder control to decode up to x spatial layers.Marco
Change-Id: I85536473b8722424785c84c5b5520960b4e5744a
2016-10-31vpxdec.c : don't double count corrupted framesJim Bankoski
A past patch made it so that every frame that had a decode error caused a corrupted frame to be counted. Unfortunately it was possible to get both a decode error and a corrupt frame for the same frame and thus double count an error. This code makes that impossible. Change-Id: Iea973727422a3bf093ffda72fa358a285736048b
2016-10-24vpxdec: return fail if frame fails to decode.Jim Bankoski
A failure to decode is most likely equivalent to a corrupt frame for the purpose of returning a failure. Change-Id: Ie53db2b8130b40b725841f5f7a299d63aa56913d
2016-09-27vpxdec: avoid memory leaks under most conditionsJames Zern
avoids false positives when fuzzing with ASan+LSan. Change-Id: I0d23b530ae80e5692b6951fe6e3690ea44159a5a
2016-09-20vp8: remove VP8_SET_DBG* control supportJames Zern
the --enable-postproc-visualizer configure option remains as a no-op as do the control names and values for compatibility + remove the corresponding debug flags from vpxdec: --pp-* Change-Id: I4a001cd9962b59560d7d6bda6272d4ff32b8d37c
2016-09-16zero structures completelyJohann
Use vp[89]_zero when possible. Expand the {} set when neither is available or nearby. Change-Id: Ifc1f46f60100916cd798bf7be3a10f09321c99bd
2016-07-19top-level: apply clang-formatclang-format
Change-Id: Ibd5395bf8956a80f7c0df4d539c7a42c927a1fc7
2016-06-17remove vp10James Zern
development has moved to the nextgenv2 branch and a snapshot from here was used to seed aomedia BUG=b/29457125 Change-Id: Iedaca11ec7870fb3a4e50b2c9ea0c2b056a0d3c0
2016-04-26TODO cleanup: Remove unused buffer_sizeVignesh Venkatasubramanian
Remove unused variable buffer_size and rename bytes_in_buffer to buffer_size in webm_read_frame. Change-Id: I18b6ccbb044cd366610a5e39d83883cc0b174051
2015-10-06vpxdec: quiet signed/unsigned warningJames Zern
Change-Id: I93c56dfa547af9b2f2b96c4f85fd9862ea67af62
2015-09-25Rename display_{size,width,height} to render_*.Ronald S. Bultje
The name "display_*" (or "d_*") is used for non-compatible information (that is, the cropped frame dimensions in pixels, as opposed to the intended screen rendering surface size). Therefore, continuing to use display_* would be confusing to end users. Instead, rename the field to render_*, so that struct vpx_image can include it. Change-Id: Iab8d2eae96492b71c4ea60c4bce8121cb2a1fe2d
2015-09-11vpxdec: remove implied --output-bit-depth=8 for --yv12.Ronald S. Bultje
Change-Id: I28c939db49334572476aa2b428ec93111d4e869d
2015-09-11Don't convert bitdepth for !single-file or MD5.Ronald S. Bultje
... unless --output-bit-depth was set. Change-Id: I3482eaf12e245eec24427518fccdd173f890f4b4
2015-08-14Remove vp10's build dependency on vp9Yaowu Xu
CONFIG_VP9_HIGHBITDEPTH is currently used by both vp9 and vp10, but in many place outside vp9/vp10, the macro was used in conjunction of CONFIG_VP9. This created a dependency on vp9 for vp10 to build. This commit removes the dependency by use CONFIG_VP9_HIGHBITDEPTH only in these places. Change-Id: I8cc007fc9cf132394c6498ce6759e606b64a6ad0
2015-08-11Fork VP9 and VP10 codebaseJingning Han
This commit folks the VP9 and VP10 codebase and makes libvpx support VP8, VP9, and VP10. Change-Id: I81782e0b809acb3c9844bee8c8ec8f4d5e8fa356
2015-06-05vpxdec: cosmetics: break some long linesJames Zern
Change-Id: I95827a6f5e585d2accbb8fc09501f2d38db585e4
2015-05-11vpxdec: make some functions staticJames Zern
silences missing-prototype warnings Change-Id: I080d2a24eeb6faa8c160683cc1fbf30d3b0b49e5
2015-05-11tools_common.h: fix usage_exit() prototypeJames Zern
+ the definitions in the examples silences a missing-prototype warning Change-Id: I7c064cacd6d2073a6107de6c3e2cc46ef8a68411
2015-03-26Fix the issue that --limit is not working in --frame-parallel mode.hkuang
The reason is due to early break out before outputting all the frames inside decoder. Change-Id: I4a138fba08d12935c39bd7602c95f8c18b474e29
2015-03-18Initialize "corrupted" to zeroJohann
Because the call to vpx_codec_control at line 928 is now guarded by !frame_parallel, 'corrupted' may not be set. Change-Id: Id166bd8a8cdb5e5120fca1640011a3545f6e178a
2015-03-16Add frame parallel decode option to vpxdec.hkuang
Change-Id: I0ba02d501d65a2f219fa1bb87b8eb81f7e6ab332
2015-02-24Fix a trivial memory leakHanno Böck
Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
2015-02-05vpxdec: correct file op error messagesJames Zern
- use fatal() consistently - correct wording in output file open failure message Change-Id: I4dafe03c6eece6df53375f72adf0d5964e211c9a
2014-12-17vpxdec: ignore GET_FRAME_CORRUPTED error w/--keep-goingJames Zern
this function may return an error if no frame is available; --keep-going is meant to test decoder resilience, so simply warn in this case. Change-Id: I6e6aed3e78eca21cca80d7d8a06a1a244685ba29
2014-12-12vpxdec: Rename the libyuv scale wrapper.Tom Finegan
The other name was misleading: We do not export scaling support from libvpx via vpx_im{g,age}*. Change-Id: I8acb4ea0301f08c9bab557a4063ea35d147b4631
2014-10-21Adding test vectors for profile 2 and 3Deb Mukherjee
Also adds mising test vectors for profile 1. Change-Id: I5269af8b9e6b708ce50a0d9c69b6cae4bb2870dc
2014-10-13Resolves some lint errorsDeb Mukherjee
And also fixes some style consistency issues. Change-Id: I3dc6d44e17d2d6075dc9b02c4255a7395046c5e0
2014-10-08Refactoring of highbitdepth bitshift operationsDeb Mukherjee
Moves the high bitdepth bit-shift operations to tools_common.c Change-Id: Ifab91574362609cd224d2d6bae5fde00652eb3e4
2014-10-01Adds support of 440 content.Deb Mukherjee
Adds enums and corresponding vpx level code. Change-Id: Ia402d47490a4466988d7edc6b7e3e5163f20a381
2014-09-29Miscellaneous decoder changes for high bitdepthDeb Mukherjee
Also includes yv12 config changes. Change-Id: Iacf40d8bf486815b54c32a127ce3cd4516b7e44f
2014-09-15Remove memset of every external frame buffer.Frank Galligan
Libvpx was memseting every external frame buffer before decode. This was to work around a valgrind issue in our C loop filter. Most of the time this was not needed and we have noticed some significant performance loss on some platforms. Now we require the application to zero out the buffers if it is using external frame buffers. Change-Id: I7330d00a315e65137ed30edd5f813e8929b76242
2014-09-02Removing legacy compatibility layer.Dmitry Kovalev
Change-Id: I6fdcea0e0faf42386dd2b8f972a3b3fb2c21b2c7
2014-09-02Adds config opt for highbitdepth + misc. vpxDeb Mukherjee
Adds config parameter vp9_highbitdepth, to support highbitdepth profiles. Also includes most vpx level high bit-depth functions. However encode/decode in the highbitdepth profiles will not work until the rest of the code is in place. Change-Id: I34c53b253c38873611057a6cbc89a1361b8985a6
2014-08-26Merge "Set scaled img format correctly in vpxdec"Deb Mukherjee
2014-08-22vpxdec: fix --keep-going with --disable-vp8James Zern
the parsing of this flag was mistakenly put in a CONFIG_VP8_DECODER conditional block in: 95853db vpxdec: add --keep-going option Change-Id: Ie83ca0399fd3f3d4b0a9d03b7ca5536b310e1f02
2014-08-22Set scaled img format correctly in vpxdecDeb Mukherjee
Use img->fmt rather than hardcoded I420P to support profiles 1-3. Change-Id: I31fc89e545208243e133512d41e2d97995a968ce
2014-08-19Merge changes I13d975d1,I26710359James Zern
* changes: vpxenc: fix compile with --disable-libyuv vpxdec: fix compile with --disable-libyuv
2014-08-19vpxdec.c : resolve uninitialized member warningJim Bankoski
Change-Id: Icd07ee241b1e36bb4c9e40e592bae259e65f2ce4
2014-08-15vpxdec: fix compile with --disable-libyuvJames Zern
Change-Id: I267103595f28c9d9dce2bc38e6db4e371acc7235
2014-08-13Initialization to prevent asan failure on google3Deb Mukherjee
Reinstates an assignment to prevent an asan failurere on google3. Not sure why the failure happens. This was removed in a recent patch https://gerrit.chromium.org/gerrit/#/c/71068/. Change-Id: Ifd9ccffd4c2164f4de38b21821ffb28bd779b0f3
2014-08-12fixes several -Wunused-function warningsJim Bankoski
Change-Id: I4dc2cb255f4fe30998b6ee61184895dee9f5da8e
2014-08-04vpxdec warning errors addressedJim Bankoski
Change-Id: I4e2aeaef3e6efd5be3cb963d2eba5e08dc89b803
2014-07-16Adds support for raw yuv files for 422/444Deb Mukherjee
Adds support for raw yuv inputs in 422/444 sampling for use in profiles 1 and 3. New options added to vpxenc are: --i422 and --i444, which are to be used in conjunction with --width, --height, and --fps for proper raw yuv handling. A new option is added to vpxdec: --rawvideo, which enforces raw yuv video output for the bit-stream decoded irrespective of 420, 422 or 444 sampling. The existing options --i420 and --yv12 are specialized for use only for 420 content. Change-Id: I2e3028380709afa673bf2e2c25ad5e271a626055
2014-07-15Renames interface field in VpxInterfaceDeb Mukherjee
Renames interface to codec_interface since it is a reserved word on windows. Change-Id: I84f2cbf257a4c44f16dc2464127e35ee405c2c3e
2014-07-14Misc. bit-depth related changesDeb Mukherjee
Sets the bit-depth field as default 8 in the image structure in vp8. Generalizes yuv read in preparation for support for reading 422/444 for 8-bit and 10/12-bit. Change-Id: I560c13c348b122fd028e408431156376b895058c
2014-07-05Adds support for reading and writing 10/12-bit y4mDeb Mukherjee
The y4m extension used is the same as the one used in ffmpeg/x264. The patch is adapted from the highbitdepth branch. Also adds unit tests for y4m header parsing and md5 check of the raw frame data, as well as y4m writing. [build fix for Mac/VS by not using tuples with strings] Change-Id: I40897ee37d289e4b6cea6fedc67047d692b8cb46