summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuv.c
Commit message (Collapse)AuthorAgeFilesLines
* dsputil: Split off HuffYUV decoding bits into their own contextDiego Biurrun2014-05-271-0/+1
| | | | Also shorten HuffYUV context member names to avoid clutter.
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-261-1/+0
|
* huffyuv: split encoder and decoder into separate files.Anton Khirnov2012-12-231-1420/+14
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-16/+16
|
* Remove some silly disabled code.Diego Biurrun2012-10-011-5/+0
|
* huffman: add ff_huff_gen_len_tableMichael Niedermayer2012-08-281-62/+3
| | | | | | The function will be used by utvideo as well. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* huffyuv: update to current coding styleLuca Barbato2012-08-271-521/+576
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-5/+5
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-22/+28
| | | | | | | 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>
* huffyuv: add padding to classic (v1) huffman tables.Ronald S. Bultje2012-03-081-4/+6
| | | | | | | | | | We slightly overread the input buffer, so we require padding at the end of the buffer, as is documented in the get_bits API. Without padding, we'll read uninitialized data or beyond the end of the .rodata, which may crash. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-051-2/+2
|
* huffyuv: do not abort on unknown pix_fmt; instead, return an error.Ronald S. Bultje2012-03-011-1/+1
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* huffyuv: switch to encode2().Anton Khirnov2012-02-201-9/+20
|
* huffyuv: error out on bit overrun.Ronald S. Bultje2012-02-171-1/+1
| | | | | | | | On EOF, get_bits() will continuously return 0, causing an infinite loop. 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-6/+6
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: change number of plane pointers from 4 to 8 at next major bump.Justin Ruggles2011-12-021-3/+4
| | | | | | 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.
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-34/+30
| | | | It's more readable and less prone to breakage.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Remove some disabled printf debug cruft.Diego Biurrun2011-04-291-5/+0
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* huffyuv: Add multithreading supportAlexander Strange2011-03-011-4/+29
| | | | 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-4/+4
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* huffyuv: remove unnecessary size argument from generate_len_table()Måns Rullgård2010-06-251-3/+4
| | | | Originally committed as revision 23791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* huffyuv: make VLAs fixed sizeMåns Rullgård2010-06-251-3/+3
| | | | Originally committed as revision 23784 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
* Add const to some pointer parameters.Michael Kaufmann2010-04-171-4/+4
| | | | | | Patch by Michael Kaufmann, hallo michael-kaufmann ch Originally committed as revision 22900 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extradata length checks for Huffyuv.Michael Kaufmann2010-04-121-1/+4
| | | | | | Patch by Michael Kaufmann hallo $(name) dash $(surname) ch Originally committed as revision 22856 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-4/+4
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement alpha channel decoding for BGR HuffYUV.Alexander Strange2010-01-141-6/+10
| | | | | | | Since BGR24 is decoded as BGR32, fill its alpha channel with 255 using the appropriate predictors. Originally committed as revision 21211 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use get_bits_left() instead of size_in_bits - get_bits_count().Ronald S. Bultje2009-11-161-2/+2
| | | | Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Huffyuv: Remove unnecessary allocation in alloc_temp().Alexander Strange2009-10-161-3/+1
| | | | | | RGB only needs one temp array. Originally committed as revision 20258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Huffyuv: Fix a valgrind warning in get_vlc2().Alexander Strange2009-10-161-0/+1
| | | | | | The padding in bitstream_buffer wasn't initialized. Originally committed as revision 20257 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Release unreleased buffers found by make test.Carl Eugen Hoyos2009-10-161-0/+3
| | | | Originally committed as revision 20251 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move HuffYUV left prediction to dsputil.Nathan Caldwell2009-10-061-59/+18
| | | | | | Patch by Nathan Caldwell, saintdev gmail Originally committed as revision 20179 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark all pix_fmts and supported_framerates compound literals as const.Reimar Döffinger2009-09-061-2/+2
| | | | | | Makes no difference for gcc but at least icc can put them in .rodata then. Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-261-1/+1
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix a buffer overrun on corrupt huffyuv streamsLoren Merritt2009-07-041-5/+12
| | | | Originally committed as revision 19346 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2009-07-011-7/+7
| | | | Originally committed as revision 19323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure we dont read over the end.Michael Niedermayer2009-07-011-0/+13
| | | | | | Fixes issue1237. Originally committed as revision 19322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix passing of unaligned addresses to dsputil diff_bytes() byJeff Downs2009-05-231-4/+4
| | | | | | | | | | | | changeing calls to sub_left_prediction such that the source frame data pointers are no longer offset to skip the initial elements. This keeps them properly aligned for the subsequent call to diff_bytes. Changes encoding offset to compensate. Mailing list thread: https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-May/069952.html Originally committed as revision 18919 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add offset argument to encode_422_bitstream() to control whereJeff Downs2009-05-231-11/+14
| | | | | | | | | in the source data array to start encoding. Change all calls to pass zero for this new argument for equivalent behavior. This is a restructure to support a forthcoming bug fix. Originally committed as revision 18918 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a av_fast_malloc function and replace several uses of av_fast_realloc,Reimar Döffinger2009-04-121-1/+3
| | | | | | thus avoiding potential memleaks and pointless memcpys. Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split bitstream.h, put the bitstream writer stuff in the new fileStefano Sabatini2009-04-121-0/+1
| | | | | | put_bits.h. Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sure the last bits of huffyuv frames are zeroed.Michael Niedermayer2009-04-051-0/+2
| | | | | | Fixes issue946 Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing av_cold in static init/close functions.Daniel Verkamp2009-02-221-2/+2
| | | | | | Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ff_add_hfyu_median_prediction_mmx2Loren Merritt2009-02-081-25/+7
| | | | | | overall ffvhuff decoding speedup: 28% on core2, 25% on k8. Originally committed as revision 17059 to svn://svn.ffmpeg.org/ffmpeg/trunk