diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2022-06-01 22:33:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-19 12:20:16 +0200 |
commit | 0a6bb7da55709d82b1cbb12d420db2d1fbb867d7 (patch) | |
tree | 541be03773982eae1fc55cd375c73788ccb0a05a /libswscale | |
parent | 61c151a09892d7f70c51c18110a1edf8796d7568 (diff) | |
download | ffmpeg-0a6bb7da55709d82b1cbb12d420db2d1fbb867d7.tar.gz |
swscale: add NV16 input/output
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/input.c | 1 | ||||
-rw-r--r-- | libswscale/utils.c | 1 | ||||
-rw-r--r-- | libswscale/version.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/libswscale/input.c b/libswscale/input.c index fe0c27d743..750367b28b 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -1101,6 +1101,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) c->chrToYV12 = uyvyToUV_c; break; case AV_PIX_FMT_NV12: + case AV_PIX_FMT_NV16: case AV_PIX_FMT_NV24: c->chrToYV12 = nv12ToUV_c; break; diff --git a/libswscale/utils.c b/libswscale/utils.c index cb4f5b521c..c0504a6dfc 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -257,6 +257,7 @@ static const FormatEntry format_entries[] = { [AV_PIX_FMT_P216LE] = { 1, 1 }, [AV_PIX_FMT_P416BE] = { 1, 1 }, [AV_PIX_FMT_P416LE] = { 1, 1 }, + [AV_PIX_FMT_NV16] = { 1, 1 }, }; int ff_shuffle_filter_coefficients(SwsContext *c, int *filterPos, diff --git a/libswscale/version.h b/libswscale/version.h index c0610fec1e..bb7e324876 100644 --- a/libswscale/version.h +++ b/libswscale/version.h @@ -29,7 +29,7 @@ #include "version_major.h" #define LIBSWSCALE_VERSION_MINOR 8 -#define LIBSWSCALE_VERSION_MICRO 100 +#define LIBSWSCALE_VERSION_MICRO 101 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ LIBSWSCALE_VERSION_MINOR, \ |