diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-09-20 13:12:14 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2019-09-21 16:13:04 +0800 |
commit | f4093c09bf997781eb1c236b21fe27ba907430bb (patch) | |
tree | edad9a458e554a130ad18b3c0d4d098659c82c22 /include | |
parent | e9aa21938cdaf64cc049fb8fabb5bdf4c007ca75 (diff) |
MLK-22649 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>
(cherry picked from commit f491e24e65cb360fb0b3ce56f74d04fd80da77ab)
Diffstat (limited to 'include')
-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 a1bd1f217304..1657986c70a2 100644 --- a/include/video/dpu.h +++ b/include/video/dpu.h @@ -475,7 +475,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, |