yavta: add support for 12-bit packed and 14-bit unpacked/packed bayer formats
PATCH 1/1 yavta: add support for 12-bit packed and 14-bit unpacked/packed bayer formats
From: Bingbu Cao <[email protected]>
Add bayer formats:V4L2_PIX_FMT_SBGGR12PV4L2_PIX_FMT_SGBRG12PV4L2_PIX_FMT_SGRBG12PV4L2_PIX_FMT_SRGGB12PV4L2_PIX_FMT_SBGGR14V4L2_PIX_FMT_SGBRG14V4L2_PIX_FMT_SGRBG14V4L2_PIX_FMT_SRGGB14V4L2_PIX_FMT_SBGGR14PV4L2_PIX_FMT_SGBRG14PV4L2_PIX_FMT_SGRBG14PV4L2_PIX_FMT_SRGGB14P
--- yavta.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
yavta.c +12 -0
@@ -348,6 +348,18 @@ static struct v4l2_format_info { { "SGBRG12", V4L2_PIX_FMT_SGBRG12, 1 }, { "SGRBG12", V4L2_PIX_FMT_SGRBG12, 1 }, { "SRGGB12", V4L2_PIX_FMT_SRGGB12, 1 }, + { "SBGGR12P", V4L2_PIX_FMT_SBGGR12P, 1 }, + { "SGBRG12P", V4L2_PIX_FMT_SGBRG12P, 1 }, + { "SGRBG12P", V4L2_PIX_FMT_SGRBG12P, 1 }, + { "SRGGB12P", V4L2_PIX_FMT_SRGGB12P, 1 }, + { "SBGGR14", V4L2_PIX_FMT_SBGGR14, 1 }, + { "SGBRG14", V4L2_PIX_FMT_SGBRG14, 1 }, + { "SGRBG14", V4L2_PIX_FMT_SGRBG14, 1 }, + { "SRGGB14", V4L2_PIX_FMT_SRGGB14, 1 }, + { "SBGGR14P", V4L2_PIX_FMT_SBGGR14P, 1 }, + { "SGBRG14P", V4L2_PIX_FMT_SGBRG14P, 1 }, + { "SGRBG14P", V4L2_PIX_FMT_SGRBG14P, 1 }, + { "SRGGB14P", V4L2_PIX_FMT_SRGGB14P, 1 }, { "SBGGR16", V4L2_PIX_FMT_SBGGR16, 1 }, { "SGBRG16", V4L2_PIX_FMT_SGBRG16, 1 }, { "SGRBG16", V4L2_PIX_FMT_SGRBG16, 1 },
Signature · 1 line
2.42.0
Laurent and Sakari,
Do you have any chance to review this? :)
Quoted 45 lines · On 10/12/23 4:52 PM, [email protected] wrote:
From: Bingbu Cao <[email protected]>
Add bayer formats:
V4L2_PIX_FMT_SBGGR12PV4L2_PIX_FMT_SGBRG12PV4L2_PIX_FMT_SGRBG12PV4L2_PIX_FMT_SRGGB12PV4L2_PIX_FMT_SBGGR14V4L2_PIX_FMT_SGBRG14V4L2_PIX_FMT_SGRBG14V4L2_PIX_FMT_SRGGB14V4L2_PIX_FMT_SBGGR14PV4L2_PIX_FMT_SGBRG14PV4L2_PIX_FMT_SGRBG14PV4L2_PIX_FMT_SRGGB14PSigned-off-by Bingbu Cao <[email protected]>--- yavta.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)yavta.c +12
-0@@ -348,6 +348,18 @@ static struct v4l2_format_info { { "SGBRG12", V4L2_PIX_FMT_SGBRG12, 1 }, { "SGRBG12", V4L2_PIX_FMT_SGRBG12, 1 }, { "SRGGB12", V4L2_PIX_FMT_SRGGB12, 1 }, + { "SBGGR12P", V4L2_PIX_FMT_SBGGR12P, 1 }, + { "SGBRG12P", V4L2_PIX_FMT_SGBRG12P, 1 }, + { "SGRBG12P", V4L2_PIX_FMT_SGRBG12P, 1 }, + { "SRGGB12P", V4L2_PIX_FMT_SRGGB12P, 1 }, + { "SBGGR14", V4L2_PIX_FMT_SBGGR14, 1 }, + { "SGBRG14", V4L2_PIX_FMT_SGBRG14, 1 }, + { "SGRBG14", V4L2_PIX_FMT_SGRBG14, 1 }, + { "SRGGB14", V4L2_PIX_FMT_SRGGB14, 1 }, + { "SBGGR14P", V4L2_PIX_FMT_SBGGR14P, 1 }, + { "SGBRG14P", V4L2_PIX_FMT_SGBRG14P, 1 }, + { "SGRBG14P", V4L2_PIX_FMT_SGRBG14P, 1 }, + { "SRGGB14P", V4L2_PIX_FMT_SRGGB14P, 1 }, { "SBGGR16", V4L2_PIX_FMT_SBGGR16, 1 }, { "SGBRG16", V4L2_PIX_FMT_SGBRG16, 1 }, { "SGRBG16", V4L2_PIX_FMT_SGRBG16, 1 },
Signature · 2 lines
Best regards, Bingbu Cao