summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/edit-3.svg
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/assets/feathericons/edit-3.svg')
0 files changed, 0 insertions, 0 deletions
a id='n122' href='#n122'>122
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * camera_metadata.cpp - libcamera Android Camera Metadata Helper
 */

#include "camera_metadata.h"

#include "libcamera/internal/log.h"

using namespace libcamera;

LOG_DEFINE_CATEGORY(CameraMetadata)

CameraMetadata::CameraMetadata()
	: metadata_(nullptr), valid_(false)
{
}

CameraMetadata::CameraMetadata(size_t entryCapacity, size_t dataCapacity)
{
	metadata_ = allocate_camera_metadata(entryCapacity, dataCapacity);
	valid_ = metadata_ != nullptr;
}

CameraMetadata::CameraMetadata(const camera_metadata_t *metadata)
{
	metadata_ = clone_camera_metadata(metadata);