summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuvenc.c
Commit message (Collapse)AuthorAge
* Merge commit 'c67b449bebbe0b35c73b203683e77a0a649bc765'Michael Niedermayer2014-06-23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c67b449bebbe0b35c73b203683e77a0a649bc765': dsputil: Split bswap*_buf() off into a separate context Conflicts: configure libavcodec/4xm.c libavcodec/ac3dec.c libavcodec/ac3dec.h libavcodec/apedec.c libavcodec/eamad.c libavcodec/flacenc.c libavcodec/fraps.c libavcodec/huffyuv.c libavcodec/huffyuvdec.c libavcodec/motionpixels.c libavcodec/truemotion2.c libavcodec/x86/Makefile libavcodec/x86/dsputil_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split bswap*_buf() off into a separate contextDiego Biurrun2014-06-22
| |
* | huffyuv: change statistics initializationChristophe Gisquet2014-06-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally, a Laplace distribution is more typical of the residuals encoded, but for noisy input, it's both better and simpler to be safe and use a 1/d^2 distribution. Second hunk could use some renormalization but it has effectively little impact. Output size of ffvhuff on various 4:2:0 sequences: context=0,1/d: 851974 27226 1137281 context=0,1/d²: 619081 25069 1051500 context=0,1/d³: 501983 30454 1290561 context=0,lapl: 500650 31754 1304082 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffman/ff_huff_gen_len_table: support skiping stat=0 entriesMichael Niedermayer2014-06-09
| | | | | | | | | | | | | | This is probably not the simplest solution but as this is needed for a bugfix, simplification is left for later. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | rename sub_hfyu_median_prediction_int16 to sub_hfyu_median_pred_int16Michael Niedermayer2014-05-29
| | | | | | | | | | | | This makes the naming more consistent with the 8bit variant Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '512f3ffe9b4bb86767c2b1176554407c75fe1a5c'Michael Niedermayer2014-05-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '512f3ffe9b4bb86767c2b1176554407c75fe1a5c': dsputil: Split off HuffYUV encoding bits into their own context Conflicts: configure libavcodec/dsputil.c libavcodec/dsputil.h libavcodec/huffyuv.h libavcodec/huffyuvenc.c libavcodec/pngenc.c libavcodec/x86/dsputilenc_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split off HuffYUV encoding bits into their own contextDiego Biurrun2014-05-27
| | | | | | | | Also shorten HuffYUV context member names to avoid clutter.
* | avcodec/huffyuvenc: Make version 3 of ffvhuff non experimentalMichael Niedermayer2014-05-07
| | | | | | | | | | Tested-by: Tim Nicholson <nichot20@yahoo.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '2f02bbcca050936686482453078e83dc25493da0'Michael Niedermayer2014-03-01
|\| | | | | | | | | | | | | | | | | | | | | * commit '2f02bbcca050936686482453078e83dc25493da0': build: Let the ffvhuff decoder/encoder depend on the huffyuv decoder/encoder Conflicts: configure libavcodec/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * build: Let the ffvhuff decoder/encoder depend on the huffyuv decoder/encoderDiego Biurrun2014-02-28
| | | | | | | | | | Almost all of the code is shared so there is little point in enabling one decoder/encoder without the other.
* | avcodec/huffyuvenc: only allocate stats_out when it will be usedMichael Niedermayer2014-02-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: frame multi-threading supportMichael Niedermayer2014-01-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: dont depend on bitstream_bpp having a specific value for ↵Michael Niedermayer2014-01-28
| | | | | | | | | | | | version>2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: support gbrp9/10/12/14Michael Niedermayer2014-01-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: update years in copyrightMichael Niedermayer2014-01-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: fix end pointer for stats_outMichael Niedermayer2014-01-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: fail if stats_out is too small instead of silently ↵Michael Niedermayer2014-01-26
| | | | | | | | | | | | truncating Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: support AV_PIX_FMT_YUV(A)4XYP16 and GRAY16Michael Niedermayer2014-01-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Move sub_hfyu_median_prediction_int16() to losslessviddspMichael Niedermayer2014-01-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcdoec/huffyuvenc: optimize sub_left_prediction()Michael Niedermayer2014-01-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Move add/diff_int16 to lossless_videodspMichael Niedermayer2014-01-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dsputil/huffyuv: move diff int16 and add int16 to dsputilMichael Niedermayer2014-01-20
| | | | | | | | | | | | This also fixes masking the bits Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: fix median prediction for >8bpsMichael Niedermayer2014-01-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add YUVA{420,422,444}P{9,10} supportMichael Niedermayer2014-01-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add YUV{420,422,444}P{9,10,12,14} supportMichael Niedermayer2014-01-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec/huffyuv: >8 bit supportMichael Niedermayer2014-01-16
| | | | | | | | | | | | | | | | | | This adds only yuv420p10, others are trivial to add after this commit and will be added in a subsequent commit. Currently the implementation is not optimized, optimizations will be added later Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: init bps from pixel descriptorMichael Niedermayer2014-01-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add a field that represents the number of symbolsMichael Niedermayer2014-01-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffman: extend ff_huff_gen_len_table() to allow >8bitMichael Niedermayer2014-01-13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: Factorize store_huffman_tables() outMichael Niedermayer2014-01-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuvenc: fix -context 1 encodingMichael Niedermayer2014-01-08
| | | | | | | | | | | | Fixes Ticket3281 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add YUVA420P, YUVA422P, YUVA444P, GBRAP, GRAY8AMichael Niedermayer2014-01-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add GRAY8 supportMichael Niedermayer2014-01-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: add GBRP supportMichael Niedermayer2014-01-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/huffyuv: Support more 8bit YUV formatsMichael Niedermayer2014-01-06
| | | | | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-11-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpegvideo_enc: use the AVFrame API properly. ffv1: use the AVFrame API properly. jpegls: use the AVFrame API properly. huffyuv: use the AVFrame API properly. Conflicts: libavcodec/ffv1.c libavcodec/ffv1.h libavcodec/ffv1dec.c libavcodec/ffv1enc.c Changes to ffv1 are more redone than merged due to them being based on an ancient codebase and a good part of that having being done already as well. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * huffyuv: use the AVFrame API properly.Anton Khirnov2013-11-16
| |
* | Merge commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2'Michael Niedermayer2013-10-04
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b2bed9325dbd6be0da1d91ffed3f513c40274fd2': cosmetics: Group .name and .long_name together in codec/format declarations Conflicts: libavcodec/8svx.c libavcodec/alac.c libavcodec/cljr.c libavcodec/dnxhddec.c libavcodec/dnxhdenc.c libavcodec/dpxenc.c libavcodec/dvdec.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/ffv1dec.c libavcodec/flacdec.c libavcodec/flvdec.c libavcodec/fraps.c libavcodec/frwu.c libavcodec/g726.c libavcodec/gif.c libavcodec/gifdec.c libavcodec/h261dec.c libavcodec/h263dec.c libavcodec/iff.c libavcodec/imc.c libavcodec/libopencore-amr.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libspeexenc.c libavcodec/libvo-amrwbenc.c libavcodec/libvorbisenc.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/libxavs.c libavcodec/libxvid.c libavcodec/ljpegenc.c libavcodec/mjpegbdec.c libavcodec/mjpegdec.c libavcodec/mpeg12dec.c libavcodec/mpeg4videodec.c libavcodec/msmpeg4dec.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/proresdec_lgpl.c libavcodec/proresenc_kostya.c libavcodec/ra144enc.c libavcodec/rawdec.c libavcodec/rv10.c libavcodec/sp5xdec.c libavcodec/takdec.c libavcodec/tta.c libavcodec/v210dec.c libavcodec/vp6.c libavcodec/wavpack.c libavcodec/xbmenc.c libavcodec/yop.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
| |
* | Merge commit '55c4cba2a7037161ea56b2d55b347c8381df7f1e'Michael Niedermayer2013-07-30
|\| | | | | | | | | | | | | | | | | | | * commit '55c4cba2a7037161ea56b2d55b347c8381df7f1e': huffyuvenc: BGRA support Conflicts: libavcodec/huffyuvenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * huffyuvenc: BGRA supportMichael Niedermayer2013-07-29
| | | | | | | | | | | | Bug-Id: 452 Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'b047c68783aa4042b322af7af043b643d5daf09c'Michael Niedermayer2012-12-23
|/ | | | | | | | | | | | | * commit 'b047c68783aa4042b322af7af043b643d5daf09c': 4xm: don't rely on get_buffer() initializing the frame. huffyuv: split encoder and decoder into separate files. lavc: make pkt_{p,d}ts doxy less confusing Conflicts: libavcodec/Makefile libavcodec/huffyuv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* huffyuv: split encoder and decoder into separate files.Anton Khirnov2012-12-23