summaryrefslogtreecommitdiff
path: root/libavcodec/lagarith.c
Commit message (Collapse)AuthorAgeFilesLines
* dsputil: Split off HuffYUV decoding bits into their own contextDiego Biurrun2014-05-271-9/+7
| | | | Also shorten HuffYUV context member names to avoid clutter.
* lagarith: Fix typo in printf format stringDiego Biurrun2014-03-221-1/+1
| | | | libavcodec/lagarith.c:671:16: warning: '#' flag used with ‘%u’ gnu_printf format [-Wformat]
* avcodec: more correct printf specifiersDiego Biurrun2014-03-221-2/+4
|
* lagarith: reallocate rgb_planes when neededAnton Khirnov2014-02-041-6/+6
| | | | | | | Fixes invalid writes on pixel format changes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* lagarith: do not call simd functions on unaligned linesKostya Shishkov2014-01-061-6/+19
| | | | | | | | | | They end up overwriting past the line end. Partially based on a patch by Michael Niedermayer <michaelni@gmx.at> Bug-Id: vlc/9700 Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-15/+6
|
* miscellaneous typo fixesDiego Biurrun2012-12-211-2/+2
|
* 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-7/+7
|
* lagarith: check count before writing zeros.Michael Niedermayer2012-09-291-0/+5
| | | | | | | Fixes CVE-2012-2793 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lagarith: frame multithreadingHendrik Leppkes2012-08-091-7/+8
| | | | | | | About 2x speedup going from 1 to 2 threads. 1.7s to 0.85s on foreman CIF. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* lagarith: fix color plane inversion for YUY2 output.Ronald S. Bultje2012-08-031-3/+3
|
* lagarith: pad RGB buffer by 1 byte.Ronald S. Bultje2012-08-031-1/+1
| | | | | | | | | | | For left HFYU prediction, we predict from the buffer buf+1 using 8- or 16-byte reads. This means that aligning the buffer by 16 bytes is in itself not sufficient, because if the width itself is 16- or 8-byte aligned, the buffer will not be padded, and thus a read of size 16 at buf+1 will overflow boundaries at the right edge. Padding the buffer by 1 byte is sufficient to not overflow its boundaries. Fixes bug 342.
* lagarith: add YUY2 decoding supportKostya Shishkov2012-05-081-3/+71
| | | | | | | Unlike other variants, for YUY2 we need to use different prediction: * on line 0 for luma we should left predict starting from the second pixel * on line 1 we should left predict first 4 pixels for luma and 2 for chroma * median prediction employed here is taken directly from HuffYUV
* Support decoding unaligned rgb24 lagarith.Carl Eugen Hoyos2012-05-081-1/+2
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* lagarith: make offset array type unsignedKostya Shishkov2012-05-061-1/+1
| | | | This is logical and also fixes checking for the fourth plane offset.
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-1/+1
| | | | | | | 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>
* lagarith: fix buffer overreads.Ronald S. Bultje2012-03-281-23/+51
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lagarith: Add ff_ prefix to lag_rac_initMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lagarith: add decode support for arith rgb24 modeThad Ward2011-12-291-10/+22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lagarith: add some RGBA decoding supportKostya Shishkov2011-11-161-0/+67
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lagarith: Add correct line prediction for RGBNathan Caldwell2011-11-161-5/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-9/+8
| | | | It's more readable and less prone to breakage.
* doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-241-13/+13
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Drop explicit filenames from @file Doxygen tags.Diego Biurrun2011-06-051-1/+1
| | | | The filename is unnecessary and brittle across file renames.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*Anton Khirnov2011-02-031-1/+1
| | | | | | Tested to compile with lavc major bump. 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-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Lagarith: fix decoding of one-coloured frames by reading the per-planeReimar Döffinger2011-01-151-2/+6
| | | | | | | color value instead of always taking 0 (resulting in green frames). Fixes issue issue2531. Originally committed as revision 26363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Lagarith decoder by Nathan Caldwell, saintdev at gmailCarl Eugen Hoyos2011-01-081-0/+518
Originally committed as revision 26270 to svn://svn.ffmpeg.org/ffmpeg/trunk