summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-20 19:37:59 +0200
committerwm4 <wm4@nowhere>2019-10-20 19:41:18 +0200
commit8f5979c5d8a8306ebf7e1092c614f26f2366db98 (patch)
tree9096415b0207e6d9bfbe0c4927264ba2327dca08 /video/img_format.h
parent62bd8da490bab7af1fcb80a6f944d670c752c5ab (diff)
downloadmpv-8f5979c5d8a8306ebf7e1092c614f26f2366db98.tar.bz2
mpv-8f5979c5d8a8306ebf7e1092c614f26f2366db98.tar.xz
img_format: add RGB30 format
FFmpeg does not support this from what I can see. This makes supporting it a bit awkward. Later commits use this format.
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 815afea733..5735b6bd72 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -192,6 +192,9 @@ enum mp_imgfmt {
// Accessed with bit-shifts after endian-swapping the uint16_t pixel
IMGFMT_RGB565, // 5r 6g 5b (MSB to LSB)
+ // Accessed with bit-shifts, uint32_t units.
+ IMGFMT_RGB30, // 2pad 10r 10g 10b (MSG to LSB)
+
// Hardware accelerated formats. Plane data points to special data
// structures, instead of pixel data.
IMGFMT_VDPAU, // VdpVideoSurface