libcamera: pipeline: ipa: raspberrypi: Use dma heap allocs for LS tables
Remove use of vcsm allocations and replace with dma heap allocations. The pipeline handler now passes the fd of the allocation over to the IPA instead of the raw pointer. Also use libcamera::FileDescriptor for fd lifetime management. This commit must be built alongside the accompanying BCM2835 ISP kernel driver changes at https://github.com/raspberrypi/linux/pull/3715. Otherwise a mismatch will cause undefined behavior. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
3c02a808e8
commit
3e7aa49344
8 changed files with 154 additions and 327 deletions
|
@ -108,7 +108,7 @@ enum bcm2835_isp_gain_format {
|
|||
* @grid_stride: Row to row distance (in grid cells) between grid cells
|
||||
* in the same horizontal location.
|
||||
* @grid_height: Height of lens shading tables in grid cells.
|
||||
* @mem_handle_table: Memory handle to the tables.
|
||||
* @dmabuf: dmabuf file handle containing the table.
|
||||
* @ref_transform: Reference transform - unsupported, please pass zero.
|
||||
* @corner_sampled: Whether the gains are sampled at the corner points
|
||||
* of the grid cells or in the cell centres.
|
||||
|
@ -120,7 +120,7 @@ struct bcm2835_isp_lens_shading {
|
|||
__u32 grid_width;
|
||||
__u32 grid_stride;
|
||||
__u32 grid_height;
|
||||
__u32 mem_handle_table;
|
||||
__s32 dmabuf;
|
||||
__u32 ref_transform;
|
||||
__u32 corner_sampled;
|
||||
__u32 gain_format;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue