Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 106) sorted by relevance

12345

/drivers/peripheral/camera/interfaces/hdi_ipc/utils/src/
Dutils_data_stub.cpp19 bool UtilsDataStub::WriteMetadataDataToVec(const camera_metadata_item_t &entry, std::vector<uint8_t… in WriteMetadataDataToVec() argument
21 if (entry.data_type == META_TYPE_BYTE) { in WriteMetadataDataToVec()
22 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
23 WriteData<int8_t>(*(entry.data.u8 + i), cameraAbility); in WriteMetadataDataToVec()
25 } else if (entry.data_type == META_TYPE_INT32) { in WriteMetadataDataToVec()
26 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
27 WriteData<int32_t>(*(entry.data.i32 + i), cameraAbility); in WriteMetadataDataToVec()
29 } else if (entry.data_type == META_TYPE_FLOAT) { in WriteMetadataDataToVec()
30 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
31 WriteData<float>(*(entry.data.f + i), cameraAbility); in WriteMetadataDataToVec()
[all …]
/drivers/interface/camera/metadata/src/
Dmetadata_utils.cpp32 void MetadataUtils::WriteMetadataDataToVec(const camera_metadata_item_t &entry, std::vector<uint8_t… in WriteMetadataDataToVec() argument
34 if (entry.data_type == META_TYPE_BYTE) { in WriteMetadataDataToVec()
35 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
36 WriteData<int8_t>(*(entry.data.u8 + i), cameraAbility); in WriteMetadataDataToVec()
38 } else if (entry.data_type == META_TYPE_INT32) { in WriteMetadataDataToVec()
39 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
40 WriteData<int32_t>(*(entry.data.i32 + i), cameraAbility); in WriteMetadataDataToVec()
42 } else if (entry.data_type == META_TYPE_FLOAT) { in WriteMetadataDataToVec()
43 for (size_t i = 0; i < entry.count; i++) { in WriteMetadataDataToVec()
44 WriteData<float>(*(entry.data.f + i), cameraAbility); in WriteMetadataDataToVec()
[all …]
Dcamera_metadata_operator.cpp766 std::string U8ItemToString(int32_t item, const camera_metadata_item_t entry) in U8ItemToString() argument
769 uint32_t count = entry.count; in U8ItemToString()
770 std::string dataStr = std::to_string(*(entry.data.u8)); in U8ItemToString()
773 dataStr += "]\n\t[" + std::to_string(*(entry.data.u8 + i)); in U8ItemToString()
775 dataStr += " " + std::to_string(*(entry.data.u8 + i)); in U8ItemToString()
786 st = nameStr + " (" + std::to_string(entry.index) + "): " + in U8ItemToString()
787 …OHOS_CAMERA_METADATA_TYPE[entry.data_type] + "[" + std::to_string(count) + "]" + "\n\t[" + dataStr… in U8ItemToString()
792 std::string I32ItemToString(int32_t item, const camera_metadata_item_t entry) in I32ItemToString() argument
795 uint32_t count = entry.count; in I32ItemToString()
796 std::string dataStr = std::to_string(*(entry.data.i32)); in I32ItemToString()
[all …]
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_dlist.h81 static inline void DListRemove(struct DListHead *entry) in DListRemove() argument
83 entry->prev->next = entry->next; in DListRemove()
84 entry->next->prev = entry->prev; in DListRemove()
86 entry->prev = NULL; in DListRemove()
87 entry->next = NULL; in DListRemove()
99 static inline void DListInsertHead(struct DListHead *entry, struct DListHead *head) in DListInsertHead() argument
101 entry->next = head->next; in DListInsertHead()
102 entry->prev = head; in DListInsertHead()
104 head->next->prev = entry; in DListInsertHead()
105 head->next = entry; in DListInsertHead()
[all …]
/drivers/hdf_core/framework/core/manager/src/
Ddriver_manager.c25 int32_t HdfRegisterDriverEntry(const struct HdfDriverEntry *entry) in HdfRegisterDriverEntry() argument
29 if (entry == NULL || entry->moduleName == NULL) { in HdfRegisterDriverEntry()
38 newDriver->entry = entry; in HdfRegisterDriverEntry()
45 int32_t HdfUnregisterDriverEntry(const struct HdfDriverEntry *entry) in HdfUnregisterDriverEntry() argument
51 if (entry == NULL || entry->moduleName == NULL) { in HdfUnregisterDriverEntry()
57 if (driver->entry == entry) { in HdfUnregisterDriverEntry()
69 if (driver == NULL || driver->entry == NULL || driver->entry->moduleName == NULL) { in HdfRegisterDriver()
104 if (driver->entry != NULL && driver->entry->moduleName != NULL && in HdfDriverManagerFoundDriver()
105 !strcmp(driver->entry->moduleName, driverName)) { in HdfDriverManagerFoundDriver()
/drivers/peripheral/camera/test/ut/v4l2/
Dcamera_ability_test.cpp35 camera_metadata_item_t entry; in GetSensorOrientation() local
36 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_SENSOR_ORIENTATION, &entry); in GetSensorOrientation()
41 sensorOrientation = *(entry.data.i32); in GetSensorOrientation()
50 camera_metadata_item_t entry; in GetFlashAvailable() local
51 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_ABILITY_FLASH_AVAILABLE, &entry); in GetFlashAvailable()
56 flashAvailable = *(entry.data.u8); in GetFlashAvailable()
65 camera_metadata_item_t entry; in GetAfAvailable() local
66 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_CONTROL_AF_AVAILABLE_MODES, &entry); in GetAfAvailable()
71 uint32_t count = entry.count; in GetAfAvailable()
75 afAvailable.push_back(*(entry.data.u8 + i)); in GetAfAvailable()
[all …]
Dusb_camera_test.cpp88 camera_metadata_item_t entry; in TEST_F() local
89 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_ZOOM_RATIO_RANGE, &entry); in TEST_F()
91 std::cout << "OHOS_ABILITY_ZOOM_RATIO_RANGE: count is " << (int)entry.count << std::endl; in TEST_F()
92 std::cout << "Zoom ratio range: [" << entry.data.f[0]; in TEST_F()
93 std::cout << "," << entry.data.f[1] << "]" << std::endl; in TEST_F()
114 camera_metadata_item_t entry; in TEST_F() local
115 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_CAMERA_CONNECTION_TYPE, &entry); in TEST_F()
118 << static_cast<int>(entry.data.u8[0]) << std::endl; in TEST_F()
119 EXPECT_TRUE(entry.data.u8[0] == OHOS_CAMERA_CONNECTION_TYPE_USB_PLUGIN); in TEST_F()
137 camera_metadata_item_t entry; in TEST_F() local
[all …]
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/src/
Dipp_node.cpp119 camera_metadata_item_t entry; in PrintFocusMode() local
120 int ret = FindCameraMetadataItem(data, OHOS_CAMERA_FOCUS_MODE_LOCKED, &entry); in PrintFocusMode()
125 focusMode = *(entry.data.u8); in PrintFocusMode()
132 camera_metadata_item_t entry; in PrintFocusState() local
133 int ret = FindCameraMetadataItem(data, OHOS_CAMERA_FOCUS_STATE_UNFOCUSED, &entry); in PrintFocusState()
138 focusState = *(entry.data.u8); in PrintFocusState()
145 camera_metadata_item_t entry; in PrintExposureMode() local
146 int ret = FindCameraMetadataItem(data, OHOS_CONTROL_EXPOSURE_MODE, &entry); in PrintExposureMode()
151 exposureMode = *(entry.data.u8); in PrintExposureMode()
158 camera_metadata_item_t entry; in PrintExposureTime() local
[all …]
/drivers/peripheral/camera/test/ut/usb_camera/
Dusb_camera_test.cpp87 camera_metadata_item_t entry; in TEST_F() local
88 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_ZOOM_RATIO_RANGE, &entry); in TEST_F()
90 std::cout << "OHOS_ABILITY_ZOOM_RATIO_RANGE: count is " << (int)entry.count << std::endl; in TEST_F()
91 std::cout << "Zoom ratio range: [" << entry.data.f[0]; in TEST_F()
92 std::cout << "," << entry.data.f[1] << "]" << std::endl; in TEST_F()
113 camera_metadata_item_t entry; in TEST_F() local
114 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_CAMERA_CONNECTION_TYPE, &entry); in TEST_F()
117 << static_cast<int>(entry.data.u8[0]) << std::endl; in TEST_F()
118 EXPECT_TRUE(entry.data.u8[0] == OHOS_CAMERA_CONNECTION_TYPE_USB_PLUGIN); in TEST_F()
136 camera_metadata_item_t entry; in TEST_F() local
[all …]
/drivers/peripheral/camera/vdi_base/common/utils/exif/
Dexif_utils.cpp39 ExifEntry *entry = nullptr; in CreateTag() local
44 entry = exif_entry_new_mem(mem); in CreateTag()
45 assert(entry != nullptr); in CreateTag()
50 entry->data = static_cast<unsigned char*>(buf); in CreateTag()
51 entry->size = len; in CreateTag()
52 entry->tag = tag; in CreateTag()
53 entry->components = len; in CreateTag()
54 entry->format = format; in CreateTag()
56 exif_content_add_entry(exif->ifd[ifd], entry); in CreateTag()
59 exif_entry_unref(entry); in CreateTag()
[all …]
/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/
Dexif_node.cpp99 camera_metadata_item_t entry; in SendMetadata() local
115 ret = FindCameraMetadataItem(data, OHOS_JPEG_QUALITY, &entry); in SendMetadata()
120 captureQuality = *(entry.data.u8); in SendMetadata()
121 ret = FindCameraMetadataItem(data, OHOS_JPEG_ORIENTATION, &entry); in SendMetadata()
126 captureOrientation = *(entry.data.i32); in SendMetadata()
127 ret = FindCameraMetadataItem(data, OHOS_CONTROL_CAPTURE_MIRROR, &entry); in SendMetadata()
132 mirrorSwitch = *(entry.data.u8); in SendMetadata()
142 camera_metadata_item_t entry; in SetGpsInfoMetadata() local
143 int ret = FindCameraMetadataItem(data, OHOS_JPEG_GPS_COORDINATES, &entry); in SetGpsInfoMetadata()
148 count = entry.count; in SetGpsInfoMetadata()
[all …]
/drivers/peripheral/camera/test/demo/
Dohos_camera_demo.cpp839 camera_metadata_item_t entry; in GetFaceDetectMode() local
840 int ret = FindCameraMetadataItem(data, OHOS_STATISTICS_FACE_DETECT_MODE, &entry); in GetFaceDetectMode()
845 faceDetectMode = *(entry.data.u8); in GetFaceDetectMode()
854 camera_metadata_item_t entry; in GetFocalLength() local
855 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_FOCAL_LENGTH, &entry); in GetFocalLength()
860 focalLength = *(entry.data.f); in GetFocalLength()
869 camera_metadata_item_t entry; in GetAvailableFocusModes() local
870 int ret = FindCameraMetadataItem(data, OHOS_ABILITY_FOCUS_MODES, &entry); in GetAvailableFocusModes()
875 uint32_t count = entry.count; in GetAvailableFocusModes()
879 focusMode.push_back(*(entry.data.u8 + i)); in GetAvailableFocusModes()
[all …]
/drivers/peripheral/distributed_camera/hdi_service/test/sample/
Ddcamera_hdf_demo.cpp788 camera_metadata_item_t entry; in GetFaceDetectMode() local
789 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_STATISTICS_FACE_DETECT_MODE, &entry); in GetFaceDetectMode()
794 faceDetectMode = *(entry.data.u8); in GetFaceDetectMode()
803 camera_metadata_item_t entry; in GetFocalLength() local
804 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_ABILITY_FOCAL_LENGTH, &entry); in GetFocalLength()
809 focalLength = *(entry.data.f); in GetFocalLength()
818 camera_metadata_item_t entry; in GetAvailableFocusModes() local
819 int ret = OHOS::Camera::FindCameraMetadataItem(data, OHOS_ABILITY_FOCUS_MODES, &entry); in GetAvailableFocusModes()
824 uint32_t count = entry.count; in GetAvailableFocusModes()
828 focusMode.push_back(*(entry.data.u8 + i)); in GetAvailableFocusModes()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/test/
DMakefile71 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_platform_entry_test.c
81 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_gpio_entry_test.c
86 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_pin_entry_test.c
92 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_i2c_entry_test.c
97 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_i2s_entry_test.c
102 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_adc_entry_test.c
108 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_dac_entry_test.c
114 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_i3c_entry_test.c
120 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_watchdog_entry_test.c
127 LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/entry/hdf_spi_entry_test.c
[all …]
DBUILD.gn93 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_platform_entry_test.c",
110 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_gpio_entry_test.c",
118 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_pin_entry_test.c",
127 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_i2c_entry_test.c",
136 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_adc_entry_test.c",
145 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_dac_entry_test.c",
154 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_i3c_entry_test.c",
163 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_watchdog_entry_test.c",
173 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_spi_entry_test.c",
182 "$HDF_TEST_FRAMWORK_ROOT/platform/entry/hdf_uart_entry_test.c",
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/device_manager/
Dsensor_controller.cpp516 camera_metadata_item_t entry; in SendAEMetaData() local
517 int ret = FindCameraMetadataItem(data, OHOS_CONTROL_AE_EXPOSURE_COMPENSATION, &entry); in SendAEMetaData()
519 int32_t expo = *(entry.data.i32); in SendAEMetaData()
542 camera_metadata_item_t entry; in SendAWBMetaData() local
543 int ret = FindCameraMetadataItem(data, OHOS_CONTROL_AWB_MODE, &entry); in SendAWBMetaData()
545 awbMode = *(entry.data.u8); in SendAWBMetaData()
561 camera_metadata_item_t entry; in SendExposureMetaData() local
562 int ret = FindCameraMetadataItem(data, OHOS_CONTROL_EXPOSURE_MODE, &entry); in SendExposureMetaData()
564 exposureMode = *(entry.data.u8); in SendExposureMetaData()
573 ret = FindCameraMetadataItem(data, OHOS_SENSOR_EXPOSURE_TIME, &entry); in SendExposureMetaData()
[all …]
/drivers/peripheral/camera/vdi_base/common/metadata_manager/src/
Dmetadata_config.cpp51 camera_metadata_item_t entry; in UpdateSettingsConfig() local
52 int ret = FindCameraMetadataItem(data, *it, &entry); in UpdateSettingsConfig()
58 … result = metadata_[streamId]->addEntry(*it, static_cast<void *>(entry.data.u8), entry.count); in UpdateSettingsConfig()
60 … result = metadata_[streamId]->updateEntry(*it, static_cast<void *>(entry.data.u8), entry.count); in UpdateSettingsConfig()
/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_driver.h16 const struct HdfDriverEntry *entry; member
23 int32_t HdfRegisterDriverEntry(const struct HdfDriverEntry *entry);
24 int32_t HdfUnregisterDriverEntry(const struct HdfDriverEntry *entry);
/drivers/hdf_core/adapter/khdf/linux/test/
DMakefile32 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_platform_entry_test.o \
45 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_gpio_entry_test.o
48 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_i2c_entry_test.o \
52 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_pwm_entry_test.o \
56 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_rtc_entry_test.o \
60 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_spi_entry_test.o \
63 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_sdio_entry_test.o
65 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_emmc_entry_test.o
71 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_uart_entry_test.o \
75 … $(HDF_FRAMWORK_TEST_ROOT)/platform/entry/hdf_watchdog_entry_test.o \
[all …]
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
Ddevhost_test.cpp203 struct HdfDriverEntry entry; variable
204 entry.Bind = nullptr;
205 driver.entry = &entry;
224 entry.Bind = HdfTestSuccBind;
231 entry.Bind = HdfTestFailBind;
237 entry.Bind = nullptr;
243 entry.Bind = nullptr;
259 struct HdfDriverEntry entry; variable
261 driver.entry = &entry;
270 entry.Bind = HdfTestSuccBind;
[all …]
/drivers/hdf_core/framework/test/unittest/platform/common/
Dplatform_trace_test.c85 struct PlatformTraceTestEntry *entry = NULL; in PlatformTraceTestExecute() local
96 entry = &g_entry[i]; in PlatformTraceTestExecute()
100 if (entry == NULL) { in PlatformTraceTestExecute()
105 ret = entry->func(); in PlatformTraceTestExecute()
/drivers/hdf_core/adapter/uhdf2/manager/src/
Ddevmgr_uevent.c55 struct DListHead entry; member
61 struct DListHead entry; member
82 DLIST_FOR_EACH_ENTRY_SAFE(matchKey, matchKeyTmp, keyList, struct DevMgrMatchKey, entry) { in DevMgrUeventReleaseKeyList()
83 DListRemove(&matchKey->entry); in DevMgrUeventReleaseKeyList()
96 DLIST_FOR_EACH_ENTRY_SAFE(ruleCfg, ruleCfgTmp, ruleCfgList, struct DevMgrUeventRuleCfg, entry) { in DevMgrUeventReleaseRuleCfgList()
97 DListRemove(&ruleCfg->entry); in DevMgrUeventReleaseRuleCfgList()
172 DListHeadInit(&matchKey->entry); in DevMgrUeventParseMatchKey()
177 DListInsertTail(&matchKey->entry, matchKeyList); in DevMgrUeventParseMatchKey()
266 DListInsertTail(&ruleCfg->entry, DevMgrUeventRuleCfgList()); in DevMgrUeventParseRule()
285 DLIST_FOR_EACH_ENTRY(ruleCfg, ruleCfgList, struct DevMgrUeventRuleCfg, entry) { in DevMgrUeventDisplayRuleCfgList()
[all …]
/drivers/peripheral/camera/interfaces/hdi_ipc/utils/include/
Dutils_data_stub.h43 static bool WriteMetadata(const camera_metadata_item_t &entry, MessageParcel &data);
44 static bool ReadMetadata(camera_metadata_item_t &entry, MessageParcel &data);
45 static void EntryDataToBuffer(const camera_metadata_item_t &entry, void **buffer);
46 …static bool WriteMetadataDataToVec(const camera_metadata_item_t &entry, std::vector<uint8_t> &came…
47 static bool ReadMetadataDataFromVec(int32_t &index, camera_metadata_item_t &entry,
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/device_manager/include/
Dv4l2_device_manager.h74 void MergeMetadata(camera_metadata_item_t& entry, std::vector<T>& ohosTagVec) in MergeMetadata() argument
77 int32_t ret = GetCameraMetadataItemType(entry.item, &data_type); in MergeMetadata()
81 for (int i = 0; i < entry.count; i++) { in MergeMetadata()
83 ohosTagVec.push_back(entry.data.u8[i]); in MergeMetadata()
85 ohosTagVec.push_back(entry.data.i32[i]); in MergeMetadata()
87 ohosTagVec.push_back(entry.data.f[i]); in MergeMetadata()
99 camera_metadata_item_t entry; in AddOrUpdateOhosTag() local
100 int ret = FindCameraMetadataItem(data, ohosTag, &entry); in AddOrUpdateOhosTag()
108 MergeMetadata(entry, ohosTagVec); in AddOrUpdateOhosTag()
/drivers/peripheral/camera/vdi_base/usb_camera/adapter/platform/v4l2/src/pipeline_core/nodes/uvc_node/
Duvc_node.cpp148 camera_metadata_item_t entry; in GetStreamId() local
150 int rc = FindCameraMetadataItem(data, OHOS_CAMERA_STREAM_ID, &entry); in GetStreamId()
152 streamId = *entry.data.i32; in GetStreamId()
160 camera_metadata_item_t entry; in GetUpdateFps() local
161 int ret = FindCameraMetadataItem(data, OHOS_CONTROL_FPS_RANGES, &entry); in GetUpdateFps()
164 for (int i = 0; i < entry.count; i++) { in GetUpdateFps()
165 fpsRange.push_back(*(entry.data.i32 + i)); in GetUpdateFps()

12345