summaryrefslogtreecommitdiffstats
path: root/libavcodec/xan.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-1/+1
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* xan: use the AVFrame API properly.Anton Khirnov2013-11-161-17/+23
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* xan: Only read within the data that actually was initializedMartin Storsjö2013-09-291-5/+7
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xan: Use bytestream2 to limit reading to within the bufferMartin Storsjö2013-09-291-12/+10
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-28/+21
|
* xan: Convert to bytestream2Alexandra Khirnova2013-01-091-27/+31
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* xan: return a meaningful error code.Anton Khirnov2013-01-061-1/+1
|
* xan: remove a trivially true if().Anton Khirnov2012-12-241-50/+49
| | | | | This function used to be shared with the xxan decoder, but that is not true anymore.
* 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.
* avutil: Move memcpy_backptr() to mem.cDiego Biurrun2012-10-251-2/+1
| | | | The function is used elsewhere and does not belong with the LZO code.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-1/+1
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-2/+2
|
* Drop ALT_ prefix from BITSTREAM_READER_LE name.Diego Biurrun2011-12-221-1/+1
| | | | | The prefix is a historic remnant that probably meant "alternative". Now that the A32 bitstream reader has been dropped it makes no sense anymore.
* xan.c: coding style clean-up.Nathan Adil Maxson2011-12-031-25/+28
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* xan: Prevent NULL dereference with missing paletteLaurent Aimar2011-10-071-0/+5
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* xan: Check for out of bound reads in xan_huffman_decode()Laurent Aimar2011-10-071-1/+4
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* xan: Fixed out of bound accesses in xan_unpack()Laurent Aimar2011-10-071-5/+13
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* xan: Prevent NULL dereferences with missing reference frameLaurent Aimar2011-10-071-0/+2
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* xan: Prevent out of bound accessesLaurent Aimar2011-10-071-5/+20
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* xan: Add some buffer checksAlex Converse2011-09-121-8/+29
|
* xan: Remove extra trailing newlineAlex Converse2011-09-121-1/+0
|
* Fixed size given to init_get_bits() in xan decoder.Laurent Aimar2011-09-121-4/+6
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-9/+8
| | | | It's more readable and less prone to breakage.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove Xan WC4 cruft from xan.cKostya2011-02-071-30/+2
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-2/+2
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix memleak: free palette data on close.Reimar Döffinger2010-11-231-0/+1
| | | | Originally committed as revision 25816 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation.Reimar Döffinger2010-11-211-4/+4
| | | | Originally committed as revision 25780 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add explanation and alternative implementation for strange xanReimar Döffinger2010-11-211-0/+56
| | | | | | gamma correction. Originally committed as revision 25779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* WC3/xan: move palette handling to decoder, avoiding need forReimar Döffinger2010-11-211-7/+99
| | | | | | | | PaletteControl. This also fixes playback of some files with ffplay (images were corrupted for a short time after a palette change). Originally committed as revision 25778 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove redundant text in the log.Stefano Sabatini2010-10-181-2/+2
| | | | Originally committed as revision 25517 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make XAN decoder return meaningful error codes.Stefano Sabatini2010-10-181-6/+6
| | | | Originally committed as revision 25516 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
* 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
* Add long_name for Xxan codec.Diego Biurrun2009-12-191-0/+1
| | | | Originally committed as revision 20900 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve handling allocated buffers in Xan decoderKostya Shishkov2009-12-191-3/+7
| | | | Originally committed as revision 20899 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent a bitKostya Shishkov2009-12-191-1/+1
| | | | Originally committed as revision 20898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary calls to avcodec_check_dimensions, the check is alreadyReimar Döffinger2009-10-131-3/+0
| | | | | | done at a higher level. Originally committed as revision 20229 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use memcpy to copy till end of line in one go instead of copying pixel by pixelReimar Döffinger2009-09-051-11/+15
| | | | | | in xan_wc3_output_pixel_run and xan_wc3_copy_pixel_run Originally committed as revision 19774 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Slightly simplify detection of end of compressed data in xan_unpackReimar Döffinger2009-09-051-6/+2
| | | | Originally committed as revision 19772 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include <unistd.h> from many filesMåns Rullgård2009-07-221-1/+0
| | | | Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid code duplication in xan_unpack for the final memcpy.Reimar Döffinger2009-04-181-5/+6
| | | | Originally committed as revision 18608 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use sign_extend function instead of reimplementing it.Reimar Döffinger2009-04-171-8/+2
| | | | Originally committed as revision 18599 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove a useless "& 0xF"Reimar Döffinger2009-04-171-1/+1
| | | | Originally committed as revision 18598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use / and % operators instead of reimplementing them with a loop.Reimar Döffinger2009-04-171-10/+2
| | | | Originally committed as revision 18597 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change buffer check to avoid an unlikely pointer arithmetic overflow.Reimar Döffinger2009-04-171-1/+1
| | | | Originally committed as revision 18596 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify xan_huffman_decode by using get_bitsReimar Döffinger2009-04-171-11/+5
| | | | Originally committed as revision 18595 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics to improve xan_unpack readabilityReimar Döffinger2009-04-171-4/+4
| | | | Originally committed as revision 18590 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud