summaryrefslogtreecommitdiff
path: root/libswscale
Commit message (Collapse)AuthorAge
...
* | swscale/vscale: Use matching sliceY/chrSliceY for luma/chromaMichael Niedermayer2016-01-14
| | | | | | | | | | | | 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-14
| | | | | | | | | | | | | | | | 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-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/vscale: Add fixme comment to "ugly" codeMichael Niedermayer2016-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/slice: Fix indentionMichael Niedermayer2016-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/slice: Fix doc typoMichael Niedermayer2016-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Move Contexts used only in hscale.c into itMichael Niedermayer2016-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Move VScalerContext into vscale.cMichael Niedermayer2016-01-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() callsMichael Niedermayer2016-01-14
| | | | | | | | | | | | This avoids running various table inits unnecessarily Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/yuv2rgb: Increase YUV2RGB table headroomMichael Niedermayer2016-01-14
| | | | | | | | | | | | | | | | | | 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-14
| | | | | | | | 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-04
| | | | | | | | | | | | | | | | 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-04
| |
* | swscale/arm/yuv2rgb: fix typoMatthieu Bouron2016-01-04
| |
* | swscale/utils: Fix intermediate format for cascaded alpha downscalingMichael Niedermayer2015-12-24
| | | | | | | | | | | | 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-19
| |
* | swscale/arm/yuv2rgb: disable neon if accurate_rnd is enabledMatthieu Bouron2015-12-19
| | | | | | | | | | 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-19
| |
* | swscale/arm/yuv2rgb: fix slicingClément Bœsch2015-12-18
| |
* | swscale/x86/rgb2rgb_template: Fallback to mmx in interleaveBytes() if the ↵Michael Niedermayer2015-12-15
| | | | | | | | | | | | | | | | 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-15
| | | | | | | | | | | | Fixes Ticket5013 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: replace pow by exp2Ganesh Ajjanagadde2015-12-08
| | | | | | | | | | | | | | 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-08
| |
* | swscale/utils: Fix for runtime error: left shift of negative value -1Michael Niedermayer2015-12-04
| | | | | | | | | | | | | | 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-04
| |
* | swscale/arm: add ff_nv{12,21}_to_{argb,rgba,abgr,bgra}_neonMatthieu Bouron2015-11-23
| | | | | | | | | | 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-29
| | | | | | | | | | | | | | 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-29
| | | | | | | | | | | | | | 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-16
| | | | | | | | | | | | | | 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-13
| | | | | | | | | | 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-10
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-04
| | | | | | | | | | | | | | | | | | 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-25
| |
* | swscale: fix ticket 4850Pedro Arthur2015-09-20
| |
* | swscale/output: fix undefined left shifts of negative numbersGanesh Ajjanagadde2015-09-20
| | | | | | | | | | | | | | | | 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-18
| | | | | | | | | | | | | | | | 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-16
| | | | | | | | | | | | | | | | 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-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Forward colorspace updates to the 2nd cascaded context in case of ↵Michael Niedermayer2015-09-10
| | | | | | | | | | | | | | | | 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-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: handle gray+alpha formats like gray for luma rangesMichael Niedermayer2015-09-10
| | | | | | | | | | | | 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-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: use AV_OPT_TYPE_BOOLClément Bœsch2015-09-08
| |
* | Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-08
| |
* | Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'Hendrik Leppkes2015-09-08
|\| | | | | | | | | | | | | * commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba': lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-07
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'e88103a7f92cf27a2868b50acc8a9912f6088249'Hendrik Leppkes2015-09-05
|\| | | | | | | | | | | | | * commit 'e88103a7f92cf27a2868b50acc8a9912f6088249': Bump major versions of all libraries Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * Bump major versions of all librariesVittorio Giovara2015-08-28
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '9d58639e270f7612874681e0ca30fa461e2667b7'Hendrik Leppkes2015-09-05
|\| | | | | | | | | | | | | * commit '9d58639e270f7612874681e0ca30fa461e2667b7': sws: Drop deprecated SWS_CPU_CAPS defines Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * sws: Drop deprecated SWS_CPU_CAPS definesVittorio Giovara2015-08-28
| | | | | | | | Deprecated in 07/2012.