mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
android: Add skeletal still and manual request templates
Add skeletal still and manual request templates so that we can expand them for FULL support. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
822d9e61fa
commit
719ac76338
3 changed files with 25 additions and 2 deletions
|
@ -487,7 +487,7 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
|||
* for the torch mode we currently do not support.
|
||||
*/
|
||||
captureIntent = ANDROID_CONTROL_CAPTURE_INTENT_STILL_CAPTURE;
|
||||
requestTemplate = capabilities_.requestTemplatePreview();
|
||||
requestTemplate = capabilities_.requestTemplateStill();
|
||||
break;
|
||||
case CAMERA3_TEMPLATE_VIDEO_RECORD:
|
||||
captureIntent = ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_RECORD;
|
||||
|
@ -497,9 +497,12 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
|||
captureIntent = ANDROID_CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT;
|
||||
requestTemplate = capabilities_.requestTemplateVideo();
|
||||
break;
|
||||
case CAMERA3_TEMPLATE_MANUAL:
|
||||
captureIntent = ANDROID_CONTROL_CAPTURE_INTENT_MANUAL;
|
||||
requestTemplate = capabilities_.requestTemplateManual();
|
||||
break;
|
||||
/* \todo Implement templates generation for the remaining use cases. */
|
||||
case CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG:
|
||||
case CAMERA3_TEMPLATE_MANUAL:
|
||||
default:
|
||||
LOG(HAL, Error) << "Unsupported template request type: " << type;
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue