[libcamera-devel,08/11] pipeline: ipu3: Support IPU3_Y10 format
diff mbox series

Message ID 20230318234014.29506-9-dan.scally@ideasonboard.com
State New
Headers show
Series
  • Support OV7251 in IPU3 pipeline and qcam
Related show

Commit Message

Daniel Scally March 18, 2023, 11:40 p.m. UTC
Add support for the IPU3_Y10 format to the IPU3 pipeline.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
---
 src/libcamera/pipeline/ipu3/cio2.cpp | 1 +
 1 file changed, 1 insertion(+)

Comments

Laurent Pinchart April 19, 2023, 5:57 a.m. UTC | #1
Hi Dan,

Thank you for the patch.


On Sat, Mar 18, 2023 at 11:40:11PM +0000, Daniel Scally via libcamera-devel wrote:
> Add support for the IPU3_Y10 format to the IPU3 pipeline.
> 
> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/libcamera/pipeline/ipu3/cio2.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp
> index d100df57..d619afe2 100644
> --- a/src/libcamera/pipeline/ipu3/cio2.cpp
> +++ b/src/libcamera/pipeline/ipu3/cio2.cpp
> @@ -34,6 +34,7 @@ const std::map<uint32_t, PixelFormat> mbusCodesToPixelFormat = {
>  	{ MEDIA_BUS_FMT_SGBRG10_1X10, formats::SGBRG10_IPU3 },
>  	{ MEDIA_BUS_FMT_SGRBG10_1X10, formats::SGRBG10_IPU3 },
>  	{ MEDIA_BUS_FMT_SRGGB10_1X10, formats::SRGGB10_IPU3 },
> +	{ MEDIA_BUS_FMT_Y10_1X10, formats::Y10_IPU3 },
>  };
>  
>  } /* namespace */

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp
index d100df57..d619afe2 100644
--- a/src/libcamera/pipeline/ipu3/cio2.cpp
+++ b/src/libcamera/pipeline/ipu3/cio2.cpp
@@ -34,6 +34,7 @@  const std::map<uint32_t, PixelFormat> mbusCodesToPixelFormat = {
 	{ MEDIA_BUS_FMT_SGBRG10_1X10, formats::SGBRG10_IPU3 },
 	{ MEDIA_BUS_FMT_SGRBG10_1X10, formats::SGRBG10_IPU3 },
 	{ MEDIA_BUS_FMT_SRGGB10_1X10, formats::SRGGB10_IPU3 },
+	{ MEDIA_BUS_FMT_Y10_1X10, formats::Y10_IPU3 },
 };
 
 } /* namespace */