summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
Commit message (Collapse)AuthorAge
* mpegvideo: remove VLAsRonald S. Bultje2012-07-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove lowres video decodingMans Rullgard2012-04-21
| | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* MPV: set reference frame pointers to NULL when allocation of dummy pictures ↵Janne Grunau2012-03-23
| | | | fails
* MPV: always mark dummy frames as referenceJanne Grunau2012-03-16
| | | | | | | If the dummy frame are not created from a reference frame they could be deleted untimely resulting in multithreaded decoder waiting on the current frame to finish. Noticed by Ronald S. Bultje in the RV34 decoder with a broken file.
* mpeg4: report frame decoding completion at ff_MPV_frame_end().Ronald S. Bultje2012-03-16
| | | | | | | Prevents hangs on corrupt input. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Replace AVFrame pointer casts by proper struct member accesses.Diego Biurrun2012-03-01
|
* mpegvideo: Add ff_ prefix to nonstatic functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove Sun medialib glue code.Diego Biurrun2012-02-08
| | | | | It is obscure, most likely unused and not bit-exact compared to libavcodec due to a different IDCT transform algorithm.
* mpegvideo: fix invalid memory access for small video dimensionsJohn Brooks2012-01-21
| | | | | | | | | | When either video dimension is only one macroblock, subtractions based on v_edge_pos and the macroblock size may be negative. In that situation, an unsigned comparison isn't sufficent to test for MV overruns, because a limit of (unsigned)-1 will let any other value pass. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: claim ownership of referenced picturesJanne Grunau2012-01-10
| | | | | | | | | Under certain conditions pictures could be released before they were returned with frame-threading. Broken mv computation in the upcoming rv34 frame-threading patch was caused by this. To prevent contexts from running out of available pictures the loop releasing "unused" pictures has to be run for B frames too.
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-07
|
* mpegenc: use avctx->slices as number of slicesJanne Grunau2012-01-02
| | | | | | Adds a new member to MpegEncContext to hold the number of used slice contexts. Fixes segfaults with '-threads 17 -thread_type slice' and fate-vsynth{1,2}-mpeg{2,4}thread{,_ilace} with --disable-pthreads.
* mpegvideo.c: K&R formatting and cosmetics.Konstantin Todorov2011-12-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec: deprecate AVFrame.ageMans Rullgard2011-12-18
| | | | | | | | This was intended as an optimisation for skipped blocks in MPEG2 P-frames and never used elsewhere. Removing this "optimisation" speeds up MPEG2 decoding by 1-2% (ARM Cortex-A9). Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo: remove abort() in ff_find_unused_picture()Andrey Utkin2011-12-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* doxygen: misc consistency, spelling and wording fixesDiego Biurrun2011-12-12
|
* lavc: convert error_recognition to err_recognition.Dustin Brody2011-12-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cosmetics: drop some completely pointless parenthesesDiego Biurrun2011-12-07
|
* Code cleanup - mpegvideo.c - 500-1000lineKonstantin Todorov2011-12-06
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegvideo.c: code cleanup - first 500 lines.Konstantin Todorov2011-12-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec: change number of plane pointers from 4 to 8 at next major bump.Justin Ruggles2011-12-02
| | | | | | Add AV_NUM_DATA_POINTERS to simplify the bump transition. This will allow for supporting more planar audio channels without having to allocate separate pointer arrays.
* avcodec: move some AVCodecContext fields to an internal struct.Justin Ruggles2011-11-19
| | | | | | | | A new field, AVCodecContext.internal is used to hold a new struct AVCodecInternal, which has private fields that are not codec-specific and are used by general libavcodec functions. Moved internal_buffer, internal_buffer_count, and is_copy.
* hwaccel: OS X Video Decoder Acceleration (VDA) support.Sebastien Zwickert2011-11-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpeg12: move closed_gop from MpegEncContext to Mpeg1ContextAnton Khirnov2011-10-23
| | | | It's MPEG-1/2 specific.
* lavc: use avpriv_ prefix for ff_toupper4.Anton Khirnov2011-10-20
| | | | It's used in lavf.
* lavc: rename ff_find_start_code to avpriv_mpv_find_start_codeAnton Khirnov2011-10-20
| | | | It's used in lavf.
* w32threads: support for frame multithreadingSteven Walters2011-10-16
| | | | | | | | Replace our incomplete w32threads implementation with x264's pthreads w32threads wrapper. Relicensed to LGPL with kind permission by Pegasys Inc. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mpegvideo: set correct offset for edge emulation buffer.Ronald S. Bultje2011-10-05
| | | | | Using the old code, half of it was unused and the other half was too small for e.g. >8bpp interlaced data, causing random buffer overruns.
* mpegvideo: fix position of bottom edge.Ronald S. Bultje2011-10-05
| | | | | It was wrong in colorspaces where horizontal and vertical chroma subsampling are not the same, e.g. 422.
* lavc: replace some deprecated FF_*_TYPE with AV_PICTURE_TYPE_*Anton Khirnov2011-09-21
|
* Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.Diego Biurrun2011-09-21
| | | | This fixes build failures with -DDEBUG in CPPFLAGS.
* Windows Media Image decoder (WMVP/WVP2)Alberto Delmás2011-08-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: initialise DSPContext in ff_dct_common_init()Mans Rullgard2011-07-27
| | | | | | | The functions and tables initialised in this function rely on an initialised DSPContext. Make sure they always have one. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo: fix invalid picture unreferencing.Ronald S. Bultje2011-07-20
| | | | | | | | | | | Mpegvideo would free frames as soon as they're not the next or prev picture. This is fine for a single-threading model, but fails miserably in a system where pictures can be referenced (as e.g. last/prev pic) in other threads. Keeping track of ownership of pictures keeps image references (e.g. motion vectors, or the reference of a motion vector) alive as long as the picture data itself is alive. This also happens to fix make THREADS=[3-16] fate-vsynth[12]-error.
* Eliminate FF_COMMON_FRAME macro.Diego Biurrun2011-07-11
| | | | | FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
* mpeg1video: don't abort if thread_count is too high.Frank Barchard2011-07-09
| | | | | | Instead, just decrease it to a valid value and use that. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* H.264: fix overreads of qscale_tableJason Garrett-Glaser2011-07-04
| | | | filter_mb_fast assumed that qscale_table was padded like many of the other tables.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-13
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* Roll back 4:4:4 H.264 for nowJason Garrett-Glaser2011-06-13
| | | | Needs some ARM/PPC asm modifications.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-13
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* mpegvideoenc: fix multislice fate tests with threading disabled.Ronald S. Bultje2011-06-03
| | | | | The MPEG encoding code assumes that n_threads == n_slices, and thus it should use n_slices even if threading itself is disabled.
* H264/MPEG frame-level multi-threading.Alexander Strange2011-06-02
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Remove h263_msmpeg4 from MpegEncContext.Alex Converse2011-05-25
| | | | It was long ago superseded by msmpeg4_version.
* mpegvideo: make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of ↵Michael Niedermayer2011-05-12
| | | | | | | | | just via AVFrame. This allows the values to be used without changing C code and is closer to how the other DEBUG flags work. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Fix crash of interlaced MPEG2 decodingAnatoly Nenashev2011-05-11
| | | | | Problem description, preliminary review discussion at http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/127731
* mpegvideo: reindent.Ronald S. Bultje2011-05-03
|
* mpegvideo: don't av_malloc(0).Ronald S. Bultje2011-05-03
|
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>