[libcamera-devel,2/2] libcamera: Add OV2680 sensor properties
diff mbox series

Message ID 20211130213411.20149-3-djrscally@gmail.com
State New
Headers show
Series
  • Add support for OV2680 driver
Related show

Commit Message

Daniel Scally Nov. 30, 2021, 9:34 p.m. UTC
Add camera sensor properties for the OV2680 sensor - this is the
user facing camera on the Lenovo Miix 510.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
---
 src/libcamera/camera_sensor_properties.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Laurent Pinchart Dec. 1, 2021, 12:25 a.m. UTC | #1
Hi Dan,

Thank you for the patch.

On Tue, Nov 30, 2021 at 09:34:11PM +0000, Daniel Scally wrote:
> Add camera sensor properties for the OV2680 sensor - this is the
> user facing camera on the Lenovo Miix 510.
> 
> Signed-off-by: Daniel Scally <djrscally@gmail.com>
> ---
>  src/libcamera/camera_sensor_properties.cpp | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 48305ac4..a97552ce 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -90,6 +90,19 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>  				{ controls::draft::TestPatternModePn9, 4 },
>  			},
>  		} },
> +		{ "ov2680", {
> +			.unitCellSize = { 1750, 1750 },
> +			.testPatternModes = {
> +				{ controls::draft::TestPatternModeOff, 0 },
> +				{ controls::draft::TestPatternModeColorBars, 1 },

Does this match the colour bars test pattern defined by the CCS
specification, as described by the test pattern control documentation ?
If not, I wouldn't enable it for now (we don't have support for custom
patterns yet).

> +				/*
> +				 * No corresponding test pattern mode for:
> +				 * 2. "Random Data"
> +				 * 3. "Square"
> +				 * 4. "Black Image
> +				 */
> +			},
> +		} },
>  		{ "ov5647", {
>  			.unitCellSize = { 1400, 1400 },
>  			.testPatternModes = {},

Patch
diff mbox series

diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index 48305ac4..a97552ce 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -90,6 +90,19 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				{ controls::draft::TestPatternModePn9, 4 },
 			},
 		} },
+		{ "ov2680", {
+			.unitCellSize = { 1750, 1750 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 1 },
+				/*
+				 * No corresponding test pattern mode for:
+				 * 2. "Random Data"
+				 * 3. "Square"
+				 * 4. "Black Image
+				 */
+			},
+		} },
 		{ "ov5647", {
 			.unitCellSize = { 1400, 1400 },
 			.testPatternModes = {},