aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'release/3.0' of https://github.com/FFmpeg/FFmpeg into cm-13.0Steve Kondik2016-08-193-74/+107
|\
| * swscale/utils: Fix chrSrcHSubSample for GBRAP16Michael Niedermayer2016-03-261-0/+1
| | | | | | | | | | | | | | | | | | Fixes part of Ticket5264 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 67e5bd0c501f7568fc8d93284d0f7eb40663ab06) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
| * swscale/input: Fix GBRAP16 inputMichael Niedermayer2016-03-261-0/+20
| | | | | | | | | | | | | | | | | | Fixes part of Ticket5264 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit df36257a53561a51af969a6ea6319dd2579509b9) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
| * swscale/x86/output: Fix yuv2planeX_16* with unaligned destinationMichael Niedermayer2016-03-261-7/+16
| | | | | | | | | | | | | | | | Reviewed-by: BBB Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit f6492a2ea8df80be0ed9591aee4019cef0e36e99) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
| * swscale/x86/output: Move code into yuv2planeX_mainloopMichael Niedermayer2016-03-261-69/+72
| | | | | | | | | | | | | | | | Reviewed-by: BBB Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d07f6e5f1c36be675e0900edba3e40a32f05f0f4) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Add MODULE_LICENSE and NOTICE filesRicardo Cerqueira2016-02-162-0/+1
| | | | | | | | | | | | Addresses CYNGNOS-1477 Change-Id: Ie08dcea95298a45ac66556e2425e49cb0ed82a01
* | Clean up some build-time warningsRicardo Cerqueira2016-02-151-0/+2
| | | | | | | | | | | | | | | | | | Change Ica6c855a77cb14a2c96682f6c7bf5bdae9a06970 (multiarch support) introduced some warnings in the makefiles due to duplicate target definitions. Split the automatically generated headers into their own per-arch target dirs to avoid them Change-Id: I866766150d63be29da042f1383995214820db983
* | Fixup armv8-a building, and make multiarch builds workRicardo Cerqueira2016-02-151-0/+11
| | | | | | | | Change-Id: Ica6c855a77cb14a2c96682f6c7bf5bdae9a06970
* | Update Android build for FFMPEG 2.5Steve Kondik2016-02-151-0/+3
| | | | | | | | Change-Id: I4500c0f580a3f2f8b3cc9101400f68ef7db34e61
* | Android porting for ffmpeg 2.1 releaseChih-Wei Huang2016-02-151-0/+15
|/ | | | | | | | | | Add Android.mk to build ffmpeg libraries with AOSP tree. Based on the nice work of Chia-I Wu (olv): git://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android Tested built OK on Android 4.3 for x86, mips, armv7-a and armv7-a-neon. Change-Id: Id97768f8716f7933078fa0b6c936bd2ae20c090a
* sws/output: fix ordered dither threshold for mono outputMichael Niedermayer2016-02-101-1/+1
| | | | | | This makes sure that white stays white and black black Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale-test: Check av_image_fill_linesizes() for failureMichael Niedermayer2016-02-041-2/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-278-25/+25
| | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* 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>