summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* swscale/output: Fix undefined shiftsMichael Niedermayer2015-03-251-2/+2
| | | | | | | 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-221-8/+14
|\ | | | | | | | | | | | | * commit '7ebb3022297aa00afda6800105684b8303f2608e': swscale: Check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationFederico Tomassetti2015-03-211-8/+14
| | | | | | | | | | | | | | Bug-Id: CID 1267890 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '9a60b1fad02cb783b895b2145c3dafc01f7b337c'Michael Niedermayer2015-03-161-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-151-1/+1
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | ppc: libswscale: use LOCAL_ALIGNED instead of DECLARE_ALIGNEDChristophe Gisquet2015-03-141-2/+2
| | | | | | | | | | | | 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-111-1/+1
| | | | | | | | | | | | 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-273-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: clear formatConvBuffer on allocationMichael Niedermayer2015-02-271-1/+1
| | | | | | | | | | | | | | | | 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-241-0/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: More carefully merge and clear coefficients outside the inputMichael Niedermayer2015-02-241-5/+15
| | | | | | | | | | | | | | | | 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-212-18/+18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Use av_clip_uint8()Michael Niedermayer2015-02-211-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/bayer_template: Add () to protect the argument of BAYER_READ()Michael Niedermayer2015-02-181-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'e51f22122d23589e93ac4f0b3e570bb925755915'Michael Niedermayer2015-02-171-0/+9
|\ \ | |/ | | | | | | | | | | * commit 'e51f22122d23589e93ac4f0b3e570bb925755915': swscale: Check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationsFederico Tomassetti2015-02-171-0/+9
| | | | | | | | | | | | 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-161-3/+2
| |
| * swscale: fix warning about incompatible function pointer typeVittorio Giovara2015-01-161-1/+1
| |
* | swscale/utils: Limit filter shifting so as not to read from prior the arrayMichael Niedermayer2015-02-051-2/+3
| | | | | | | | | | | | | | | | 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-211-5/+15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/input: Fix alpha of YA16 inputMichael Niedermayer2015-01-211-2/+6
| | | | | | | | | | | | Fixes Ticket4278 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '928061670e873e816daa14827853b7e11221ff5f'Michael Niedermayer2015-01-152-4/+6
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-146-2/+54
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '1dd797e3c9f179f957316a0becbec048b42df8aa'Michael Niedermayer2015-01-061-7/+11
|\ \ | |/ | | | | | | | | | | * commit '1dd797e3c9f179f957316a0becbec048b42df8aa': swscale: check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: check memory allocationsVittorio Giovara2015-01-051-7/+11
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1257779
* | swscale: Pass through chroma positions in sws_getCachedContextKieran Kunhya2014-12-261-0/+13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Fix width % 4 != 0 with bgr4_byte/rgb4_byteMichael Niedermayer2014-12-241-1/+17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: Fix width % 4 != 0 with bgr4/rgb4Michael Niedermayer2014-12-241-1/+21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: fix width % 8 != 0 and rgb/bgr8 outputMichael Niedermayer2014-12-241-1/+21
| | | | | | | | | | | | Fixes Ticket2570 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: increase yuv2rgb table headroomMichael Niedermayer2014-12-161-1/+1
| | | | | | | | | | | | | | 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>
* | Merge commit '33c827f632f95ffe3399b695a5a0d47b366b6e20'Michael Niedermayer2014-12-061-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '33c827f632f95ffe3399b695a5a0d47b366b6e20': swscale: Properly scale YUV Conflicts: libswscale/swscale_unscaled.c tests/ref/fate/filter-pixdesc-yuv420p10be tests/ref/fate/filter-pixdesc-yuv420p10le tests/ref/fate/filter-pixdesc-yuv420p9be tests/ref/fate/filter-pixdesc-yuv420p9le tests/ref/fate/filter-pixdesc-yuva420p10be tests/ref/fate/filter-pixdesc-yuva420p10le tests/ref/fate/filter-pixdesc-yuva420p9be tests/ref/fate/filter-pixdesc-yuva420p9le 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: abe0b8e9f378a0f8781c1a3da6714d20cfd19594 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Properly scale YUVDerek Buitenhuis2014-12-051-12/+35
| | | | | | | | | | | | | | | | | | | | Only shift limited range luma, and always only shift chroma for upconversion. Based off a patch by Michael Niedermayer. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | swscale/x86/rgb2rgb_template: fix crash with tiny size and nv12 outputMichael Niedermayer2014-12-031-0/+1
| | | | | | | | | | | | Fixes Ticket4151 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/x86/rgb2rgb_template: handle the first 2 lines with C in rgb24toyv12_*()Michael Niedermayer2014-11-201-0/+10
| | | | | | | | | | | | | | This avoids out of array accesses Should fix Ticket3451 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: support bayer input + scaling, and bayer input + any ↵Michael Niedermayer2014-11-121-0/+25
| | | | | | | | | | | | | | | | supported output Fixes Ticket4053 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libswscale/ppc/swscale_altivec.c : fix hScale_altivec_real() ↵Rong Yan2014-11-121-94/+140
| | | | | | | | | | | | | | | | yuv2planeX_16_altivec() yuv2planeX_8() for little endian add marcos GET_LS() GET_VF() LOAD_FILTER() LOAD_L1() GET_VF4() FIRST_LOAD() UPDATE_PTR() LOAD_SRCV() LOAD_SRCV8() GET_VFD() for POWER LE Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: fix yuv2yuvX_8 assembly on x86Kieran Kunhya2014-11-091-1/+1
| | | | | | | | | | use_mmx_vfilter check/fix by commiter Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'fc1eda543c6ef043300612db90da5cfd972af650'Michael Niedermayer2014-10-181-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit 'fc1eda543c6ef043300612db90da5cfd972af650': swscale: fix sign extensions in yuv planar conversion Conflicts: libswscale/rgb2rgb_template.c See: a07e9d72a1d97dc6a4d57e1f7b708e54e7db83f5 See: a30972609ca39b791ce1e4e5cc6c3dd6cb9c9b12 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: fix sign extensions in yuv planar conversionVittorio Giovara2014-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | Casting the left-most byte to unsigned avoids an undefined result of the shift by 24 if bit 7 is set. yuvPlanartouyvy_c and yuvPlanartoyuy2_c are affected. CC: libav-stable@libav.org Bug-Id: CID 732281 / CID 732282
* | swscale: support internal scaler cascadesMichael Niedermayer2014-10-114-12/+67
| | | | | | | | | | | | Fixes Ticket3170 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: remove obsolete FF_API_SWS_FORMAT_NAME cruftJames Almer2014-10-053-22/+0
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | swscale: Allow chroma samples to be above and to the left of luma samplesMichael Niedermayer2014-09-213-6/+6
| | | | | | | | | | Found-by: Kierank Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/x86: do not expect registers to be preserved across inline ASM blocksVitor Sessak2014-09-181-39/+44
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: use av_clip() instead of av_clip_c()Clément Bœsch2014-09-161-6/+6
| |
* | lsws: duplicate ff_log2_tabJames Almer2014-08-122-0/+3
| | | | | | | | | | | | | | | | | | libswscale uses the table but wasn't duplicating it like the rest of the libs. This should fix compilation failures on msvc/icl after lavu stopped exporting internal functions and tables. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1985c2e75c607ac51bfd8dc87d2957a5edf2b6f8'Michael Niedermayer2014-08-101-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1985c2e75c607ac51bfd8dc87d2957a5edf2b6f8': Bump major versions of all libraries. Conflicts: doc/APIchanges libavcodec/version.h libavdevice/version.h libavfilter/version.h libavformat/version.h libavutil/version.h libswscale/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Bump major versions of all libraries.Anton Khirnov2014-08-091-3/+3
| |
* | Merge commit 'f4c444e17d137c786f0ed2da0e5943df505d5f9e'Michael Niedermayer2014-08-091-2/+2
|\ \ | |/ | | | | | | | | | | * commit 'f4c444e17d137c786f0ed2da0e5943df505d5f9e': Postpone API-incompatible changes until the next bump. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Postpone API-incompatible changes until the next bump.Anton Khirnov2014-08-091-2/+2
| |
* | Merge commit 'bb789016d423d2cfacd2904ac66257bdf7f0964e'Michael Niedermayer2014-08-073-9/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * commit 'bb789016d423d2cfacd2904ac66257bdf7f0964e': swscale: Undeprecate sws_getContext() Conflicts: libswscale/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud