Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 25 of 269) sorted by relevance

1234567891011

/hardware/libhardware/modules/camera/3_4/metadata/
Dcontrol_test.cpp81 android::CameraMetadata metadata; in ExpectOptions() local
82 ASSERT_EQ(control_->PopulateStaticFields(&metadata), 0); in ExpectOptions()
84 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectOptions()
85 ExpectMetadataEq(metadata, options_tag_, options); in ExpectOptions()
87 EXPECT_EQ(metadata.entryCount(), 0u); in ExpectOptions()
94 android::CameraMetadata metadata; in ExpectValue() local
95 ASSERT_EQ(control_->PopulateDynamicFields(&metadata), 0); in ExpectValue()
96 EXPECT_EQ(metadata.entryCount(), 1u); in ExpectValue()
97 ExpectMetadataEq(metadata, delegate_tag_, value); in ExpectValue()
182 android::CameraMetadata metadata; in TEST_F() local
[all …]
Dproperty_test.cpp60 android::CameraMetadata metadata; in TEST_F() local
61 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F()
65 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F()
67 ExpectMetadataEq(metadata, int_tag_, data); in TEST_F()
78 android::CameraMetadata metadata; in TEST_F() local
79 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F()
83 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F()
85 ExpectMetadataEq(metadata, float_tag_, data); in TEST_F()
94 android::CameraMetadata metadata; in TEST_F() local
95 ASSERT_EQ(property.PopulateStaticFields(&metadata), 0); in TEST_F()
[all …]
Dstate_test.cpp68 android::CameraMetadata metadata; in TEST_F() local
69 ASSERT_EQ(state_->PopulateStaticFields(&metadata), 0); in TEST_F()
70 EXPECT_TRUE(metadata.isEmpty()); in TEST_F()
80 android::CameraMetadata metadata; in TEST_F() local
81 ASSERT_EQ(state_->PopulateDynamicFields(&metadata), 0); in TEST_F()
82 EXPECT_EQ(metadata.entryCount(), 1u); in TEST_F()
83 ExpectMetadataEq(metadata, tag_, expected); in TEST_F()
92 android::CameraMetadata metadata; in TEST_F() local
93 ASSERT_EQ(state_->PopulateDynamicFields(&metadata), err); in TEST_F()
99 android::CameraMetadata metadata; in TEST_F() local
[all …]
Dtest_common.h33 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument
37 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataEq()
49 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument
52 ExpectMetadataEq(metadata, tag, &expected, 1); in ExpectMetadataEq()
57 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument
60 ExpectMetadataEq(metadata, tag, expected.data(), expected.size()); in ExpectMetadataEq()
65 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument
68 ExpectMetadataEq(metadata, tag, expected.data(), N); in ExpectMetadataEq()
73 static void ExpectMetadataEq(const android::CameraMetadata& metadata, in ExpectMetadataEq() argument
77 metadata, tag, expected.data(), expected.total_num_elements()); in ExpectMetadataEq()
[all …]
Dmetadata.cpp37 int Metadata::FillStaticMetadata(android::CameraMetadata* metadata) { in FillStaticMetadata() argument
39 if (!metadata) { in FillStaticMetadata()
60 res = metadata->append(additional_metadata); in FillStaticMetadata()
85 metadata, ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS, control_tags); in FillStaticMetadata()
92 metadata, ANDROID_REQUEST_AVAILABLE_RESULT_KEYS, dynamic_tags); in FillStaticMetadata()
99 metadata, ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS, static_tags); in FillStaticMetadata()
109 bool Metadata::IsValidRequest(const android::CameraMetadata& metadata) { in IsValidRequest() argument
113 if (metadata.isEmpty()) in IsValidRequest()
118 bool valid_request = component->SupportsRequestValues(metadata); in IsValidRequest()
165 int Metadata::SetRequestSettings(const android::CameraMetadata& metadata) { in SetRequestSettings() argument
[all …]
Dcontrol.h44 android::CameraMetadata* metadata) const override;
46 android::CameraMetadata* metadata) const override;
48 int template_type, android::CameraMetadata* metadata) const override;
50 const android::CameraMetadata& metadata) const override;
52 const android::CameraMetadata& metadata) override;
88 int Control<T>::PopulateStaticFields(android::CameraMetadata* metadata) const { in PopulateStaticFields() argument
102 metadata, options_->tag(), options_->MetadataRepresentation()); in PopulateStaticFields()
106 int Control<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields() argument
113 return UpdateMetadata(metadata, delegate_->tag(), value); in PopulateDynamicFields()
118 int template_type, android::CameraMetadata* metadata) const { in PopulateTemplateRequest() argument
[all …]
Dmetadata_common.h61 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument
65 int res = metadata->update(tag, data, count); in UpdateMetadata()
75 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument
78 return UpdateMetadata(metadata, tag, &val, 1); in UpdateMetadata()
83 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument
86 return UpdateMetadata(metadata, tag, val.data(), val.size()); in UpdateMetadata()
91 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument
94 return UpdateMetadata(metadata, tag, val.data(), N); in UpdateMetadata()
99 static int UpdateMetadata(android::CameraMetadata* metadata, in UpdateMetadata() argument
102 return UpdateMetadata(metadata, tag, val.data(), val.total_num_elements()); in UpdateMetadata()
[all …]
Dpartial_metadata_interface.h39 virtual int PopulateStaticFields(android::CameraMetadata* metadata) const = 0;
43 android::CameraMetadata* metadata) const = 0;
47 int template_type, android::CameraMetadata* metadata) const = 0;
53 const android::CameraMetadata& metadata) const = 0;
58 virtual int SetRequestValues(const android::CameraMetadata& metadata) = 0;
Dstate.h39 android::CameraMetadata* metadata) const override;
41 android::CameraMetadata* metadata) const override;
43 int template_type, android::CameraMetadata* metadata) const override;
45 const android::CameraMetadata& metadata) const override;
47 const android::CameraMetadata& metadata) override;
63 int State<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields() argument
71 return UpdateMetadata(metadata, tag_, value); in PopulateDynamicFields()
Dmetadata.h31 int FillStaticMetadata(android::CameraMetadata* metadata);
32 bool IsValidRequest(const android::CameraMetadata& metadata);
35 int SetRequestSettings(const android::CameraMetadata& metadata);
36 int FillResultMetadata(android::CameraMetadata* metadata);
/hardware/libhardware/modules/camera/3_4/
DAndroid.mk53 metadata/boottime_state_delegate.cpp \
54 metadata/enum_converter.cpp \
55 metadata/metadata.cpp \
56 metadata/metadata_reader.cpp \
67 metadata/control_test.cpp \
68 metadata/default_option_delegate_test.cpp \
69 metadata/enum_converter_test.cpp \
70 metadata/ignored_control_delegate_test.cpp \
71 metadata/map_converter_test.cpp \
72 metadata/menu_control_options_test.cpp \
[all …]
Dformat_metadata_factory_test.cpp39 virtual void ExpectMetadataTagCount(const android::CameraMetadata& metadata, in ExpectMetadataTagCount() argument
42 camera_metadata_ro_entry_t entry = metadata.find(tag); in ExpectMetadataTagCount()
103 android::CameraMetadata metadata; in TEST_F() local
104 component->PopulateStaticFields(&metadata); in TEST_F()
105 ASSERT_EQ(metadata.entryCount(), 1u); in TEST_F()
113 ExpectMetadataTagCount(metadata, tag, (formats.size() + 1) * 3 * 4); in TEST_F()
117 ExpectMetadataEq(metadata, tag, 200000000); in TEST_F()
121 ExpectMetadataTagCount(metadata, tag, 4); in TEST_F()
169 android::CameraMetadata metadata; in TEST_F() local
170 component->PopulateStaticFields(&metadata); in TEST_F()
[all …]
/hardware/qcom/display/msm8960/libqdutils/
Dmdp_version.cpp75 struct msmfb_metadata metadata; in MDPVersion() local
76 memset(&metadata, 0 , sizeof(metadata)); in MDPVersion()
77 metadata.op = metadata_op_get_caps; in MDPVersion()
78 if (ioctl(fb_fd, MSMFB_METADATA_GET, &metadata) == -1) { in MDPVersion()
82 mMdpRev = metadata.data.caps.mdp_rev; in MDPVersion()
83 mRGBPipes = metadata.data.caps.rgb_pipes; in MDPVersion()
84 mVGPipes = metadata.data.caps.vig_pipes; in MDPVersion()
85 mDMAPipes = metadata.data.caps.dma_pipes; in MDPVersion()
/hardware/google/camera/devices/EmulatedCamera/hwl/utils/
DHWLUtils.cpp26 bool HasCapability(const HalCameraMetadata* metadata, uint8_t capability) { in HasCapability() argument
27 if (metadata == nullptr) { in HasCapability()
32 auto ret = metadata->Get(ANDROID_REQUEST_AVAILABLE_CAPABILITIES, &entry); in HasCapability()
45 status_t GetSensorCharacteristics(const HalCameraMetadata* metadata, in GetSensorCharacteristics() argument
47 if ((metadata == nullptr) || (sensor_chars == nullptr)) { in GetSensorCharacteristics()
53 ret = metadata->Get(ANDROID_SENSOR_INFO_PIXEL_ARRAY_SIZE, &entry); in GetSensorCharacteristics()
61 ret = metadata->Get(ANDROID_REQUEST_MAX_NUM_OUTPUT_STREAMS, &entry); in GetSensorCharacteristics()
71 if (HasCapability(metadata, in GetSensorCharacteristics()
73 ret = metadata->Get(ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE, &entry); in GetSensorCharacteristics()
83 ret = metadata->Get(ANDROID_SENSOR_INFO_MAX_FRAME_DURATION, &entry); in GetSensorCharacteristics()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
DoverlayWriteback.cpp191 struct msmfb_metadata metadata; in setOutputFormat() local
192 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat()
193 metadata.op = metadata_op_wb_format; in setOutputFormat()
194 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat()
195 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat()
206 struct msmfb_metadata metadata; in getOutputFormat() local
207 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat()
208 metadata.op = metadata_op_wb_format; in getOutputFormat()
209 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat()
213 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat()
[all …]
/hardware/qcom/display/msm8994/liboverlay/
DoverlayWriteback.cpp195 struct msmfb_metadata metadata; in setOutputFormat() local
196 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat()
197 metadata.op = metadata_op_wb_format; in setOutputFormat()
198 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat()
199 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat()
210 struct msmfb_metadata metadata; in getOutputFormat() local
211 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat()
212 metadata.op = metadata_op_wb_format; in getOutputFormat()
213 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat()
217 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
DoverlayWriteback.cpp191 struct msmfb_metadata metadata; in setOutputFormat() local
192 memset(&metadata, 0 , sizeof(metadata)); in setOutputFormat()
193 metadata.op = metadata_op_wb_format; in setOutputFormat()
194 metadata.data.mixer_cfg.writeback_format = mdpFormat; in setOutputFormat()
195 if (ioctl(mFd.getFD(), MSMFB_METADATA_SET, &metadata) < 0) { in setOutputFormat()
206 struct msmfb_metadata metadata; in getOutputFormat() local
207 memset(&metadata, 0 , sizeof(metadata)); in getOutputFormat()
208 metadata.op = metadata_op_wb_format; in getOutputFormat()
209 if (ioctl(mFd.getFD(), MSMFB_METADATA_GET, &metadata) < 0) { in getOutputFormat()
213 mOpFmt = metadata.data.mixer_cfg.writeback_format; in getOutputFormat()
[all …]
/hardware/google/camera/common/hal/utils/
Dzoom_ratio_mapper.cc65 for (auto& [camera_id, metadata] : request->physical_camera_settings) { in UpdateCaptureRequest()
66 if (metadata != nullptr) { in UpdateCaptureRequest()
75 ApplyZoomRatio(physical_active_array_dimension, true, metadata.get()); in UpdateCaptureRequest()
99 for (auto& [camera_id, metadata] : result->physical_metadata) { in UpdateCaptureResult()
100 if (metadata != nullptr) { in UpdateCaptureResult()
109 ApplyZoomRatio(physical_active_array_dimension, false, metadata.get()); in UpdateCaptureResult()
119 HalCameraMetadata* metadata) { in ApplyZoomRatio() argument
120 if (metadata == nullptr) { in ApplyZoomRatio()
126 status_t res = metadata->Get(ANDROID_CONTROL_ZOOM_RATIO, &entry); in ApplyZoomRatio()
145 metadata); in ApplyZoomRatio()
[all …]
/hardware/google/camera/common/hal/google_camera_hal/
Dvendor_tags.cc35 status_t ModifyCharacteristicsKeys(HalCameraMetadata* metadata) { in ModifyCharacteristicsKeys() argument
36 if (metadata == nullptr) { in ModifyCharacteristicsKeys()
44 res = metadata->Get(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS, &entry); in ModifyCharacteristicsKeys()
54 res = metadata->Get(ANDROID_REQUEST_AVAILABLE_RESULT_KEYS, &entry); in ModifyCharacteristicsKeys()
64 res = metadata->Get(ANDROID_REQUEST_AVAILABLE_SESSION_KEYS, &entry); in ModifyCharacteristicsKeys()
73 res = metadata->Get(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS, &entry); in ModifyCharacteristicsKeys()
83 res = metadata->Get(ANDROID_LOGICAL_MULTI_CAMERA_PHYSICAL_IDS, &entry); in ModifyCharacteristicsKeys()
110 if (metadata->Set(ANDROID_REQUEST_AVAILABLE_REQUEST_KEYS, request_keys.data(), in ModifyCharacteristicsKeys()
112 metadata->Set(ANDROID_REQUEST_AVAILABLE_RESULT_KEYS, result_keys.data(), in ModifyCharacteristicsKeys()
114 metadata->Set(ANDROID_REQUEST_AVAILABLE_SESSION_KEYS, session_keys.data(), in ModifyCharacteristicsKeys()
[all …]
Dhal_utils.cc46 for (auto& metadata : request.input_buffer_metadata) { in CreateHwlPipelineRequest() local
48 HalCameraMetadata::Clone(metadata.get())); in CreateHwlPipelineRequest()
107 for (const auto& [camera_id, metadata] : hwl_result->physical_camera_results) { in ConvertToCaptureResult()
109 {camera_id, HalCameraMetadata::Clone(metadata.get())})); in ConvertToCaptureResult()
440 status_t SetEnableZslMetadata(HalCameraMetadata* metadata, bool enable) { in SetEnableZslMetadata() argument
441 if (metadata == nullptr) { in SetEnableZslMetadata()
447 status_t res = metadata->Set(ANDROID_CONTROL_ENABLE_ZSL, &enable_zsl, 1); in SetEnableZslMetadata()
456 status_t SetHybridAeMetadata(HalCameraMetadata* metadata, bool enable) { in SetHybridAeMetadata() argument
457 if (metadata == nullptr) { in SetHybridAeMetadata()
464 res = metadata->Set(VendorTagIds::kHybridAeEnabled, &enable_hybrid_ae, in SetHybridAeMetadata()
[all …]
Dhal_utils.h75 status_t SetEnableZslMetadata(HalCameraMetadata* metadata, bool enable);
78 status_t SetHybridAeMetadata(HalCameraMetadata* metadata, bool enable);
81 status_t ModifyRealtimeRequestForHdrplus(HalCameraMetadata* metadata,
88 status_t RemoveFdInfoFromResult(HalCameraMetadata* metadata);
91 status_t ForceLensShadingMapModeOn(HalCameraMetadata* metadata);
98 status_t RemoveLsInfoFromResult(HalCameraMetadata* metadata);
/hardware/interfaces/camera/metadata/3.5/
DAndroid.bp4 name: "android.hardware.camera.metadata@3.5",
13 "android.hardware.camera.metadata@3.2",
14 "android.hardware.camera.metadata@3.3",
15 "android.hardware.camera.metadata@3.4",
/hardware/libhardware/modules/radio/
Dradio_hw.c179 static int add_bitmap_metadata(radio_metadata_t **metadata, radio_metadata_key_t key, in add_bitmap_metadata() argument
202 ret = radio_metadata_add_raw(metadata, key, (const unsigned char *)data, size); in add_bitmap_metadata()
212 radio_metadata_t **metadata, bool program) in prepare_metadata() argument
218 if (metadata == NULL) in prepare_metadata()
221 if (*metadata != NULL) in prepare_metadata()
222 radio_metadata_deallocate(*metadata); in prepare_metadata()
224 *metadata = NULL; in prepare_metadata()
226 ret = radio_metadata_allocate(metadata, tuner->program.channel, 0); in prepare_metadata()
232 ret = radio_metadata_add_int(metadata, RADIO_METADATA_KEY_RBDS_PTY, 5); in prepare_metadata()
235 ret = radio_metadata_add_text(metadata, RADIO_METADATA_KEY_RDS_PS, "RockBand"); in prepare_metadata()
[all …]
/hardware/libhardware/modules/camera/3_4/arc/
Dimage_processor.cpp58 static bool ConvertToJpeg(const CameraMetadata& metadata,
60 static bool SetExifTags(const CameraMetadata& metadata, ExifUtils* utils);
115 int ImageProcessor::ConvertFormat(const CameraMetadata& metadata, in ConvertFormat() argument
220 bool res = ConvertToJpeg(metadata, in_frame, out_frame); in ConvertFormat()
351 static bool ConvertToJpeg(const CameraMetadata& metadata, in ConvertToJpeg() argument
357 if (metadata.exists(ANDROID_JPEG_QUALITY)) { in ConvertToJpeg()
358 entry = metadata.find(ANDROID_JPEG_QUALITY); in ConvertToJpeg()
365 if (metadata.exists(ANDROID_JPEG_THUMBNAIL_QUALITY)) { in ConvertToJpeg()
366 entry = metadata.find(ANDROID_JPEG_THUMBNAIL_QUALITY); in ConvertToJpeg()
377 if (!SetExifTags(metadata, &utils)) { in ConvertToJpeg()
[all …]
/hardware/interfaces/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/
DComposerCommandBuffer.h51 for (const auto& metadata : metadataVec) { in setLayerPerFrameMetadata() local
52 writeSigned(static_cast<int32_t>(metadata.key)); in setLayerPerFrameMetadata()
53 writeFloat(metadata.value); in setLayerPerFrameMetadata()
81 const hidl_vec<IComposerClient::PerFrameMetadataBlob>& metadata) { in setLayerPerFrameMetadataBlobs() argument
85 if (metadata.size() > std::numeric_limits<uint32_t>::max()) { in setLayerPerFrameMetadataBlobs()
93 for (auto metadataBlob : metadata) { in setLayerPerFrameMetadataBlobs()
113 write(static_cast<uint32_t>(metadata.size())); in setLayerPerFrameMetadataBlobs()
114 for (auto metadataBlob : metadata) { in setLayerPerFrameMetadataBlobs()

1234567891011