summaryrefslogtreecommitdiff
path: root/src/android/camera_capabilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_capabilities.cpp')
-rw-r--r--src/android/camera_capabilities.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/android/camera_capabilities.cpp b/src/android/camera_capabilities.cpp
index 8e91037a..4f764402 100644
--- a/src/android/camera_capabilities.cpp
+++ b/src/android/camera_capabilities.cpp
@@ -1322,6 +1322,15 @@ PixelFormat CameraCapabilities::toPixelFormat(int format) const
return it->second;
}
+std::unique_ptr<CameraMetadata> CameraCapabilities::requestTemplateManual() const
+{
+ std::unique_ptr<CameraMetadata> manualTemplate = requestTemplatePreview();
+ if (!manualTemplate)
+ return nullptr;
+
+ return manualTemplate;
+}
+
std::unique_ptr<CameraMetadata> CameraCapabilities::requestTemplatePreview() const
{
/*
@@ -1411,6 +1420,15 @@ std::unique_ptr<CameraMetadata> CameraCapabilities::requestTemplatePreview() con
return requestTemplate;
}
+std::unique_ptr<CameraMetadata> CameraCapabilities::requestTemplateStill() const
+{
+ std::unique_ptr<CameraMetadata> stillTemplate = requestTemplatePreview();
+ if (!stillTemplate)
+ return nullptr;
+
+ return stillTemplate;
+}
+
std::unique_ptr<CameraMetadata> CameraCapabilities::requestTemplateVideo() const
{
std::unique_ptr<CameraMetadata> previewTemplate = requestTemplatePreview();