swscale/input: add Y216LE input support

Signed-off-by: James Almer <jamrial@gmail.com>
master
James Almer 2 months ago
parent f462ba05f5
commit 7756cd98ac
  1. 7
      libswscale/input.c
  2. 1
      libswscale/utils.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;

@ -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 },

Loading…
Cancel
Save