From 56dbbc38479bd84905ac4478b1b853e907a583dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2020 17:58:55 +0200 Subject: video: add yuv float formats Adding all these so I can use them for obscure processing purposes (see later draw_bmp commit). There isn't really a reason why they should exist. On the other hand, they're just labels for formats that can be handled in a generic way, and this commit adds support for them in the zimg wrapper and vo_gpu just by making the formats exist. (Well, vo_gpu had to be fixed in the previous commit.) --- video/img_format.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'video/img_format.h') diff --git a/video/img_format.h b/video/img_format.h index 489b0e88db..158fdb9df9 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -212,6 +212,22 @@ enum mp_imgfmt { IMGFMT_YAP8, IMGFMT_YAP16, + // Planar YUV/alpha formats. Sometimes useful for internal processing. There + // should be one for each subsampling factor, with and without alpha, gray. + IMGFMT_YAPF, // Note: non-alpha version exists in ffmpeg + IMGFMT_444PF, + IMGFMT_444APF, + IMGFMT_420PF, + IMGFMT_420APF, + IMGFMT_422PF, + IMGFMT_422APF, + IMGFMT_440PF, + IMGFMT_440APF, + IMGFMT_410PF, + IMGFMT_410APF, + IMGFMT_411PF, + IMGFMT_411APF, + // Accessed with bit-shifts, uint32_t units. IMGFMT_RGB30, // 2pad 10r 10g 10b (MSB to LSB) -- cgit v1.2.3