mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
android: camera_metadata: Rename get() to getMetadata()
Rename CameraMetadata::get() to CameraMetadata::getMetadata() to avoid confusion with std::unique_ptr::get() when CameraMetadata is used with a std::unique_ptr. No functional changes intended in this patch. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
parent
274607478c
commit
a31c8f02b9
3 changed files with 11 additions and 10 deletions
|
@ -440,7 +440,7 @@ void CameraDevice::setCallbacks(const camera3_callback_ops_t *callbacks)
|
|||
|
||||
const camera_metadata_t *CameraDevice::getStaticMetadata()
|
||||
{
|
||||
return capabilities_.staticMetadata()->get();
|
||||
return capabilities_.staticMetadata()->getMetadata();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -450,7 +450,7 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
|||
{
|
||||
auto it = requestTemplates_.find(type);
|
||||
if (it != requestTemplates_.end())
|
||||
return it->second->get();
|
||||
return it->second->getMetadata();
|
||||
|
||||
/* Use the capture intent matching the requested template type. */
|
||||
std::unique_ptr<CameraMetadata> requestTemplate;
|
||||
|
@ -496,7 +496,7 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
|||
captureIntent);
|
||||
|
||||
requestTemplates_[type] = std::move(requestTemplate);
|
||||
return requestTemplates_[type]->get();
|
||||
return requestTemplates_[type]->getMetadata();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1171,7 +1171,8 @@ void CameraDevice::sendCaptureResults()
|
|||
captureResult.frame_number = descriptor->frameNumber_;
|
||||
|
||||
if (descriptor->resultMetadata_)
|
||||
captureResult.result = descriptor->resultMetadata_->get();
|
||||
captureResult.result =
|
||||
descriptor->resultMetadata_->getMetadata();
|
||||
|
||||
std::vector<camera3_stream_buffer_t> resultBuffers;
|
||||
resultBuffers.reserve(descriptor->buffers_.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue