diff options
author | wm4 <wm4@nowhere> | 2020-05-09 17:58:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-09 18:02:57 +0200 |
commit | 56dbbc38479bd84905ac4478b1b853e907a583dd (patch) | |
tree | acba46ed960fbd2fe0053985e34ac4c5fe11cfde /video/img_format.h | |
parent | 9e480850432c05e20bcb4c6d296bb08e5c757d18 (diff) | |
download | mpv-56dbbc38479bd84905ac4478b1b853e907a583dd.tar.bz2 mpv-56dbbc38479bd84905ac4478b1b853e907a583dd.tar.xz |
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.)
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 16 |
1 files changed, 16 insertions, 0 deletions
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) |