Skip to content

Commit

Permalink
drivers: media: pisp_be: Add support for YUV422 planar format
Browse files Browse the repository at this point in the history
List V4L2_PIX_FMT_YUV422P as supported by the PiSP backend hardware.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir authored and popcornmix committed Feb 3, 2025
1 parent 7bbf63d commit b580bca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/media/platform/raspberrypi/pisp_be/pisp_be_formats.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ static const struct pisp_be_format supported_formats[] = {
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
.colorspace_default = V4L2_COLORSPACE_SMPTE170M,
},
{
.fourcc = V4L2_PIX_FMT_YUV422P,
/* 128 alignment to ensure U/V planes are 64 byte aligned. */
.align = 128,
.bit_depth = 8,
.plane_factor = { P3(1), P3(0.5), P3(0.5) },
.num_planes = 1,
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
.colorspace_default = V4L2_COLORSPACE_SMPTE170M,
},
/* Multiplane YUV formats */
{
.fourcc = V4L2_PIX_FMT_YUV420M,
Expand Down

0 comments on commit b580bca

Please sign in to comment.