diff options
author | James Almer <jamrial@gmail.com> | 2024-10-21 21:41:22 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-10-23 14:11:23 -0300 |
commit | 7756cd98acefcaad260d73811fa12e5e3903c8df (patch) | |
tree | 63134ae74c27697acd4c4ef37d0beabc4edda26f | |
parent | f462ba05f54dae6b4113c2d2162b861ed2ffe27c (diff) | |
download | ffmpeg-7756cd98acefcaad260d73811fa12e5e3903c8df.tar.gz |
swscale/input: add Y216LE input support
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libswscale/input.c | 7 | ||||
-rw-r--r-- | libswscale/utils.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/input.c b/libswscale/input.c index bb5e31a428..40629831db 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -601,6 +601,7 @@ static void yvy2ToUV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, con y21xle_wrapper(10, 6) y21xle_wrapper(12, 4) +y21xle_wrapper(16, 0) static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width, uint32_t *unused, void *opq) @@ -1757,6 +1758,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, case AV_PIX_FMT_Y212LE: *chrToYV12 = y212le_UV_c; break; + case AV_PIX_FMT_Y216LE: + *chrToYV12 = y216le_UV_c; + break; case AV_PIX_FMT_RGBF32LE: *chrToYV12 = rgbf32le_to_uv_c; break; @@ -2287,6 +2291,9 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c, case AV_PIX_FMT_Y212LE: *lumToYV12 = y212le_Y_c; break; + case AV_PIX_FMT_Y216LE: + *lumToYV12 = y216le_Y_c; + break; case AV_PIX_FMT_X2RGB10LE: *lumToYV12 = rgb30leToY_c; break; diff --git a/libswscale/utils.c b/libswscale/utils.c index 9b23df4dbb..25ed05afee 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -248,6 +248,7 @@ static const FormatEntry format_entries[] = { [AV_PIX_FMT_NV42] = { 1, 1 }, [AV_PIX_FMT_Y210LE] = { 1, 1 }, [AV_PIX_FMT_Y212LE] = { 1, 1 }, + [AV_PIX_FMT_Y216LE] = { 1, 0 }, [AV_PIX_FMT_X2RGB10LE] = { 1, 1 }, [AV_PIX_FMT_X2BGR10LE] = { 1, 1 }, [AV_PIX_FMT_P210BE] = { 1, 1 }, |