Skip to content

Commit 141f459

Browse files
committed
drivers: media: pisp_be: Add mono and 48-bit RGB pixel format support
Signed-off-by: Naushir Patuck <[email protected]>
1 parent fed1549 commit 141f459

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,24 @@ static const struct pisp_be_format supported_formats[] = {
234234
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
235235
.colorspace_default = V4L2_COLORSPACE_SRGB,
236236
},
237+
{
238+
.fourcc = V4L2_PIX_FMT_RGB48,
239+
.align = 64,
240+
.bit_depth = 48,
241+
.plane_factor = { P3(1.0) },
242+
.num_planes = 1,
243+
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
244+
.colorspace_default = V4L2_COLORSPACE_SRGB,
245+
},
246+
{
247+
.fourcc = V4L2_PIX_FMT_BGR48,
248+
.align = 64,
249+
.bit_depth = 48,
250+
.plane_factor = { P3(1.0) },
251+
.num_planes = 1,
252+
.colorspace_mask = V4L2_COLORSPACE_MASK_ALL_SRGB,
253+
.colorspace_default = V4L2_COLORSPACE_SRGB,
254+
},
237255
/* Bayer formats - 8-bit */
238256
{
239257
.fourcc = V4L2_PIX_FMT_SRGGB8,
@@ -457,6 +475,33 @@ static const struct pisp_be_format supported_formats[] = {
457475
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,
458476
.colorspace_default = V4L2_COLORSPACE_RAW,
459477
},
478+
/* Greyscale Formats */
479+
{
480+
.fourcc = V4L2_PIX_FMT_GREY,
481+
.bit_depth = 8,
482+
.align = 32,
483+
.num_planes = 1,
484+
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,
485+
.colorspace_default = V4L2_COLORSPACE_RAW,
486+
},
487+
{
488+
.fourcc = V4L2_PIX_FMT_Y16,
489+
.bit_depth = 16,
490+
.align = 32,
491+
.plane_factor = { P3(1.0) },
492+
.num_planes = 1,
493+
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,
494+
.colorspace_default = V4L2_COLORSPACE_RAW,
495+
},
496+
{
497+
.fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,
498+
.bit_depth = 8,
499+
.align = 32,
500+
.plane_factor = { P3(1.0) },
501+
.num_planes = 1,
502+
.colorspace_mask = V4L2_COLORSPACE_MASK_RAW,
503+
.colorspace_default = V4L2_COLORSPACE_RAW,
504+
},
460505
/* Opaque BE format for HW verification. */
461506
{
462507
.fourcc = V4L2_PIX_FMT_RPI_BE,

0 commit comments

Comments
 (0)