diff options
author | wm4 <wm4@nowhere> | 2012-10-27 18:01:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-28 15:31:32 +0100 |
commit | d9839fe8623c855b6b335df3a5b9783e3ed22266 (patch) | |
tree | b074361fef63d1a00b473e1859d373acb8c1e0e0 /libmpcodecs/vf.c | |
parent | 1ba8090df7e64885f717133d769f59808c3c8807 (diff) | |
download | mpv-d9839fe8623c855b6b335df3a5b9783e3ed22266.tar.bz2 mpv-d9839fe8623c855b6b335df3a5b9783e3ed22266.tar.xz |
mp_image: add fields to pass colorspace down the filter chain
Note that this also adds a RGB colorspace for general symmetry. The
frontend (colormatrix property and options) and
mp_get_yuv2rgb_coeffs() don't support this.
Diffstat (limited to 'libmpcodecs/vf.c')
-rw-r--r-- | libmpcodecs/vf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index 39a720a893..5f4da28dee 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -538,6 +538,10 @@ void vf_clone_mpi_attributes(mp_image_t *dst, mp_image_t *src) dst->qstride = src->qstride; dst->qscale = src->qscale; } + if ((dst->flags & MP_IMGFLAG_YUV) == (src->flags & MP_IMGFLAG_YUV)) { + dst->colorspace = src->colorspace; + dst->levels = src->levels; + } } void vf_queue_frame(vf_instance_t *vf, int (*func)(vf_instance_t *)) |