diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2018-11-24 16:22:52 +0100 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2018-11-24 16:24:47 +0100 |
commit | 86e6f0dbc7fd31e4a071c9fc1fc94fb9e74e0624 (patch) | |
tree | 9e60b60803cb9d657231abfd65b919cb77ddc924 /libswscale | |
parent | 80b0624099da8f758928676aa848473182fd4b8c (diff) | |
download | ffmpeg-86e6f0dbc7fd31e4a071c9fc1fc94fb9e74e0624.tar.gz |
swscale : add support for YUVA444P12 and YUVA422P12
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/input.c | 8 | ||||
-rw-r--r-- | libswscale/utils.c | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libswscale/input.c b/libswscale/input.c index 4099c19c2b..c2dc356b5d 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -1097,6 +1097,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) case AV_PIX_FMT_YUVA420P10LE: case AV_PIX_FMT_YUVA422P10LE: case AV_PIX_FMT_YUVA444P10LE: + case AV_PIX_FMT_YUVA422P12LE: + case AV_PIX_FMT_YUVA444P12LE: case AV_PIX_FMT_YUVA420P16LE: case AV_PIX_FMT_YUVA422P16LE: case AV_PIX_FMT_YUVA444P16LE: @@ -1127,6 +1129,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) case AV_PIX_FMT_YUVA420P10BE: case AV_PIX_FMT_YUVA422P10BE: case AV_PIX_FMT_YUVA444P10BE: + case AV_PIX_FMT_YUVA422P12BE: + case AV_PIX_FMT_YUVA444P12BE: case AV_PIX_FMT_YUVA420P16BE: case AV_PIX_FMT_YUVA422P16BE: case AV_PIX_FMT_YUVA444P16BE: @@ -1401,6 +1405,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) case AV_PIX_FMT_YUVA420P10LE: case AV_PIX_FMT_YUVA422P10LE: case AV_PIX_FMT_YUVA444P10LE: + case AV_PIX_FMT_YUVA422P12LE: + case AV_PIX_FMT_YUVA444P12LE: case AV_PIX_FMT_YUVA420P16LE: case AV_PIX_FMT_YUVA422P16LE: case AV_PIX_FMT_YUVA444P16LE: @@ -1441,6 +1447,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c) case AV_PIX_FMT_YUVA420P10BE: case AV_PIX_FMT_YUVA422P10BE: case AV_PIX_FMT_YUVA444P10BE: + case AV_PIX_FMT_YUVA422P12BE: + case AV_PIX_FMT_YUVA444P12BE: case AV_PIX_FMT_YUVA420P16BE: case AV_PIX_FMT_YUVA422P16BE: case AV_PIX_FMT_YUVA444P16BE: diff --git a/libswscale/utils.c b/libswscale/utils.c index d5913ed733..df68bcc0d9 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -260,6 +260,10 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = { [AV_PIX_FMT_P016BE] = { 1, 1 }, [AV_PIX_FMT_GRAYF32LE] = { 1, 1 }, [AV_PIX_FMT_GRAYF32BE] = { 1, 1 }, + [AV_PIX_FMT_YUVA422P12BE] = { 1, 1 }, + [AV_PIX_FMT_YUVA422P12LE] = { 1, 1 }, + [AV_PIX_FMT_YUVA444P12BE] = { 1, 1 }, + [AV_PIX_FMT_YUVA444P12LE] = { 1, 1 }, }; int sws_isSupportedInput(enum AVPixelFormat pix_fmt) |