Home
last modified time | relevance | path

Searched refs:metadata_ (Results 1 – 8 of 8) sorted by relevance

/hardware/google/camera/common/hal/utils/
Dhal_camera_metadata.cc93 return Clone(hal_metadata->metadata_); in Clone()
99 if (metadata_ != nullptr) { in ~HalCameraMetadata()
100 free_camera_metadata(metadata_); in ~HalCameraMetadata()
105 : metadata_(metadata) { in HalCameraMetadata()
111 camera_metadata_t* metadata = metadata_; in ReleaseCameraMetadata()
112 metadata_ = nullptr; in ReleaseCameraMetadata()
118 return metadata_; in GetRawCameraMetadata()
124 if (metadata_ == nullptr) { in GetCameraMetadataSize()
128 return get_camera_metadata_size(metadata_); in GetCameraMetadataSize()
134 size_t current_entry_cap = get_camera_metadata_entry_capacity(metadata_); in ResizeIfNeeded()
[all …]
Dhal_camera_metadata.h150 camera_metadata_t* metadata_ = nullptr; variable
/hardware/libhardware/modules/camera/3_4/metadata/
Dmetadata_reader_test.cpp39 metadata_ = std::make_unique<android::CameraMetadata>(); in ResetMetadata()
43 dut_ = std::make_unique<MetadataReader>(std::move(metadata_)); in FillDUT()
48 std::unique_ptr<android::CameraMetadata> metadata_; member in default_camera_hal::MetadataReaderTest
71 metadata_.get(), facing_tag_, translation.first), in TEST_F()
85 v4l2_camera_hal::UpdateMetadata(metadata_.get(), facing_tag_, invalid), in TEST_F()
101 metadata_.get(), orientation_tag_, orientation), in TEST_F()
115 metadata_.get(), orientation_tag_, orientation + 1), in TEST_F()
124 metadata_.get(), orientation_tag_, orientation - 1), in TEST_F()
141 metadata_.get(), max_inputs_tag_, expected), in TEST_F()
161 metadata_.get(), max_outputs_tag_, expected), in TEST_F()
[all …]
Dmetadata_reader.cpp31 : metadata_(std::move(metadata)) {} in MetadataReader()
38 *metadata_, ANDROID_LENS_FACING, &metadata_facing); in Facing()
66 *metadata_, ANDROID_SENSOR_ORIENTATION, &metadata_orientation); in Orientation()
89 *metadata_, ANDROID_REQUEST_MAX_NUM_INPUT_STREAMS, max_input); in MaxInputStreams()
106 *metadata_, ANDROID_REQUEST_MAX_NUM_OUTPUT_STREAMS, &max_output_streams); in MaxOutputStreams()
121 *metadata_, ANDROID_REQUEST_AVAILABLE_CAPABILITIES, &raw_capabilities); in RequestCapabilities()
137 *metadata_, in StreamConfigurations()
180 v4l2_camera_hal::VectorTagValue(*metadata_, in StreamStallDurations()
219 *metadata_, in ReprocessFormats()
Dmetadata_test.cpp44 metadata_.reset(new android::CameraMetadata()); in SetUp()
75 std::unique_ptr<android::CameraMetadata> metadata_; member in v4l2_camera_hal::MetadataTest
102 ASSERT_EQ(dut_->FillStaticMetadata(metadata_.get()), 0); in TEST_F()
124 metadata_->find(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS)); in TEST_F()
126 metadata_->find(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS)); in TEST_F()
128 metadata_->find(ANDROID_REQUEST_AVAILABLE_RESULT_KEYS)); in TEST_F()
161 EXPECT_EQ(dut_->FillStaticMetadata(metadata_.get()), err); in TEST_F()
204 EXPECT_TRUE(dut_->IsValidRequest(*metadata_)); in TEST_F()
218 EXPECT_EQ(dut_->GetRequestTemplate(template_type, metadata_.get()), 0); in TEST_F()
235 EXPECT_EQ(dut_->GetRequestTemplate(template_type, metadata_.get()), err); in TEST_F()
[all …]
Dmetadata_reader.h44 return metadata_->getAndLock(); in raw_metadata()
68 std::unique_ptr<const android::CameraMetadata> metadata_;
/hardware/libhardware/modules/camera/3_4/
Dv4l2_camera.cpp64 metadata_(std::move(metadata)), in V4L2Camera()
121 int res = metadata_->FillStaticMetadata(out); in initStaticInfo()
147 return metadata_->GetRequestTemplate(type, out); in initTemplate()
224 int res = metadata_->SetRequestSettings(request->settings); in enqueueRequestBuffers()
233 res = metadata_->FillResultMetadata(&request->settings); in enqueueRequestBuffers()
420 if (!metadata_->IsValidRequest(settings)) { in isValidRequestSettings()
Dv4l2_camera.h95 std::unique_ptr<Metadata> metadata_; variable