summaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAgeFilesLines
* mjpeg: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-191-4/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-131-4/+4
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-24/+12
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-261-1/+0
|
* mjpegdec: use put_pixels instead of copy_block8Mans Rullgard2013-02-071-4/+6
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mjpegdec: fix indentationAnton Khirnov2013-01-261-18/+18
|
* Drop DCTELEM typedefDiego Biurrun2013-01-221-6/+6
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mjpeg: initialize input padding after unescaped buffer to zeroJanne Grunau2012-12-081-0/+4
| | | | | | Fixes valgrind --undef-value-errors=yes warnings caused by valid overreads in the fate vsynth jpegls, cover-art-ape and cover-art-wv tests.
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Restructure av_log_missing_feature messageDiego Biurrun2012-10-091-4/+3
| | | | | | | | Some invocations include a verb in the log message, others do not. Yet av_log_missing_feature expects callers to provide a verb. Change the function to include a verb instead and update the callers accordingly. The result is a more natural function API and correct English in the function invocations.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-9/+9
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-011-8/+7
|
* avcodec: Drop silly and/or broken printf debug outputDiego Biurrun2012-10-011-9/+0
|
* mjpeg: Rename some symbols to avpriv_* instead of ff_*Samuel Pitoiset2012-09-091-12/+12
| | | | | | These symbols will be used from the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-041-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: support AVRn interlacedMichael Niedermayer2012-08-221-3/+20
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mjpegdec: more meaningful return valuesLuca Barbato2012-08-171-66/+77
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-4/+4
|
* jpeg: handle progressive in second field of interlaced.Ronald S. Bultje2012-05-021-3/+2
| | | | | | | | Progressive data is allocated later in decode_sof(), not allocating that data leads to NULL dereferences. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Remove lowres video decodingMans Rullgard2012-04-211-25/+8
| | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-281-2/+1
| | | | Also remove one pointless zero initialization in rangecoder.c.
* Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-051-5/+4
|
* mjpegdec: use correct variable in av_log invocationDiego Biurrun2012-03-011-1/+1
| | | | libavcodec/mjpegdec.c:1463: warning: format ‘%x’ expects type ‘unsigned int’, but argument 5 has type ‘const uint8_t *’
* mjpeg: abort decoding if packet is too large.Ronald S. Bultje2012-02-241-0/+4
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-151-5/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: use av_fast_padded_malloc()Reimar Döffinger2012-02-011-7/+3
| | | | | | also check for allocation failure Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* lavc: remove disabled FF_API_MJPEG_GLOBAL_OPTS cruft.Anton Khirnov2012-01-271-4/+0
|
* mjpegdec: K&R formatting cosmeticsDaniel Huang2012-01-081-683/+726
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mjpegdec: parse RSTn to prevent skipping other data in mjpeg_decode_scanJanne Grunau2012-01-051-8/+16
| | | | | | | Check explicitly if enough bits are left to prevent an infinite loop when the bitstream buffer is not followed by zero-padding. Based on patches by Michael Niedermayer <michaelni@gmx.at>.
* mov: Don't stick the QuickTime field ordering atom in extradata.Alex Converse2011-12-211-6/+3
| | | | | | The 'fiel' atoms can be found in H.264 tracks clobbering the extradata. MJPEG supports non field based extradata, and this data should be preserved when copying.
* Fix a bunch of common typos.Diego Biurrun2011-12-111-3/+3
|
* lavc: replace references to deprecated AVCodecContext.error_recognition to ↵Dustin Brody2011-10-221-1/+1
| | | | | | use AVCodecContext.err_recognition Signed-off-by: Anton Khirnov <anton@khirnov.net>
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-121-1/+1
|
* mjpegdec: add 'extern_huff' private option.Anton Khirnov2011-08-311-0/+20
| | | | Deprecate CODEC_FLAG_EXTERN_HUFF
* mjpeg: treat external huffman table setup failure as codec init failure if ↵Dustin Brody2011-08-311-2/+2
| | | | | | external huffman table use requested Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqtDustin Brody2011-08-111-1/+3
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-20/+16
| | | | It's more readable and less prone to breakage.
* jpegdec: actually search for and parse RSTnMichael Niedermayer2011-07-231-2/+5
| | | | | | | | | | | | | Fixes decoding of MJPEG files produced by some UVC Logitec web cameras, such as "Notebook Pro" and "HD C910". References: http://trac.videolan.org/vlc/ticket/4215 http://ffmpeg.org/trac/ffmpeg/ticket/267 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Reviewed-by: Kostya <kostya.shishkov@gmail.com> (cherry picked from commit 7b8ed831eb8432d202dad16dedc1758b018bb1fa)
* Remove unused structs and tables.Diego Biurrun2011-07-161-23/+0
|
* Remove statements immediately following unconditional jumpsMans Rullgard2011-07-031-1/+0
| | | | | | This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mjpeg: remove pointless braces around block of codeMans Rullgard2011-07-031-21/+19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mjpeg: Detect overreads in mjpeg_decode_scan() and error out.Michael Niedermayer2011-04-261-0/+4
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rbultje@google.com>
* Add support for picture_ptr field in MJpegDecodeContextanatoly2011-03-301-17/+19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Move MJPEG's input buffer preprocessing in separate public functionanatoly2011-03-301-32/+52
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Support reference picture defined by bitmask in MJPEG's SOS decoderanatoly2011-03-301-14/+70
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Set maximum lowres value for the MJPEG decoder to 3.Carl Eugen Hoyos2011-02-161-1/+1
| | | | | | | While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
OpenPOWER on IntegriCloud