summaryrefslogtreecommitdiff
path: root/vpxdec.c
Commit message (Collapse)AuthorAgeFilesLines
* vpxdec: clear -Wshadow warningsJames Zern2023-04-121-8/+9
| | | | | Bug: webm:1793 Change-Id: I0b7f013682229cde50df7c62db9dab6eab0fd341
* examples: add missing argv_dup alloc checksJames Zern2022-04-281-1/+8
| | | | Change-Id: Ia3080cbf50071d599c7168a20466392a963f101a
* vpxdec: add some allocation checksJames Zern2022-04-111-0/+13
| | | | | | see also: https://crbug.com/aomedia/3244 Change-Id: I7d151e63a91b8c1a5ee4e861f0b8461eeece6a2f
* Fix argv leak on Unrecognized input file type errWan-Teh Chang2019-12-061-0/+1
| | | | | | | Free argv (allocated by argv_dup) after the "Unrecognized input file type" error. Change-Id: I2b6273a1abca2ff8e51445fb15839bd993c41741
* add y4m support to vp9 example encoders.Jerome Jiang2019-01-301-4/+4
| | | | | | vp9_spatial_svc_encoder and vpx_temporal_svc_encoder. Change-Id: I8dfa1dfad83c83a26ddac4e7c57b5f1ff161e588
* vpx{dec,enc}: resolve missing declarationsJohann2018-12-211-1/+1
| | | | | | BUG=webm:1584 Change-Id: I81e53e579e6fd22b7b21f432256abbe91bf77b15
* Loopfilter Multi-Thread OptimizationSupradeep T R2018-10-081-11/+40
| | | | | | | | | | | Take the original loopfilter multi-thread optimization (dafe064289a917977439ab6f4f002b9946496084) along with the fixes for bugs 1558 and 1562. BUG=webm:1558 BUG=webm:1562 Change-Id: Ibbf6bd13f4ffff0e79184ccfd6b85a49e067a6d8
* vpxdec: only call row-mt control for vp9Harish Mahendrakar2018-07-261-2/+3
| | | | | BUG=webm:1549 Change-Id: Ib31b22f0d982e3a7c6a200274582cda7528d1ec9
* Add Flag to Enable Row Based MultiThreadingVenkatarama NG. Avadhani2018-07-201-8/+17
| | | | | | | | | This commit adds a command line argument "--row-mt". Passing "--row-mt=1" will set the row_mt flag in the decoder context. This flag will be used to determine whether row-wise multi-threading path is to be taken when the row-wise multi-threading functions are added. Change-Id: I35a5393a2720254437daa5e796630709049e0bc2
* vpxdec,raw_read_frame: fix eof returnJames Zern2018-07-091-1/+2
| | | | | | | | | | | fixes an endless loop caused by successful read return on eof. since: 00a35aab7 vpx[dec|enc]: Extract IVF support from the apps. BUG=webm:1539 Change-Id: I64dbb94189ea6a745d53a4bacc033f5f58eafb37
* vpx{enc,dec}: add --helpJames Zern2017-11-281-22/+34
| | | | | | only output short usage to stderr on error, with --help use stdout Change-Id: I7089f3bca829817e14b14c766f4f3eaee6f54e5c
* Fix the decoder seg fault when frame is corrupted.Jerome Jiang2017-04-201-1/+1
| | | | | | BUG=webm:1399 Change-Id: I1e006e0260d9b56a4d2273659ca19b86c69c474b
* vpxdec: silently ignore -frame-parallelJames Zern2017-03-291-7/+7
| | | | | | BUG=webm:1395 Change-Id: Ibf47cc931e51b71e49067c6d7b7a39ab57c11c96
* Add CSV per-frame stats to vpxdec.Peter Boström2017-01-131-5/+32
| | | | | | | Used with --framestats=file.csv. Currently prints raw codec QP (not internal 0-63 range) and bytes per frame. Change-Id: Ifbb90129c218dda869eaf5b810bad12a32ebd82d
* vp9-svc: Add decoder control to decode up to x spatial layers.Marco2016-11-031-24/+25
| | | | Change-Id: I85536473b8722424785c84c5b5520960b4e5744a
* vpxdec.c : don't double count corrupted framesJim Bankoski2016-10-311-3/+3
| | | | | | | | | 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
* vpxdec: return fail if frame fails to decode.Jim Bankoski2016-10-241-3/+5
| | | | | | | A failure to decode is most likely equivalent to a corrupt frame for the purpose of returning a failure. Change-Id: Ie53db2b8130b40b725841f5f7a299d63aa56913d
* vpxdec: avoid memory leaks under most conditionsJames Zern2016-09-271-7/+12
| | | | | | avoids false positives when fuzzing with ASan+LSan. Change-Id: I0d23b530ae80e5692b6951fe6e3690ea44159a5a
* vp8: remove VP8_SET_DBG* control supportJames Zern2016-09-201-87/+2
| | | | | | | | 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
* zero structures completelyJohann2016-09-161-1/+1
| | | | | | | | Use vp[89]_zero when possible. Expand the {} set when neither is available or nearby. Change-Id: Ifc1f46f60100916cd798bf7be3a10f09321c99bd
* top-level: apply clang-formatclang-format2016-07-191-280/+243
| | | | Change-Id: Ibd5395bf8956a80f7c0df4d539c7a42c927a1fc7
* remove vp10James Zern2016-06-171-2/+2
| | | | | | | | | development has moved to the nextgenv2 branch and a snapshot from here was used to seed aomedia BUG=b/29457125 Change-Id: Iedaca11ec7870fb3a4e50b2c9ea0c2b056a0d3c0
* TODO cleanup: Remove unused buffer_sizeVignesh Venkatasubramanian2016-04-261-2/+1
| | | | | | | Remove unused variable buffer_size and rename bytes_in_buffer to buffer_size in webm_read_frame. Change-Id: I18b6ccbb044cd366610a5e39d83883cc0b174051
* vpxdec: quiet signed/unsigned warningJames Zern2015-10-061-1/+1
| | | | Change-Id: I93c56dfa547af9b2f2b96c4f85fd9862ea67af62
* Rename display_{size,width,height} to render_*.Ronald S. Bultje2015-09-251-11/+11
| | | | | | | | | | 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
* vpxdec: remove implied --output-bit-depth=8 for --yv12.Ronald S. Bultje2015-09-111-3/+0
| | | | Change-Id: I28c939db49334572476aa2b428ec93111d4e869d
* Don't convert bitdepth for !single-file or MD5.Ronald S. Bultje2015-09-111-2/+2
| | | | | | ... unless --output-bit-depth was set. Change-Id: I3482eaf12e245eec24427518fccdd173f890f4b4
* Remove vp10's build dependency on vp9Yaowu Xu2015-08-141-11/+11
| | | | | | | | | | 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
* Fork VP9 and VP10 codebaseJingning Han2015-08-111-2/+2
| | | | | | | This commit folks the VP9 and VP10 codebase and makes libvpx support VP8, VP9, and VP10. Change-Id: I81782e0b809acb3c9844bee8c8ec8f4d5e8fa356
* vpxdec: cosmetics: break some long linesJames Zern2015-06-051-28/+37
| | | | Change-Id: I95827a6f5e585d2accbb8fc09501f2d38db585e4
* vpxdec: make some functions staticJames Zern2015-05-111-10/+10
| | | | | | silences missing-prototype warnings Change-Id: I080d2a24eeb6faa8c160683cc1fbf30d3b0b49e5
* tools_common.h: fix usage_exit() prototypeJames Zern2015-05-111-1/+1
| | | | | | | | + the definitions in the examples silences a missing-prototype warning Change-Id: I7c064cacd6d2073a6107de6c3e2cc46ef8a68411
* Fix the issue that --limit is not working in --frame-parallel mode.hkuang2015-03-261-3/+0
| | | | | | | The reason is due to early break out before outputting all the frames inside decoder. Change-Id: I4a138fba08d12935c39bd7602c95f8c18b474e29
* Initialize "corrupted" to zeroJohann2015-03-181-1/+1
| | | | | | | Because the call to vpx_codec_control at line 928 is now guarded by !frame_parallel, 'corrupted' may not be set. Change-Id: Id166bd8a8cdb5e5120fca1640011a3545f6e178a
* Add frame parallel decode option to vpxdec.hkuang2015-03-161-5/+24
| | | | Change-Id: I0ba02d501d65a2f219fa1bb87b8eb81f7e6ab332
* Fix a trivial memory leakHanno Böck2015-02-241-2/+3
| | | | Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
* vpxdec: correct file op error messagesJames Zern2015-02-051-3/+2
| | | | | | | - use fatal() consistently - correct wording in output file open failure message Change-Id: I4dafe03c6eece6df53375f72adf0d5964e211c9a
* vpxdec: ignore GET_FRAME_CORRUPTED error w/--keep-goingJames Zern2014-12-171-1/+2
| | | | | | | 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
* vpxdec: Rename the libyuv scale wrapper.Tom Finegan2014-12-121-2/+2
| | | | | | | The other name was misleading: We do not export scaling support from libvpx via vpx_im{g,age}*. Change-Id: I8acb4ea0301f08c9bab557a4063ea35d147b4631
* Adding test vectors for profile 2 and 3Deb Mukherjee2014-10-211-1/+2
| | | | | | Also adds mising test vectors for profile 1. Change-Id: I5269af8b9e6b708ce50a0d9c69b6cae4bb2870dc
* Resolves some lint errorsDeb Mukherjee2014-10-131-44/+41
| | | | | | And also fixes some style consistency issues. Change-Id: I3dc6d44e17d2d6075dc9b02c4255a7395046c5e0
* Refactoring of highbitdepth bitshift operationsDeb Mukherjee2014-10-081-176/+4
| | | | | | Moves the high bitdepth bit-shift operations to tools_common.c Change-Id: Ifab91574362609cd224d2d6bae5fde00652eb3e4
* Adds support of 440 content.Deb Mukherjee2014-10-011-1/+9
| | | | | | Adds enums and corresponding vpx level code. Change-Id: Ia402d47490a4466988d7edc6b7e3e5163f20a381
* Miscellaneous decoder changes for high bitdepthDeb Mukherjee2014-09-291-17/+26
| | | | | | Also includes yv12 config changes. Change-Id: Iacf40d8bf486815b54c32a127ce3cd4516b7e44f
* Remove memset of every external frame buffer.Frank Galligan2014-09-151-1/+1
| | | | | | | | | | 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
* Removing legacy compatibility layer.Dmitry Kovalev2014-09-021-1/+0
| | | | Change-Id: I6fdcea0e0faf42386dd2b8f972a3b3fb2c21b2c7
* Adds config opt for highbitdepth + misc. vpxDeb Mukherjee2014-09-021-1/+250
| | | | | | | | | 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
* Merge "Set scaled img format correctly in vpxdec"Deb Mukherjee2014-08-261-1/+1
|\
| * Set scaled img format correctly in vpxdecDeb Mukherjee2014-08-221-1/+1
| | | | | | | | | | | | | | Use img->fmt rather than hardcoded I420P to support profiles 1-3. Change-Id: I31fc89e545208243e133512d41e2d97995a968ce
* | vpxdec: fix --keep-going with --disable-vp8James Zern2014-08-221-5/+3
|/ | | | | | | | 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