mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 15:17:02 +07:00
gpu: ipu-cpmem: add 8-bit grayscale support to ipu_cpmem_set_image
Add the missing offset calculation for grayscale images. Since the IPU only supports capturing greyscale in raw passthrough mode, it is the same as 8-bit bayer formats. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
ac66b8347b
commit
6d36b7fec6
@ -788,6 +788,7 @@ int ipu_cpmem_set_image(struct ipuv3_channel *ch, struct ipu_image *image)
|
|||||||
case V4L2_PIX_FMT_SGBRG8:
|
case V4L2_PIX_FMT_SGBRG8:
|
||||||
case V4L2_PIX_FMT_SGRBG8:
|
case V4L2_PIX_FMT_SGRBG8:
|
||||||
case V4L2_PIX_FMT_SRGGB8:
|
case V4L2_PIX_FMT_SRGGB8:
|
||||||
|
case V4L2_PIX_FMT_GREY:
|
||||||
offset = image->rect.left + image->rect.top * pix->bytesperline;
|
offset = image->rect.left + image->rect.top * pix->bytesperline;
|
||||||
break;
|
break;
|
||||||
case V4L2_PIX_FMT_SBGGR16:
|
case V4L2_PIX_FMT_SBGGR16:
|
||||||
|
Loading…
Reference in New Issue
Block a user