summaryrefslogtreecommitdiff
path: root/libavcodec/lcldec.c
Commit message (Collapse)AuthorAge
* cosmetics: Drop particularly redundant silly commentsDiego Biurrun2016-02-18
|
* cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
|
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lcl: Disentangle pointers to input data and decompression bufferDiego Biurrun2014-08-03
| | | | This is cleaner and avoids a cast plus a related const qualifier warning.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* lcldec: return meaningful error codes.Anton Khirnov2013-01-14
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* avutil: Move memcpy_backptr() to mem.cDiego Biurrun2012-10-25
| | | | The function is used elsewhere and does not belong with the LZO code.
* av_memcpy_backptr: Drop no longer necessary malloc paddingDiego Biurrun2012-10-23
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | 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>
* lcl: return negative error codes on decode_init() errors.Ronald S. Bultje2012-03-01
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lcl: error out if uncompressed input buffer is smaller than framesize.Ronald S. Bultje2012-02-24
| | | | | | | | This prevents crashes when trying to read beyond the end of the buffer while decoding frame data. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lcl: don't overwrite input memory.Ronald S. Bultje2012-02-23
| | | | | | | If the PNG filter is enabled, a PNG-style filter will run over the input buffer, writing into the buffer. Therefore, if no zlib compression was used, ensure that we copy into a temporary buffer, otherwise we overwrite user-provided input data.
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move #ifdef before zlib_decomp() up so it covers the Doxygen comments.Diego Biurrun2010-07-02
| | | | | | Otherwise Doxygen gets confused and cannot map comments to functions. Originally committed as revision 23988 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | 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
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary calls to avcodec_check_dimensions, the check is alreadyReimar Döffinger2009-10-13
| | | | | | done at a higher level. Originally committed as revision 20229 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add #if CONFIG_ZLIB_DECODER around zlib_decomp function.Reimar Döffinger2009-05-31
| | | | | | Fixes compilation when zlib is not available. Originally committed as revision 19069 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mszh decompression: add a special case for an all-0 mask, i.e. 32 uncompressedReimar Döffinger2009-05-31
| | | | | | | | bytes in a row. About 15% faster mszh_decomp on an Atom N270 for http://samples.mplayerhq.hu/V-codecs/mszh-zlib/avimzsh_sample.avi Originally committed as revision 19068 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lcldec: ensure that the offset for av_memcpy_backptr is valid.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19067 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memleak due to c->decomp_buf never being freed.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19064 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only call inflateEnd when we were actually using the zlib code.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19063 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avctx->priv_data is initialized to 0, get rid of useless extra initialization.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19062 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge variable declaration and initialization.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use int-size types instead of char where it makes no difference.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19060 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Take advantage of available input padding to optimize mszh_decompReimar Döffinger2009-05-31
| | | | Originally committed as revision 19059 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change maskbit variable to contain (1 << maskbit)Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove check that thanks to padding is no longer necessary.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19057 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, the compression field in lcl extradata must be interpreted asReimar Döffinger2009-05-31
| | | | | | | int8_t, not uint8_t to allow -1 for "no compression". The original code worked, but only when char was signed. Originally committed as revision 19056 to svn://svn.ffmpeg.org/ffmpeg/trunk
* One more use for FFMIN.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pad the decompression buffer and use av_memcpy_backptr for the mszh ↵Reimar Döffinger2009-05-31
| | | | | | decompression. Originally committed as revision 19054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark srcptr as const in mszh_decompReimar Döffinger2009-05-31
| | | | Originally committed as revision 19053 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary put_bits/get_bits includes.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19052 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use bytestream_get_le16 to simplify offset/count calculation for mszh ↵Reimar Döffinger2009-05-31
| | | | | | decompression. Originally committed as revision 19051 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless & 0x1fReimar Döffinger2009-05-31
| | | | Originally committed as revision 19050 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Document padding requirements of mszh_decomp srcptr bufferReimar Döffinger2009-05-31
| | | | Originally committed as revision 19049 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use srcptr_end variable to avoid having to update both srcptr and srclen.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19048 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change buffer size checks to avoid the undefined overflow case.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simply use memcpy instead of AV_RN32/AV_WN32 combination.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19046 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix decoding of multithread-encoded lcl files on big-endian.Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove another useless ()Reimar Döffinger2009-05-31
| | | | Originally committed as revision 19044 to svn://svn.ffmpeg.org/ffmpeg/trunk