ffv1enc_vulkan: add support for x2bgr10/x2rgb10

This commit is contained in:
Lynne
2025-11-26 12:59:24 +01:00
parent 23cfcf93d2
commit 3ddcf042b2
2 changed files with 8 additions and 0 deletions

View File

@@ -914,6 +914,8 @@ av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx,
case AV_PIX_FMT_GBRP9:
if (!avctx->bits_per_raw_sample)
s->bits_per_raw_sample = 9;
case AV_PIX_FMT_X2BGR10:
case AV_PIX_FMT_X2RGB10:
case AV_PIX_FMT_GBRP10:
case AV_PIX_FMT_GBRAP10:
if (!avctx->bits_per_raw_sample && !s->bits_per_raw_sample)

View File

@@ -1600,6 +1600,12 @@ void ff_vk_set_perm(enum AVPixelFormat pix_fmt, int lut[4], int inv)
lut[2] = 0;
lut[3] = 3;
break;
case AV_PIX_FMT_X2BGR10:
lut[0] = 0;
lut[1] = 2;
lut[2] = 1;
lut[3] = 3;
break;
default:
lut[0] = 0;
lut[1] = 1;