summaryrefslogtreecommitdiff
path: root/libavcodec/simple_idct_template.c
Commit message (Collapse)AuthorAge
* avcodec/fate-idct8x8: Defined behavior: eliminate negative left-shifts.Katerina Barone-Adesi2014-05-20
| | | | | | | | | | | | | | The original code left-shifts negative values, which is undefined in the C99 specification (the one used during normal FFmpeg compilation). This change multiplies by (1 << shift), which is functionally equivalent, but has defined behavior. With this change, fate-idct8x8 compiled with --fsanitize=undefined works. Bug-Id: 686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> The assembly generated by gcc is unchanged by this commit
* Merge commit 'aba70bb5387f12dfa5e6cd8cb861c9c7e668151f'Michael Niedermayer2014-03-26
|\ | | | | | | | | | | | | * commit 'aba70bb5387f12dfa5e6cd8cb861c9c7e668151f': Add missing headers to make template files compile (more) standalone Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add missing headers to make template files compile (more) standaloneDiego Biurrun2014-03-26
| |
* | avcodec/simple_idct_template: fix rounding of the special DC case for 10bitMichael Niedermayer2014-01-14
| | | | | | | | | | | | | | MSE doesnt change for the test as the code only triggers for very sparse matrixes Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/simple_idct_template: fix row rounderMichael Niedermayer2014-01-14
| | | | | | | | | | | | MSE changes from 0.04890000 to 0.02969844 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/simple_idct_template: change the idct coefficients so that they ↵Michael Niedermayer2014-01-14
| | | | | | | | | | | | | | | | | | | | | | match the x86 code no changes in either standard deviation or PSNR is seen in any of the changed fate cases MSE changes from 0.05012422 to 0.04890000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/simple_idct_template: adjust coeffs for 12bit idctMichael Niedermayer2013-09-15
| | | | | | | | | | | | | | This prevents overflows with 12bit jpegs Fixes Ticket2952 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dsputil: add 12bit simple idctMichael Niedermayer2013-09-06
| | | | | | | | | | | | Will be needed for jpeg Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '88bd7fdc821aaa0cbcf44cf075c62aaa42121e3f'Michael Niedermayer2013-01-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '88bd7fdc821aaa0cbcf44cf075c62aaa42121e3f': Drop DCTELEM typedef Conflicts: libavcodec/alpha/dsputil_alpha.h libavcodec/alpha/motion_est_alpha.c libavcodec/arm/dsputil_init_armv6.c libavcodec/bfin/dsputil_bfin.h libavcodec/bfin/pixels_bfin.S libavcodec/cavs.c libavcodec/cavsdec.c libavcodec/dct-test.c libavcodec/dnxhdenc.c libavcodec/dsputil.c libavcodec/dsputil.h libavcodec/dsputil_template.c libavcodec/eamad.c libavcodec/h264_cavlc.c libavcodec/h264idct_template.c libavcodec/mpeg12.c libavcodec/mpegvideo.c libavcodec/mpegvideo.h libavcodec/mpegvideo_enc.c libavcodec/ppc/dsputil_altivec.c libavcodec/proresdsp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Drop DCTELEM typedefDiego Biurrun2013-01-22
| | | | | | | | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-07
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: SBR DSP: fix SSE code to not use SSE2 instructions. cpu: initialize mask to -1, so that by default, optimizations are used. error_resilience: initialize s->block_index[]. svq3: protect against negative quantizers. Don't use ff_cropTbl[] for IDCT. swscale: make filterPos 32bit. FATE: add CPUFLAGS variable, mapping to -cpuflags avconv option. avconv: add -cpuflags option for setting supported cpuflags. cpu: add av_set_cpu_flags_mask(). libx264: Allow overriding the sliced threads option avconv: fix counting encoded video size. Conflicts: doc/APIchanges doc/fate.texi doc/ffmpeg.texi ffmpeg.c libavcodec/h264idct_template.c libavcodec/svq3.c libavutil/avutil.h libavutil/cpu.c libavutil/cpu.h libswscale/swscale.c tests/Makefile tests/fate-run.sh tests/regression-funcs.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Don't use ff_cropTbl[] for IDCT.Ronald S. Bultje2012-03-06
| | | | | | | | | | | | | | | | Results of IDCT can by far outreach the range of ff_cropTbl[], leading to overreads and potentially crashes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | simpleidct: fix project name.Michael Niedermayer2012-02-01
|/ | | | | | | "Copyright (c) 2001 Michael Niedermayer" and "part of Libav" is not likely not only am i not a libav developer there also was no libav in 2001 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* prores-idct: fix overflow in c code.Ronald S. Bultje2011-10-14
| | | | | | | Fix the fate ref for prores-422_proxy by reverting the changes to it in commit f492df0927c42da174edb674857670fc50abc5dc Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* simple_idct: whitespace cosmeticsMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* simple_idct: make repeated code a macroMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* simple_idct: change 10-bit add/put stride from pixels to bytesMans Rullgard2011-07-21
| | | | | | This matches other dsputil functions and simplifies calls. Signed-off-by: Mans Rullgard <mans@mansr.com>
* simple_idct: add 10-bit versionMans Rullgard2011-07-20
Signed-off-by: Mans Rullgard <mans@mansr.com>