aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp3.c
Commit message (Collapse)AuthorAgeFilesLines
* vp3: Frame-based multithreading supportAlexander Strange2011-02-111-23/+131
| | | | | | | | | | | | | | | | | | | | Decode times for big_buck_bunny_720p_stereo: 1 thread: real 1m14.227s user 1m13.104s sys 0m1.108s 2 threads: (33% faster) real 0m49.329s user 1m33.735s sys 0m1.834s 3 threads: (44% faster) real 0m41.593s user 1m44.884s sys 0m1.967s (cherry picked from commit d23845f311f04e98777612cae1b55e28923ccdc6)
* vp3: Move table allocation code into a new functionAlexander Strange2011-02-061-23/+33
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit edbb0c07081e78a4c7b6d999d641183bf30f1a2e)
* vp3: Factor out expressionAlexander Strange2011-02-061-4/+5
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit e8dcd730583a0aa69c33a17fc27d65fa55f5effe)
* Move ff_emulated_edge_mc() into DSPContext.Ronald S. Bultje2011-01-301-1/+1
| | | | (cherry picked from commit 2e279598793133ee9c57fd0026d672f076fde4bf)
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-281-2/+2
| | | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit d36beb3f6902b1217beda576aa18abf7eb72b03c)
* VP3: remove an unnecessary static variableAlexander Strange2011-01-171-4/+2
| | | | Originally committed as revision 26398 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dead code in theora_decode_tablesJason Garrett-Glaser2010-10-261-8/+2
| | | | | | | Reading 7 bits as an unsigned int can't result in a value exceeding 127. Accordingly, remove error message (as it'll never be reached). Originally committed as revision 25575 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r25573Jason Garrett-Glaser2010-10-261-6/+6
| | | | Originally committed as revision 25574 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix Theora decoding bug if loopfilter is completely disabledJason Garrett-Glaser2010-10-261-0/+2
| | | | | | | | | | Bug caused by the fact that get_bits(gb, 0) is undefined. Doesn't affect any streams generated by the official Theora encoder, but such streams are nevertheless valid. Fixes decoding of CELT-933dd833-nmr-bandt.ogv. Originally committed as revision 25573 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only draw the actually visible area in vp3_draw_horiz_band.Reimar Döffinger2010-09-081-4/+2
| | | | | | | Fixes a black line in non-swapped, non-mod-16-height Theora videos when vp3_draw_horiz_band is used. Originally committed as revision 25073 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-071-1/+1
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix slice height for y position calculation for vp3_draw_horiz_bandReimar Döffinger2010-09-061-1/+1
| | | | | | when the video uses 4:2:2 instead of 4:2:0 coding. Originally committed as revision 25052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix vp3_draw_horiz_band to not produce completely chaotical valuesReimar Döffinger2010-09-061-1/+1
| | | | | | | that result in overdrawing areas again and again if s->flipped_image is false. Originally committed as revision 25051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* VP3/Theora: validate aspect and reduce it before exporting itReimar Döffinger2010-09-061-3/+8
| | | | | | via the context. Originally committed as revision 25050 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-061-1/+2
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-301-2/+2
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix vp3_draw_horiz_band to calculate chroma offsets correctlyReimar Döffinger2010-06-081-1/+1
| | | | | | for 4:2:2 and 4:4:4 formats. Originally committed as revision 23537 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Skip the loop filter when strength is 0 or when requestedDavid Conrad2010-05-271-1/+6
| | | | Originally committed as revision 23346 to svn://svn.ffmpeg.org/ffmpeg/trunk
* theora: Don't read an excess bit for maximum length long bit runs if the runDavid Conrad2010-05-251-18/+24
| | | | | | exactly ends the remaining blocks. Originally committed as revision 23304 to svn://svn.ffmpeg.org/ffmpeg/trunk
* theora: coeff huffman codes are allowed to be up to 32 bits long (for 32 tokens)David Conrad2010-04-211-23/+23
| | | | Originally committed as revision 22931 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Use avctx pointer directlyDavid Conrad2010-04-171-2/+2
| | | | Originally committed as revision 22899 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Read fps and aspect ratio in the decoderDavid Conrad2010-04-171-4/+10
| | | | Originally committed as revision 22898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Don't crop if there's a left/top offset, it's wrongDavid Conrad2010-04-171-3/+5
| | | | | | Fixes issue1834 Originally committed as revision 22897 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: DC-only IDCTDavid Conrad2010-04-171-3/+5
| | | | | | 2-4% faster overall decode Originally committed as revision 22896 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: More buffer length checksDavid Conrad2010-04-161-4/+9
| | | | | | .5% slower to fix some crashes on invalid streams Originally committed as revision 22893 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Remove internal debug statementDavid Conrad2010-04-161-2/+1
| | | | Originally committed as revision 22892 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-2/+2
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Split out motion vectors to their own arrayDavid Conrad2010-03-131-23/+27
| | | | | | 1.5% faster overall decode on my penryn Originally committed as revision 22504 to svn://svn.ffmpeg.org/ffmpeg/trunk
* theora: Add support for 4:2:2 and 4:4:4 subsamplingDavid Conrad2010-03-131-37/+92
| | | | Originally committed as revision 22500 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: remove unneeded error, this is internal and doesn't happenDavid Conrad2010-03-131-5/+0
| | | | Originally committed as revision 22499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Make fragment_width _height by planeDavid Conrad2010-03-131-22/+24
| | | | Originally committed as revision 22498 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: we only need a temp MV array of size 4David Conrad2010-03-131-18/+6
| | | | Originally committed as revision 22497 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Use memset to clear the fragment arrayDavid Conrad2010-03-131-17/+1
| | | | Originally committed as revision 22496 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Init MVs to 0David Conrad2010-03-131-4/+2
| | | | Originally committed as revision 22495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Simplify init_block_mappingDavid Conrad2010-03-131-98/+19
| | | | Originally committed as revision 22494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: avoid buffer overread in coeff decodeDavid Conrad2010-03-101-1/+1
| | | | | | | I couldn't measure it to be slower for normal interframe videos. For the worst case, high-bitrate intra-only videos, it can be 0.7% slower. Originally committed as revision 22416 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: correctly clip vp3_draw_horiz_band callDavid Conrad2010-03-091-1/+1
| | | | Originally committed as revision 22377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Set pict_typeDavid Conrad2010-03-091-0/+3
| | | | Originally committed as revision 22361 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Allocate a dummy reference frame if we have no keyframeDavid Conrad2010-03-091-2/+8
| | | | Originally committed as revision 22360 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: use FF_BUFFER_TYPE_COPYDavid Conrad2010-03-091-4/+4
| | | | Originally committed as revision 22359 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Don't leak buffers on errorsDavid Conrad2010-03-091-8/+12
| | | | Originally committed as revision 22358 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: Simplify buffer managementDavid Conrad2010-03-091-26/+14
| | | | Originally committed as revision 22357 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vp3: be less spammy on broken filesDavid Conrad2010-03-091-1/+1
| | | | Originally committed as revision 22356 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove DECLARE_ALIGNED_{8,16} macrosMåns Rullgård2010-03-061-2/+2
| | | | | | | These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead. Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Really fix 2.95David Conrad2010-03-041-1/+2
| | | | Originally committed as revision 22204 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Maybe fix gcc 2.95David Conrad2010-03-041-1/+1
| | | | Originally committed as revision 22203 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Delay translating DCT tokens into coefficients until immediately before IDCTDavid Conrad2010-03-031-178/+177
| | | | | | | | This is generally around 12% faster than the prior method of creating a linked list for each block as tokens are read, but can be anywhere from 8% to 28% faster depending on file and CPU. Originally committed as revision 22190 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do MC and IDCT in coding (hilbert) orderDavid Conrad2010-03-031-26/+43
| | | | | | | | | | This increases the slice size to 64 pixels, due to having to decode an entire chroma superblock row per slice. This can be up to 6% slower depending on clip and CPU, but is necessary for future optimizations that gain significantly more than was lost. Originally committed as revision 22189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Explictly separate decoding whether fragments are coded by planeDavid Conrad2010-03-031-11/+16
| | | | Originally committed as revision 22188 to svn://svn.ffmpeg.org/ffmpeg/trunk