summaryrefslogtreecommitdiff
path: root/libswscale
Commit message (Collapse)AuthorAge
* swscale/x86/rgb2rgb_template: fix signedness of v in ↵James Almer2015-06-23
| | | | | | | shuffle_bytes_2103_{mmx,mmxext} Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* swscale/x86/rgb2rgb_template: don't call emms on sse2/avx functionsJames Almer2015-06-23
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* swscale/x86/rgb2rgb_template: add missing xmm clobbersJames Almer2015-06-23
| | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* swscale/rgb2rgb_template: Fix signedness of v in shuffle_bytes_2103_c()Michael Niedermayer2015-06-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/rgb2rgb_template: Implement shuffle_bytes_0321_c and fix ↵Michael Niedermayer2015-06-23
| | | | | | shuffle_bytes_2103_c on BE Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/rgb2rgb_template: Disable shuffle_bytes_2103_c on big endianMichael Niedermayer2015-06-22
| | | | | | The function is specific to little endian Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/output: Add rgba64/rgb48/bgra64/bgr48 output functions with full ↵Michael Niedermayer2015-06-17
| | | | | | chroma interpolation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/output: Factorize rgb48 and 64bit codeMichael Niedermayer2015-06-17
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Mark vectors as NAN instead of dereferencing NULL pointers on malloc failureMichael Niedermayer2015-06-12
| | | | | Found-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale: Assert that pixel format descriptor is not NULLMichael Niedermayer2015-06-12
| | | | | | | This may help static analyzers, the pixel format is checked during initialization Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libswscale/x86/hscale_fast_bilinear_simd.c: There's no need to save BX if ↵Nick Lewycky2015-05-13
| | | | | | it's in the clobber list. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libswscale/x86/hscale_fast_bilinear_simd.c: Include BX in the clobber list ↵Nick Lewycky2015-05-13
| | | | | | on x86_64, because it isn't implicitly included when PIC is on. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/x86/swscale: Fix warning about loosing significant bits in castMichael Niedermayer2015-05-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/x86/hscale_fast_bilinear_simd: Remove ancient out-commented debug codeMichael Niedermayer2015-05-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'rbultje/vp9-profile23-wip'Michael Niedermayer2015-05-07
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rbultje/vp9-profile23-wip: libvpxdec: add 440 pixfmts. vp9: add profile 2/3 fate tests. vp9: add inter-frame profile 2/3 suport. vp9: add keyframe profile 2/3 support. vp9: parse profile 2/3 bitdepth in frame header. vp9: add profile 2/3 to exported profiles. fate: add/update reference files for 440 addition. swscale: add yuv440p10/12 pixfmts. lavc: add yuv440p10/12 formats to aligned pixfmt list. lavu: add yuv440p10/12 pixfmts. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: add yuv440p10/12 pixfmts.Ronald S. Bultje2015-05-06
| |
* | swscale/x86/hscale_fast_bilinear_simd: Fix variable names in commentsMichael Niedermayer2015-05-07
|/ | | | | Found-by: Nick Lewycky <nlewycky@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/ppc/swscale_altivec.c: POWER LE support in yuv2planeX_8() delete ↵Rong Yan2015-04-27
| | | | | | | | | | macro GET_VF() it was wrong GCC tool had a bug of PPC intrinsic interpret, which has been fixed in GCC 4.9.1. This bug lead to errors in two of our previous patches. We found this when we update our GCC tools to 4.9.1 and by reading the related info on GCC website. We fix our previous error in two separate commits Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/swscale: Get rid of the SWS_GAMMA_CORRECT flagMichael Niedermayer2015-04-23
| | | | | | This avoids using up a bit of the public flags Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Add gamma encodign/decoding before/after scaling in libswscalePedro Arthur2015-04-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/output: Fix undefined shiftsMichael Niedermayer2015-03-25
| | | | | | | Fixes: da14e86d8462be6493eab16bc2d40f88/asan_heap-oob_204cfd2_528_cov_340150052_COMPRESS.BMP Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '7ebb3022297aa00afda6800105684b8303f2608e'Michael Niedermayer2015-03-22
|\ | | | | | | | | | | | | * commit '7ebb3022297aa00afda6800105684b8303f2608e': swscale: Check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | | | | | | | | | Bug-Id: CID 1267890 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '9a60b1fad02cb783b895b2145c3dafc01f7b337c'Michael Niedermayer2015-03-16
|\| | | | | | | | | | | | | | | | | | | * commit '9a60b1fad02cb783b895b2145c3dafc01f7b337c': libswscale: fix compiler warnings enumerated type mixed with another type Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libswscale: fix compiler warnings enumerated type mixed with another typeHimangi Saraogi2015-03-15
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | ppc: libswscale: use LOCAL_ALIGNED instead of DECLARE_ALIGNEDChristophe Gisquet2015-03-14
| | | | | | | | | | | | The later may yield incorrect code for on-stack variables. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Fix undefined shift in initFilter()Michael Niedermayer2015-03-11
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Add prefix to updateMMXDitherTables()Michael Niedermayer2015-02-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: clear formatConvBuffer on allocationMichael Niedermayer2015-02-27
| | | | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: add asserts to check filterposMichael Niedermayer2015-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: More carefully merge and clear coefficients outside the inputMichael Niedermayer2015-02-24
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Use av_clip_uintp2()Michael Niedermayer2015-02-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Use av_clip_uint8()Michael Niedermayer2015-02-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/bayer_template: Add () to protect the argument of BAYER_READ()Michael Niedermayer2015-02-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'e51f22122d23589e93ac4f0b3e570bb925755915'Michael Niedermayer2015-02-17
|\| | | | | | | | | | | | | * commit 'e51f22122d23589e93ac4f0b3e570bb925755915': swscale: Check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationsFederico Tomassetti2015-02-17
| | | | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1267888 / CID 1267890 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * swscale: fix gbrap to gbrap alpha scalingVittorio Giovara2015-01-16
| |
| * swscale: fix warning about incompatible function pointer typeVittorio Giovara2015-01-16
| |
* | swscale/utils: Limit filter shifting so as not to read from prior the arrayMichael Niedermayer2015-02-05
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_1fb2f9b_3780_cov_3984375136_usf.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/input: fix rgba64 alpha non nativeMichael Niedermayer2015-01-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/input: Fix alpha of YA16 inputMichael Niedermayer2015-01-21
| | | | | | | | | | | | Fixes Ticket4278 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '928061670e873e816daa14827853b7e11221ff5f'Michael Niedermayer2015-01-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '928061670e873e816daa14827853b7e11221ff5f': libswscale: GBRAP input & output and GBRAP16 input support Conflicts: libswscale/input.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c tests/ref/fate/filter-pixdesc-gbrap tests/ref/fate/filter-pixfmts-copy tests/ref/fate/filter-pixfmts-null tests/ref/fate/filter-pixfmts-scale tests/ref/fate/filter-pixfmts-vflip See: 5c057433ccd32f37ddc828d3f82c5b1ad7d3e3db Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2015-01-14
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '1dd797e3c9f179f957316a0becbec048b42df8aa'Michael Niedermayer2015-01-06
|\| | | | | | | | | | | | | * commit '1dd797e3c9f179f957316a0becbec048b42df8aa': swscale: check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: check memory allocationsVittorio Giovara2015-01-05
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1257779
* | swscale: Pass through chroma positions in sws_getCachedContextKieran Kunhya2014-12-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Fix width % 4 != 0 with bgr4_byte/rgb4_byteMichael Niedermayer2014-12-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Fix width % 4 != 0 with bgr4/rgb4Michael Niedermayer2014-12-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: fix width % 8 != 0 and rgb/bgr8 outputMichael Niedermayer2014-12-24
| | | | | | | | | | | | Fixes Ticket2570 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: increase yuv2rgb table headroomMichael Niedermayer2014-12-16
| | | | | | | | | | | | | | Fixes out of array access Fixes: case2_bad_read_yuv2rgbx32.mp4 Found-by: Michal Zalewski <lcamtuf@coredump.cx> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>