Initialize capture templates.
As part of this, refactored characteristic initialization into its own
function so it can be used by both templates and static info.
BUG: 29221795
Change-Id: I88bb2e6a96256e3641c7c5d387769880b260535f
diff --git a/modules/camera/3_4/Camera.cpp b/modules/camera/3_4/Camera.cpp
index 0014a39..bbcdf7e 100644
--- a/modules/camera/3_4/Camera.cpp
+++ b/modules/camera/3_4/Camera.cpp
@@ -331,6 +331,9 @@
ALOGE("%s:%d: Invalid template request type: %d", __func__, mId, type);
return NULL;
}
+
+ // Will return NULL (indicating unsupported) if the template is not
+ // initialized.
return mTemplates[type];
}
@@ -559,7 +562,7 @@
return camdev_to_camera(dev)->configureStreams(stream_list);
}
- // TODO: remove
+// TODO(b/29221641): remove
static int register_stream_buffers(const camera3_device_t *dev,
const camera3_stream_buffer_set_t *buffer_set)
{