diff options
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r-- | src/android/camera_device.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 38689bdc..89f10e74 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -860,6 +860,14 @@ const camera_metadata_t *CameraDevice::getStaticMetadata() }; staticMetadata_->addEntry(ANDROID_SENSOR_INFO_PIXEL_ARRAY_SIZE, data.data(), data.size()); + } else { + /* + * \todo Drop the default once the ov5670 and ov13858 drivers + * are updated to report the pixel array size. + */ + int32_t data[] = { 2592, 1944 }; + staticMetadata_->addEntry(ANDROID_SENSOR_INFO_PIXEL_ARRAY_SIZE, + data, 2); } if (properties.contains(properties::PixelArrayActiveAreas)) { @@ -873,6 +881,14 @@ const camera_metadata_t *CameraDevice::getStaticMetadata() }; staticMetadata_->addEntry(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, data.data(), data.size()); + } else { + /* + * \todo Drop the default once the ov5670 and ov13858 drivers + * are updated to report the pixel array size. + */ + int32_t data[] = { 0, 0, 2560, 1920 }; + staticMetadata_->addEntry(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, + data, 4); } int32_t sensitivityRange[] = { |