mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 08:55:06 +03:00
android: camera_device: Use precise sizes for request template
Use more opportune sizes, manually calculated, for the generated request template. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
9b361dc4bc
commit
637034742f
1 changed files with 5 additions and 5 deletions
|
@ -547,11 +547,11 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
||||||
if (requestTemplate_)
|
if (requestTemplate_)
|
||||||
return requestTemplate_;
|
return requestTemplate_;
|
||||||
|
|
||||||
/* \todo Use correct sizes */
|
/*
|
||||||
#define REQUEST_TEMPLATE_ENTRIES 30
|
* \todo Keep this in sync with the actual number of entries.
|
||||||
#define REQUEST_TEMPLATE_DATA 2048
|
* Currently: 12 entries, 15 bytes
|
||||||
requestTemplate_ = allocate_camera_metadata(REQUEST_TEMPLATE_ENTRIES,
|
*/
|
||||||
REQUEST_TEMPLATE_DATA);
|
requestTemplate_ = allocate_camera_metadata(15, 20);
|
||||||
if (!requestTemplate_) {
|
if (!requestTemplate_) {
|
||||||
LOG(HAL, Error) << "Failed to allocate template metadata";
|
LOG(HAL, Error) << "Failed to allocate template metadata";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue