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 <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
This commit is contained in:
Steve Longerbeam 2018-10-06 14:45:48 -07:00 • committed by Philipp Zabel
commit dec408fd23
3 changed files with 35 additions and 24 deletions

View file

@ -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);