diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2023-10-13 13:00:33 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-12-07 08:56:14 +0100 |
commit | a61ff67ffb9d6e6506bd563fa078d98bc8033a9e (patch) | |
tree | 5c883f8ba4bbddaa1d2139648d0c933755223a23 /drivers/media/platform/rockchip/rga/rga.h | |
parent | 0148bcd77d0a2a381818d4d1a8f445217fdbcae8 (diff) |
media: rockchip: rga: rework buffer handling for multi-planar formats
Multi-planar formats may have multiple planes that must be handled and
correctly mapped into a continuous buffer for the RGA by using the DMA
descriptors.
The plane offsets in the continuous mapping may now start at page
boundaries and the previous calculation based on the frame sizes is only
valid for planar buffers in a single memory. Therefore, the offsets must
be detected and set while creating the mapping.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/rockchip/rga/rga.h')
-rw-r--r-- | drivers/media/platform/rockchip/rga/rga.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/rockchip/rga/rga.h b/drivers/media/platform/rockchip/rga/rga.h index f3953a07d9e7..3502dff6055c 100644 --- a/drivers/media/platform/rockchip/rga/rga.h +++ b/drivers/media/platform/rockchip/rga/rga.h @@ -34,6 +34,7 @@ struct rga_frame { /* Image format */ struct rga_fmt *fmt; + struct v4l2_pix_format_mplane pix; /* Variables that can calculated once and reused */ u32 stride; |