Skip to content

Commit 83436b5

Browse files
naushirpelwell
authored andcommitted
drivers: media: pisp_be: Add support for YUV422 planar format
List V4L2_PIX_FMT_YUV422P as supported by the PiSP backend hardware. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 160c7db commit 83436b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/media/platform/raspberrypi/pisp_be/pisp_be_formats.h

+10
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ static const struct pisp_be_format supported_formats[] = {
129129
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
130130
.colorspace_default = V4L2_COLORSPACE_SMPTE170M,
131131
},
132+
{
133+
.fourcc = V4L2_PIX_FMT_YUV422P,
134+
/* 128 alignment to ensure U/V planes are 64 byte aligned. */
135+
.align = 128,
136+
.bit_depth = 8,
137+
.plane_factor = { P3(1), P3(0.5), P3(0.5) },
138+
.num_planes = 1,
139+
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
140+
.colorspace_default = V4L2_COLORSPACE_SMPTE170M,
141+
},
132142
/* Multiplane YUV formats */
133143
{
134144
.fourcc = V4L2_PIX_FMT_YUV420M,

0 commit comments

Comments
 (0)