diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2018-10-06 14:45:48 -0700 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 14:40:06 +0100 |
commit | dec408fd23ae81338a55556cd570dacd6bf41046 (patch) | |
tree | 80202464033a7d428bc9167f3b2b9269b254e900 /include/video | |
parent | 22ec08081956084687e0824ffd0ff4d768584143 (diff) | |
download | linux-starfive-dec408fd23ae81338a55556cd570dacd6bf41046.tar.gz linux-starfive-dec408fd23ae81338a55556cd570dacd6bf41046.tar.bz2 linux-starfive-dec408fd23ae81338a55556cd570dacd6bf41046.zip |
gpu: ipu-v3: Add chroma plane offset overrides to ipu_cpmem_set_image()
Allow the caller of ipu_cpmem_set_image() to override the latters
calculation of the chroma plane offsets, by adding override U/V
plane offsets to 'struct ipu_image'.
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx-ipu-v3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index abbad94e14a1..8bb163cd9314 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -246,6 +246,9 @@ struct ipu_image { struct v4l2_rect rect; dma_addr_t phys0; dma_addr_t phys1; + /* chroma plane offset overrides */ + u32 u_offset; + u32 v_offset; }; void ipu_cpmem_zero(struct ipuv3_channel *ch); |