diff mbox series

yavta: add support for 12-bit packed and 14-bit unpacked/packed bayer formats

Message ID 20231012085216.3346754-1-bingbu.cao@intel.com (mailing list archive)
State New, archived
Headers show
Series yavta: add support for 12-bit packed and 14-bit unpacked/packed bayer formats | expand

Commit Message

Bingbu Cao Oct. 12, 2023, 8:52 a.m. UTC
From: Bingbu Cao <bingbu.cao@intel.com>

Add bayer formats:
V4L2_PIX_FMT_SBGGR12P
V4L2_PIX_FMT_SGBRG12P
V4L2_PIX_FMT_SGRBG12P
V4L2_PIX_FMT_SRGGB12P
V4L2_PIX_FMT_SBGGR14
V4L2_PIX_FMT_SGBRG14
V4L2_PIX_FMT_SGRBG14
V4L2_PIX_FMT_SRGGB14
V4L2_PIX_FMT_SBGGR14P
V4L2_PIX_FMT_SGBRG14P
V4L2_PIX_FMT_SGRBG14P
V4L2_PIX_FMT_SRGGB14P

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
---
 yavta.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Bingbu Cao Dec. 8, 2023, 11:01 a.m. UTC | #1
Laurent and Sakari,

Do you have any chance to review this? :)

On 10/12/23 4:52 PM, bingbu.cao@intel.com wrote:
> From: Bingbu Cao <bingbu.cao@intel.com>
> 
> Add bayer formats:
> V4L2_PIX_FMT_SBGGR12P
> V4L2_PIX_FMT_SGBRG12P
> V4L2_PIX_FMT_SGRBG12P
> V4L2_PIX_FMT_SRGGB12P
> V4L2_PIX_FMT_SBGGR14
> V4L2_PIX_FMT_SGBRG14
> V4L2_PIX_FMT_SGRBG14
> V4L2_PIX_FMT_SRGGB14
> V4L2_PIX_FMT_SBGGR14P
> V4L2_PIX_FMT_SGBRG14P
> V4L2_PIX_FMT_SGRBG14P
> V4L2_PIX_FMT_SRGGB14P
> 
> Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
> ---
>  yavta.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/yavta.c b/yavta.c
> index d5628632c1f8..7d10fa39f6f7 100644
> --- a/yavta.c
> +++ b/yavta.c
> @@ -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 },
>
diff mbox series

Patch

diff --git a/yavta.c b/yavta.c
index d5628632c1f8..7d10fa39f6f7 100644
--- a/yavta.c
+++ b/yavta.c
@@ -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 },