diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-09-20 13:12:14 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:58:31 +0800 |
commit | 77a77f3723a124015adf532dd16bfe86abf1c529 (patch) | |
tree | 0395ad40057079b91962e2cb039b6ef04a4e67da /include/video | |
parent | 68e0ff911ab63494bb2cb1a0365c20309c951f8e (diff) |
drm/imx: dpu: plane: Add color properties support
As DPU fetchunits support ITU601(limited range)/ITU601_FR(full range)
and ITU709(limited range) YUV to RGB color space conversions, we may
add color encoding and color range properties support for planes.
Considering software backward compatibility, the default color encoding
is set to ITU601 with full color range.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/dpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/video/dpu.h b/include/video/dpu.h index 745676efe21a..b541d07513ef 100644 --- a/include/video/dpu.h +++ b/include/video/dpu.h @@ -348,7 +348,10 @@ struct dpu_fetchunit_ops { unsigned int w, unsigned int h, u32 fmt, bool deinterlace); - void (*set_fmt)(struct dpu_fetchunit *fu, u32 fmt, bool deinterlace); + void (*set_fmt)(struct dpu_fetchunit *fu, u32 fmt, + enum drm_color_encoding color_encoding, + enum drm_color_range color_range, + bool deinterlace); void (*set_pixel_blend_mode)(struct dpu_fetchunit *fu, unsigned int pixel_blend_mode, u16 alpha, |