[libcamera-devel,v3,0/2] android: Fix generation of thumbnail for EXIF data
mbox series

Message ID 20210923072453.130346-1-umang.jain@ideasonboard.com
Headers show
Series
  • android: Fix generation of thumbnail for EXIF data
Related show

Message

Umang Jain Sept. 23, 2021, 7:24 a.m. UTC
Patch 1 provides a clarification about CameraMetadata hint
initialization value for number of entries. CameraMetadata can
resize on the fly (if required), so the constructor values are more
of less of a hint, deliberately kept slightly bigger to avoid
frequent resizes.

Patch 2 fixes the thumbnail generation.

Changes in v3:
- Provide CameraMetadata hint value clarification
- Be more defensive about not adding Size(0,0) for thumbnail by
  introducing a loop over values (As suggested by Jacopo in v2)

Changes in v2:
 - Add an ASSERT to check entry size >= 4 

Umang Jain (2):
  android: camera_capabilities: Clarify CameraMetadata allocation
  android: Fix generation of thumbnail for EXIF data

 src/android/camera_capabilities.cpp | 32 ++++++++++++++++++++++++++---
 1 file changed, 29 insertions(+), 3 deletions(-)