Matthieu Bouron
4c22441276
swscale/arm: add yuv2planeX_8_neon
9 years ago
Clément Bœsch
c921f4f687
sws/aarch64: add ff_yuv2planeX_8_neon
10 years ago
Matthieu Bouron
7abc8e7ae3
swscale/arm: add ff_hscale_8_to_15_neon
9 years ago
Clément Bœsch
cab9661dba
sws/aarch64/yuv2rgb: honor iOS calling convention
y_offset and y_coeff being successive 32-bit integers, they are packed
into 8 bytes instead of 2x8 bytes.
See https://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html
> iOS diverges from Procedure Call Standard for the ARM 64-bit
> Architecture in several ways
[...]
> In the generic procedure call standard, all function arguments passed
> on the stack consume slots in multiples of 8 bytes. In iOS, this
> requirement is dropped, and values consume only the space required.
[...]
> Padding is still inserted on the stack to satisfy arguments’ alignment
> requirements.
9 years ago
Michael Niedermayer
c169062073
swscale/utils: Remove unused variable
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
040598218f
sws/aarch64: restore ff_hscale_8_to_15_neon()
Fix final scaling and required filter alignment. Pass FATE.
9 years ago
Ronald S. Bultje
b3eda69490
swscale: add bt2020 yuv2rgb coefficients.
10 years ago
Ronald S. Bultje
98038e2ee0
swscale: fix bt709 yuv2rgb coefficients.
They were derived from incorrect values cr=0.2125 (should be cr=0.2126)
and cb=0.0721 (should be cb=0.0722).
10 years ago
Clément Bœsch
eadaef2a63
sws/aarch64: disable ff_hscale_8_to_15_neon temporarly
Looks broken.
10 years ago
Matthieu Bouron
58994d7bca
swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part
10 years ago
Matthieu Bouron
5629361cc2
swscale/arm/yuv2rgb: save a few instructions by processing the luma line interleaved
10 years ago
Matthieu Bouron
339668301e
swscale/arm/yuv2rgb: re-order compute_rgba macro arguments
10 years ago
Matthieu Bouron
ff4885face
swscale/arm/yuv2rgb: rename {process_1l,process_2l,compute}_16px{,_internal} macros
10 years ago
Matthieu Bouron
562653b731
swscale/arm/yuv2rgb: macro-ify
10 years ago
Matthieu Bouron
0286b56f2f
swscale/arm/yuv2rgb: factorize lsl in load_args_nvx
10 years ago
Matthieu Bouron
0649fe0fae
swscale/arm/yuv2rgb: factorize lsl in load_args_yuv420p
10 years ago
Matthieu Bouron
2aec59c07c
swscale/arm/yuv2rgb: remove unused store of dst + linesize in load_args_yuv422p
10 years ago
Matthieu Bouron
b3ea901945
swscale/arm/yuv2rgb: factorize lsl in load_args_yuv422p
10 years ago
Matthieu Bouron
466e209e6e
swscale/arm/yuv2rgb: fix comments in load_args_yuv422p
10 years ago
Matthieu Bouron
11b4acab8b
swscale/arm/yuv2rgb: remove 32bit code path
10 years ago
Pedro Arthur
6de58b4903
swscale: cleanup unused code
Removed previous swscale code under '#ifndef NEW_FILTER'
and removed unused fields of SwsContext
10 years ago
Michael Niedermayer
3b905b9fe6
swscale: Deprecate vector functions which are unused outside swscale
There are no known users of these functions within debian
It should be thus possible to remove these functions without recommandition of a
replacement
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Clément Bœsch
263eb76bdf
sws/aarch64: add ff_hscale_8_to_15_neon
./ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null -
before: t:0.489726 avg:0.489883 max:0.491852 min:0.489482
after: t:0.256515 avg:0.256458 max:0.256999 min:0.253755
10 years ago
Lou Logan
06eef96b69
fix some a/an typos
Signed-off-by: Lou Logan <lou@lrcd.com>
10 years ago
Clément Bœsch
277408b7f1
sws/aarch64/yuv2rgb: save a few mul and add
27ms to 26ms with UHD 2160 input.
10 years ago
Clément Bœsch
f1148390d7
sws/aarch64: add {nv12,nv21,yuv420p,yuv422p}_to_{argb,rgba,abgr,rgba}_neon
10 years ago
Clément Bœsch
1e7a37f0a0
sws/yuv2rgb: clarify precision of coeff and offset for mmx code
It makes easier looking at the difference with the generic code just
below.
10 years ago
Clément Bœsch
f9987464cf
sws/yuv2rgb: avoid a few ub on signed left shifts
10 years ago
Kieran Kunhya
4170a44bbc
Add GBRAP12 pixel format
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
67e5bd0c50
swscale/utils: Fix chrSrcHSubSample for GBRAP16
Fixes part of Ticket5264
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
df36257a53
swscale/input: Fix GBRAP16 input
Fixes part of Ticket5264
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Xiaolei Yu
5a91589476
swscale/arm: re-enable neon rgbx to nv12 routines
Commit '842b8f4ba2e79b9c004a67f6fdb3d5c5d05805d3' fixed clang/iphone
build but failed on some versions of cygwin. It has now been verified
to work on both platforms.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Diego Biurrun
29c2d06d67
cosmetics: Drop empty comment lines
10 years ago
Michael Niedermayer
f6492a2ea8
swscale/x86/output: Fix yuv2planeX_16* with unaligned destination
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
d07f6e5f1c
swscale/x86/output: Move code into yuv2planeX_mainloop
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Derek Buitenhuis
15d9645fb4
swscale/slice: Actually use the buffers' strides
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
10 years ago
Michael Niedermayer
23261e6001
sws/output: fix ordered dither threshold for mono output
This makes sure that white stays white and black black
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
61ea7f1509
swscale/swscale-test: Check av_image_fill_linesizes() for failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
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>
10 years ago
Hendrik Leppkes
2e31434d84
swscale: add P010 input support
10 years ago
Vittorio Giovara
e9175634ec
yuv2rgb: Document the color space coefficients
Based on the original documentation found in mpeg2dec (1995).
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
ff8c2c4103
yuv2rgb: Document the color space coefficients
Based on the original documentation found in mpeg2dec (1995).
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Michael Niedermayer
321e85e176
swscale/swscale: Add some sanity checks for srcSlice* parameters
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
c8a9aaab26
swscale/x86/rgb2rgb_template: Fix planar2x() for short width
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>
10 years ago
Michael Niedermayer
757248ea3c
swscale/swscale_unscaled: Fix odd height inputs for bayer_to_yv12_wrapper()
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>
10 years ago
Michael Niedermayer
ad3b6fa7d8
swscale/swscale_unscaled: Fix odd height inputs for bayer_to_rgb24_wrapper()
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>
10 years ago
Michael Niedermayer
fc2588a1d6
swscale/vscale: Use matching sliceY/chrSliceY for luma/chroma
No case known where that makes a difference
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
eb7802afef
swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code
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>
10 years ago
Michael Niedermayer
b99f498716
swscale/output: Assert that yalpha and uvalpha are within their expected range
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
fe6372bb61
swscale/vscale: Add fixme comment to "ugly" code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago