summaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1dec.c
Commit message (Collapse)AuthorAgeFilesLines
* vc1dec: Don't apply the loop filter on fieldsMartin Storsjö2013-05-141-2/+3
| | | | | | | | Fixes read of uninitialized memory. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Don't attempt error concealment on field picturesMichael Niedermayer2013-05-141-1/+2
| | | | | | This is not implemented and doesn't work. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: fieldtx is only valid for interlaced frame picturesSebastian Sandberg2013-05-141-3/+5
| | | | | | The fieldtx_plane is not cleared for interlaced fields. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: Remove now unused variablesMartin Storsjö2013-04-201-2/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-191-7/+6
| | | | | | This also converts vc1, since that is mpegvideo-based. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-131-1/+1
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-181/+181
|
* Add missing error_resilience includes to files that use ERDiego Biurrun2013-03-071-0/+1
|
* lavc: Split out ff_hwaccel_pixfmt_list_420[] over individual codecsRonald S. Bultje2013-03-061-2/+16
| | | | | | | | | Not all hwaccels implement all codecs, so using one single list for multiple such codecs means some codecs will be represented in the list, even though they don't actually handle that codec. Copying specific lists in each codec fixes that. Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-261-1/+0
|
* mpegvideo: split ff_draw_horiz_band().Anton Khirnov2013-02-151-12/+12
| | | | Split out dependency on MpegEncContext.
* error_resilience: decouple ER from MpegEncContextAnton Khirnov2013-02-151-11/+11
|
* dsputil: Separate h264chromaDiego Biurrun2013-02-061-10/+14
|
* vc1dec: use codec_id instead of codec_tag for VC1IMAGEVladimir Pantelic2013-02-061-1/+1
| | | | | | | the rest of the code is using codec_id everywhere already Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* dsputil: remove one array dimension from avg_no_rnd_pixels_tab.Ronald S. Bultje2013-01-221-1/+1
|
* Drop DCTELEM typedefDiego Biurrun2013-01-221-5/+5
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.Ronald S. Bultje2013-01-201-4/+0
| | | | | | This allows us to get rid of them on the next major bump. All of the above are functionally irrelevant, and most of them are unused, except the vp3 one, which is used wrongly in the bfin arch optimizations.
* vc1dec: prevent a crash due missing pred_flag parameterVladimir Pantelic2013-01-111-3/+7
| | | | | | | Handle pred_flag parameter not given to get_mvdata_interlaced() Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: introduce VideoDSPContextRonald S. Bultje2012-12-201-32/+32
| | | | | | | | Move some functions from dsputil. The idea is that videodsp contains functions that are useful for a large and varied set of video decoders. Currently, it contains emulated_edge_mc() and prefetch(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cosmetics: Fix dropable --> droppable typoDiego Biurrun2012-12-091-1/+1
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-4/+4
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+1
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Double motion vector range for HPEL interlaced picture in proper placeMashiat Sarker Shakkhar2012-10-101-4/+0
| | | | | | | The existing code is not in the right place and it should cover both interlaced frame and field pictures. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Set opposite to the correct value for 1REF field picturesMashiat Sarker Shakkhar2012-10-101-4/+10
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chromaMashiat Sarker Shakkhar2012-10-101-1/+1
| | | | | | | | | | This is required due to the way VC-1 handles chroma pull-back which may end up causing negative chroma MV for zero luma MV. Edge emulation needs to be invoked in such cases. This only affects vertical component of chroma motion vector. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Set chroma reference field from REFFIELD for 1REF field picturesMashiat Sarker Shakkhar2012-10-101-0/+1
| | | | | | | | Interlaced field pictures can have one or two reference pictures, signaled by NUMREF syntax element. For single reference pictures, reference picture is determined by REFFIELD syntax element. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Use correct spelling of "opposite"Mashiat Sarker Shakkhar2012-10-101-5/+5
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1dec: prevent memory leak in error pathJanne Grunau2012-10-091-1/+1
| | | | Fixes CID732271.
* vc1dec: prevent memory leak on av_realloc errorJanne Grunau2012-10-091-4/+6
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-5/+5
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-011-1/+2
|
* vc1dec: add flush function for WMV9 and VC-1 decodersKostya Shishkov2012-09-281-0/+2
| | | | CC: libav-stable@libav.org
* MSS2 decoderAlberto Delmás2012-08-311-3/+7
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: export some functionsKostya Shishkov2012-08-281-23/+28
| | | | | | | This is a preparatory step for the MSS2 decoder which needs to use the WMV9 decoder to decode some kinds of frames. From the patch by Alberto Delmás <adelmas@gmail.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-16/+16
|
* vc1dec: Remove separate scaling function for interlaced field MVsMashiat Sarker Shakkhar2012-08-031-22/+8
| | | | | | | The scaling process for obtaining direct MVs from co-located field MVs is the same for interlaced field and progressive pictures. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Invoke edge_emulation regardless of MV precisionMashiat Sarker Shakkhar2012-08-031-2/+2
| | | | | | | | | | | | In VC-1 interlaced field pictures, chroma motion vectors can extend beyond picture boundary even if luma vectors are bounded. The problem shows up only for hpel interpolated MVs, and may be due to the way motion vectors are scaled / cropped. Thanks to Konstantin Shishkov for suggesting the fix. This fixes long-known segfaults in MC-VC1.ts from videolan streams archive. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: remove useless #include simple_idct.hMans Rullgard2012-08-021-1/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vc1dec: Override invalid macroblock quantizerMichael Niedermayer2012-07-281-0/+5
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: avoid reading beyond the last line in vc1_draw_sprites()Michael Niedermayer2012-07-281-2/+6
| | | | | | | | Fixes overread Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: check that coded slice positions and interlacing match.Michael Niedermayer2012-07-281-0/+6
| | | | | | | | This fixes out of array writes Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return valueMichael Niedermayer2012-07-281-4/+10
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Do not use random pred_flag if motion vector data is skippedMashiat Sarker Shakkhar2012-07-151-1/+1
| | | | | | | This fixes SA10143.vc1 from test-suite. Also partially fixes MC-VC1.ts from videolan streams archive. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-2/+2
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: Do not read from array if index is invalid.Mashiat Sarker Shakkhar2012-03-261-3/+19
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vc1: Move init code shared between decoder and parser to common code file.Diego Biurrun2012-03-071-143/+1
| | | | This fixes standalone compilation of the VC-1 parser.
* Replace AVFrame pointer type punning by proper struct member assignments.Diego Biurrun2012-03-011-3/+3
|
* vc1parse: call vc1_init_common().Ronald S. Bultje2012-02-181-2/+2
| | | | | | | | The parser uses VLC tables initialized in vc1_common_init(), therefore we should call this function on parser init also. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vc1: prevent using last_frame as a reference for I/P first frame.Ronald S. Bultje2012-02-151-2/+9
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegvideo: Add ff_ prefix to nonstatic functionsMartin Storsjö2012-02-151-3/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud