summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* swscale: add P010 input supportHendrik Leppkes2016-01-263-1/+58
|
* yuv2rgb: Document the color space coefficientsVittorio Giovara2016-01-191-0/+11
| | | | | | Based on the original documentation found in mpeg2dec (1995). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* swscale/swscale: Add some sanity checks for srcSlice* parametersMichael Niedermayer2016-01-171-0/+8
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/x86/rgb2rgb_template: Fix planar2x() for short widthMichael Niedermayer2016-01-171-1/+8
| | | | | | | Fixes: 451b3e0cf956c0bd2f27ed753ac24050/asan_heap-oob_2873c01_3231_7ed10a9464d15f0d57277f5917c566a8.AVI Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Fix odd height inputs for bayer_to_yv12_wrapper()Michael Niedermayer2016-01-171-1/+6
| | | | | | | | Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Fix odd height inputs for bayer_to_rgb24_wrapper()Michael Niedermayer2016-01-171-1/+6
| | | | | | | | Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/vscale: Use matching sliceY/chrSliceY for luma/chromaMichael Niedermayer2016-01-141-7/+7
| | | | | | No case known where that makes a difference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/vscale: Check that 2 tap filters are bilinear before using bilinear codeMichael Niedermayer2016-01-142-7/+26
| | | | | | | | Fixes: out of array reads Fixes: 07e8b9c5d348ccdf7add0f37de20cf6c/asan_heap-oob_27e8df7_6849_e56653f768070ec8cb52f587048444c2.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/output: Assert that yalpha and uvalpha are within their expected rangeMichael Niedermayer2016-01-141-0/+16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/vscale: Add fixme comment to "ugly" codeMichael Niedermayer2016-01-141-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/slice: Fix indentionMichael Niedermayer2016-01-141-6/+6
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/slice: Fix doc typoMichael Niedermayer2016-01-141-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Move Contexts used only in hscale.c into itMichael Niedermayer2016-01-142-15/+15
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Move VScalerContext into vscale.cMichael Niedermayer2016-01-142-9/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() callsMichael Niedermayer2016-01-141-4/+18
| | | | | | This avoids running various table inits unnecessarily Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/yuv2rgb: Increase YUV2RGB table headroomMichael Niedermayer2016-01-141-2/+2
| | | | | | | | | This makes SWS more robust Fixes: 07650a772d98aa63b0fed6370dc89037/asan_heap-oob_27ddeaf_2657_2c81ff264dee5d9712cb3251fb9c3bbb.264 Fixes: out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/yuv2rgb: Factor YUVRGB_TABLE_LUMA_HEADROOM outMichael Niedermayer2016-01-142-44/+46
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: Use normal bilinear scaler if fast cannot be used due to tiny ↵Michael Niedermayer2016-01-041-0/+6
| | | | | | | | dimensions Fixes Ticket4960 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/arm/yuv2rgb: add ff_yuv422p_to_{argb,rgba,abgr,bgra}_neon_{16,32}Matthieu Bouron2016-01-042-18/+101
|
* swscale/arm/yuv2rgb: fix typoMatthieu Bouron2016-01-041-1/+1
|
* swscale/utils: Fix intermediate format for cascaded alpha downscalingMichael Niedermayer2015-12-241-0/+3
| | | | | | Fixes Ticket4926 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/arm/yuv2rgb: add ff_yuv420p_to_{argb,rgba,abgr,bgra}_neon_{16,32}Matthieu Bouron2015-12-192-11/+118
|
* swscale/arm/yuv2rgb: disable neon if accurate_rnd is enabledMatthieu Bouron2015-12-191-4/+3
| | | | | This disables the 32bit precision neon code path in favor of the default C one and avoids breaking fate.
* swscale/arm/yuv2rgb: simplify process_16px_* macro callMatthieu Bouron2015-12-191-7/+1
|
* swscale/arm/yuv2rgb: fix slicingClément Bœsch2015-12-181-3/+2
|
* swscale/x86/rgb2rgb_template: Fallback to mmx in interleaveBytes() if the ↵Michael Niedermayer2015-12-151-8/+6
| | | | | | | | alignment is insufficient for SSE* This also as a sideeffect fixes the non aligned case Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/x86/rgb2rgb_template: Do not crash on misaligend strideMichael Niedermayer2015-12-151-1/+4
| | | | | | Fixes Ticket5013 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: replace pow by exp2Ganesh Ajjanagadde2015-12-081-1/+2
| | | | | | | exp2 is a faster function. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale/arm: add ff_nv{12,21}_to_{argb,rgba,abgr,bgra}_neon_16Matthieu Bouron2015-12-082-59/+167
|
* swscale/utils: Fix for runtime error: left shift of negative value -1Michael Niedermayer2015-12-041-1/+1
| | | | | | | Fixes: c106b36fa36db8ff8f3ed0c82be7bea2/asan_heap-oob_32699f0_6321_467b9a1d7e03d7cfd310b7e65dc53bcc.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: use AV_OPT_TYPE_BOOL for {src,dst}_range optionsClément Bœsch2015-12-041-2/+2
|
* swscale/arm: add ff_nv{12,21}_to_{argb,rgba,abgr,bgra}_neonMatthieu Bouron2015-11-234-3/+232
| | | | | Signed-off-by: Matthieu Bouron <matthieu.bouron@stupeflix.com> Signed-off-by: Clément Bœsch <clement@stupeflix.com>
* swscale: rename sws_rgb2rgb_init to ff_sws_rgb2rgb_initAndreas Cadhalpun2015-10-294-4/+4
| | | | | | | It is an internal swscale function and thus should not be exported. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* swscale: rename sws_context_class to ff_sws_context_classAndreas Cadhalpun2015-10-293-4/+4
| | | | | | | It is an internal swscale symbol and thus should not be exported. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* swscale/swscale: add av_warn_unused_result to sws_init_contextGanesh Ajjanagadde2015-10-161-0/+1
| | | | | | | This should not trigger any warnings; but adds robustness. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale: fix ticket #4881Pedro Arthur2015-10-133-19/+22
| | | | | When scaling only a slice of a frame the output was written always in the first lines leaving the rest of the frame black.
* doc/scaler, swscale/options: use proper capitalizationGanesh Ajjanagadde2015-10-101-2/+2
| | | | | | | | | | | | | Proper names should be capitalized in all user facing API as far as possible. The option names themselves have not been changed since: 1. We consistently keep option names in lower case. 2. Changing them would break existing scripts. The converse is also true: improper names should not be capitalized generally. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* all: add _DEFAULT_SOURCE locally wherever neededGanesh Ajjanagadde2015-10-041-0/+1
| | | | | | | | | Glibc 2.20 onwards generates a deprecation warning for usage of _BSD_SOURCE and _SVID_SOURCE. The solution from man feature_test_macros is to define both _DEFAULT_SOURCE and the old macros. This solution is on the lines of the one in commit af1818276ef271af98e2e2bbabb4dc875b4fa7d8. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: fix ticket #4877Pedro Arthur2015-09-251-11/+12
|
* swscale: fix ticket 4850Pedro Arthur2015-09-201-4/+4
|
* swscale/output: fix undefined left shifts of negative numbersGanesh Ajjanagadde2015-09-201-16/+16
| | | | | | | | This fixes -Wshift-negative-value reported with clang 3.7+, e.g http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libswscale/swscale: fix -Wunused-functionGanesh Ajjanagadde2015-09-181-0/+2
| | | | | | | | hyscale, hcscale are only used in old filter code, hence place header guard to silence -Wunused-function. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: silence unused function warningGanesh Ajjanagadde2015-09-161-0/+2
| | | | | | | | gamma_convert is only used with the old code. Thus, it is placed under a header guard. This patch silences a -Wunused-function observed on GCC 5.2. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale/swscale: Fix "unused variable" warningMichael Niedermayer2015-09-111-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Forward colorspace updates to the 2nd cascaded context in case of ↵Michael Niedermayer2015-09-102-2/+4
| | | | | | | | alphablend The first just does the blending and wouldnt do anything with the colorspace values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: Forward luma range to the cascaded context for alphablendingMichael Niedermayer2015-09-101-3/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: handle gray+alpha formats like gray for luma rangesMichael Niedermayer2015-09-101-0/+3
| | | | | | Its illogic to handle gray differently depending on the existence of an alpha channel Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: If the source has no alpha then disable alpha blendawayMichael Niedermayer2015-09-101-0/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: use AV_OPT_TYPE_BOOLClément Bœsch2015-09-081-3/+1
|
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-086-17/+17
|
OpenPOWER on IntegriCloud