libcamera: formats: Fix sort ordering of R10_CSI2P

Move formats::R10_CSI2P to be grouped with the formats::R10 counterpart
and keep the section of format declarations sorted in increasing bit
depth.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2024-01-23 14:09:52 +00:00
parent 2ab8b8d48a
commit f87e4c3908

View file

@ -497,6 +497,16 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.pixelsPerGroup = 1, .pixelsPerGroup = 1,
.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }}, .planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},
} }, } },
{ formats::R10_CSI2P, {
.name = "R10_CSI2P",
.format = formats::R10_CSI2P,
.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_Y10P), },
.bitsPerPixel = 10,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
.packed = true,
.pixelsPerGroup = 4,
.planes = {{ { 5, 1 }, { 0, 0 }, { 0, 0 } }},
} },
{ formats::R12, { { formats::R12, {
.name = "R12", .name = "R12",
.format = formats::R12, .format = formats::R12,
@ -517,16 +527,6 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.pixelsPerGroup = 1, .pixelsPerGroup = 1,
.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }}, .planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},
} }, } },
{ formats::R10_CSI2P, {
.name = "R10_CSI2P",
.format = formats::R10_CSI2P,
.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_Y10P), },
.bitsPerPixel = 10,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
.packed = true,
.pixelsPerGroup = 4,
.planes = {{ { 5, 1 }, { 0, 0 }, { 0, 0 } }},
} },
/* Bayer formats. */ /* Bayer formats. */
{ formats::SBGGR8, { { formats::SBGGR8, {