summaryrefslogtreecommitdiffstats
path: root/video/img_format.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-01 16:16:03 +0200
committerwm4 <wm4@nowhere>2013-05-01 16:26:45 +0200
commit9e0b68a385a8f1d9ebfdf9969444cc6cda1def52 (patch)
tree486ce3884f6109be6e581c5612898ce2e3bc4cb8 /video/img_format.c
parent3899e594eaf26553fad68ed3e95556577fc6d786 (diff)
downloadmpv-9e0b68a385a8f1d9ebfdf9969444cc6cda1def52.tar.bz2
mpv-9e0b68a385a8f1d9ebfdf9969444cc6cda1def52.tar.xz
video: add XYZ support
Needed for the ffmpeg j2k decoder.
Diffstat (limited to 'video/img_format.c')
-rw-r--r--video/img_format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/img_format.c b/video/img_format.c
index dfb82d2081..46b5d7a250 100644
--- a/video/img_format.c
+++ b/video/img_format.c
@@ -111,6 +111,7 @@ struct mp_imgfmt_entry mp_imgfmt_list[] = {
FMT_ENDIAN("gbrp12", IMGFMT_GBRP12)
FMT_ENDIAN("gbrp14", IMGFMT_GBRP14)
FMT_ENDIAN("gbrp16", IMGFMT_GBRP16)
+ FMT_ENDIAN("xyz12", IMGFMT_XYZ12)
FMT("vdpau_mpeg1", IMGFMT_VDPAU_MPEG1)
FMT("vdpau_mpeg2", IMGFMT_VDPAU_MPEG2)
FMT("vdpau_h264", IMGFMT_VDPAU_H264)
@@ -197,6 +198,8 @@ static struct mp_imgfmt_desc get_avutil_fmt(enum PixelFormat fmt)
fmt != PIX_FMT_PAL8)
{
desc.flags |= MP_IMGFLAG_YUV;
+ } else if (mpfmt == IMGFMT_XYZ12_LE || mpfmt == IMGFMT_XYZ12_BE) {
+ desc.flags |= MP_IMGFLAG_XYZ;
} else {
desc.flags |= MP_IMGFLAG_RGB;
}