]> git.sesse.net Git - ffmpeg/commit
swscale: Add support for NV24 and NV42
authorPhilip Langdale <philipl@overt.org>
Fri, 10 May 2019 04:02:09 +0000 (21:02 -0700)
committerPhilip Langdale <philipl@overt.org>
Sun, 12 May 2019 14:51:02 +0000 (07:51 -0700)
commitcd483180356c8f206f32393acc52a85c5b76758b
tree06d6ff23172861b896fe3de72b4a431192ed4522
parent5de4f1d871d60886b9630531fa8c34cad13cc9dd
swscale: Add support for NV24 and NV42

The implementation is pretty straight-forward. Most of the existing
NV12 codepaths work regardless of subsampling and are re-used as is.
Where necessary I wrote the slightly different NV24 versions.

Finally, the one thing that confused me for a long time was the
asm specific x86 path that did an explicit exclusion check for NV12.
I replaced that with a semi-planar check and also updated the
equivalent PPC code, which Lauri kindly checked.
20 files changed:
libswscale/input.c
libswscale/output.c
libswscale/ppc/swscale_altivec.c
libswscale/ppc/swscale_vsx.c
libswscale/swscale_unscaled.c
libswscale/utils.c
libswscale/version.h
libswscale/x86/swscale_template.c
tests/ref/fate/filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-crop
tests/ref/fate/filter-pixfmts-field
tests/ref/fate/filter-pixfmts-fieldorder
tests/ref/fate/filter-pixfmts-hflip
tests/ref/fate/filter-pixfmts-il
tests/ref/fate/filter-pixfmts-null
tests/ref/fate/filter-pixfmts-pad
tests/ref/fate/filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-transpose
tests/ref/fate/filter-pixfmts-vflip
tests/ref/fate/sws-pixdesc-query