[libcamera-devel] libcamera: camera_sensor: Add IMX477 sensor properties
diff mbox series

Message ID 20220525114107.3764033-1-naush@raspberrypi.com
State Accepted
Commit 6f53f01409747369f4308acabdb4f44176a5e2c6
Headers show
Series
  • [libcamera-devel] libcamera: camera_sensor: Add IMX477 sensor properties
Related show

Commit Message

Naushir Patuck May 25, 2022, 11:41 a.m. UTC
Add an entry to the sensor properties for Sony IMX477. Currently
no test pattern modes are supported by the device driver.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/libcamera/camera_sensor_properties.cpp | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Laurent Pinchart May 25, 2022, 12:13 p.m. UTC | #1
Hi Naush,

Thank you for the patch.

On Wed, May 25, 2022 at 12:41:07PM +0100, Naushir Patuck via libcamera-devel wrote:
> Add an entry to the sensor properties for Sony IMX477. Currently
> no test pattern modes are supported by the device driver.
> 
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>

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

Could you however also add support for the sensor to the
CameraSensorHelper in src/ipa/libipa/ ?

> ---
>  src/libcamera/camera_sensor_properties.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 235edca190ce..e5f27f06eb1d 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -98,6 +98,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>  			.unitCellSize = { 3450, 3450 },
>  			.testPatternModes = {},
>  		} },
> +		{ "imx477", {
> +			.unitCellSize = { 1550, 1550 },
> +			.testPatternModes = {},
> +		} },
>  		{ "ov2740", {
>  			.unitCellSize = { 1400, 1400 },
>  			.testPatternModes = {
Nicolas Dufresne via libcamera-devel May 27, 2022, 2:48 a.m. UTC | #2
Hi Naush,

On Wed, May 25, 2022 at 12:41:07PM +0100, Naushir Patuck via libcamera-devel wrote:
> Add an entry to the sensor properties for Sony IMX477. Currently
> no test pattern modes are supported by the device driver.
> 
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>

> ---
>  src/libcamera/camera_sensor_properties.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 235edca190ce..e5f27f06eb1d 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -98,6 +98,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>  			.unitCellSize = { 3450, 3450 },
>  			.testPatternModes = {},
>  		} },
> +		{ "imx477", {
> +			.unitCellSize = { 1550, 1550 },
> +			.testPatternModes = {},
> +		} },
>  		{ "ov2740", {
>  			.unitCellSize = { 1400, 1400 },
>  			.testPatternModes = {
> -- 
> 2.34.1
>

Patch
diff mbox series

diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index 235edca190ce..e5f27f06eb1d 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -98,6 +98,10 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 			.unitCellSize = { 3450, 3450 },
 			.testPatternModes = {},
 		} },
+		{ "imx477", {
+			.unitCellSize = { 1550, 1550 },
+			.testPatternModes = {},
+		} },
 		{ "ov2740", {
 			.unitCellSize = { 1400, 1400 },
 			.testPatternModes = {