Home
last modified time | relevance | path

Searched refs:componentId (Results 1 - 18 of 18) sorted by relevance

/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_manager_service.cpp71 int32_t CodecComponentManagerService::CreateComponent(sptr<ICodecComponent> &component, uint32_t &componentId, in CreateComponent() argument
88 componentId = GetNextComponentId(); in CreateComponent()
89 componentMap_.emplace(std::make_pair(componentId, codecComponent)); in CreateComponent()
91 CODEC_LOGI("componentId[%{public}d]", componentId); in CreateComponent()
93 RegisterDeathRecipientService(callbacks, componentId, this); in CreateComponent()
98 int32_t CodecComponentManagerService::DestroyComponent(uint32_t componentId) in DestroyComponent() argument
102 CODEC_LOGI("componentId[%{public}d]", componentId); in DestroyComponent()
103 auto iter = componentMap_.find(componentId); in DestroyComponent()
[all...]
H A Dcodec_death_recipient.cpp52 void RegisterDeathRecipientService(const sptr<ICodecCallback> callbacks, uint32_t componentId, in RegisterDeathRecipientService() argument
58 g_compRemoteMap.emplace(std::make_pair(componentId, remote.GetRefPtr())); in RegisterDeathRecipientService()
63 remoteComps->second.insert(componentId); in RegisterDeathRecipientService()
75 compIds.insert(componentId); in RegisterDeathRecipientService()
81 void RemoveMapperOfDestoryedComponent(uint32_t componentId) in RemoveMapperOfDestoryedComponent() argument
85 auto compRemote = g_compRemoteMap.find(componentId); in RemoveMapperOfDestoryedComponent()
95 remoteComps->second.erase(componentId); in RemoveMapperOfDestoryedComponent()
/drivers/peripheral/codec/hal/src/
H A Dcodec_component_manager_service.c42 static void AddDeathRecipientForService(struct CodecCallbackType *callbacks, uint32_t componentId, in AddDeathRecipientForService() argument
49 bool needAdd = RegisterService(callbacks, componentId, codecNode); in AddDeathRecipientForService()
71 if (pos != NULL && tempId == pos->componentId) { in GetNextComponentId()
98 static int32_t OmxManagerDestroyComponent(uint32_t componentId) in OmxManagerDestroyComponent() argument
100 CODEC_LOGI("service impl, %{public}d!", componentId); in OmxManagerDestroyComponent()
113 if (pos == NULL || componentId != pos->componentId) { in OmxManagerDestroyComponent()
124 RemoveDestoryedComponent(componentId); in OmxManagerDestroyComponent()
138 static int32_t OmxManagerCreateComponent(struct CodecComponentType **component, uint32_t *componentId, char *compName, in OmxManagerCreateComponent() argument
170 *componentId in OmxManagerCreateComponent()
[all...]
H A Dcodec_death_recipient.cpp33 bool RegisterService(struct CodecCallbackType *callbacks, uint32_t componentId, in RegisterService() argument
45 comps->second.insert(componentId); in RegisterService()
51 compIds.insert(componentId); in RegisterService()
88 void RemoveDestoryedComponent(uint32_t componentId) in RemoveDestoryedComponent() argument
95 comps->second.erase(componentId); in RemoveDestoryedComponent()
H A Dcodec_component_manager_stub.c118 uint32_t componentId = 0; in SerStubCreateComponent() local
131 ret = serviceImpl->CreateComponent(&component, &componentId, compName, appData, callback); in SerStubCreateComponent()
153 if (!HdfSbufWriteUint32(reply, componentId)) { in SerStubCreateComponent()
154 CODEC_LOGE("write componentId failed!"); in SerStubCreateComponent()
170 uint32_t componentId = 0; in SerStubDestroyComponent() local
171 if (!HdfSbufReadUint32(data, &componentId)) { in SerStubDestroyComponent()
172 CODEC_LOGE("read componentId failed!"); in SerStubDestroyComponent()
175 int32_t ret = serviceImpl->DestroyComponent(componentId); in SerStubDestroyComponent()
H A Dcodec_component_manager_proxy.c157 static int32_t CreateComponent(struct CodecComponentType **component, uint32_t *componentId, char *compName, in CreateComponent() argument
162 if (data == NULL || reply == NULL || componentId == NULL) { in CreateComponent()
188 if (!HdfSbufReadUint32(reply, componentId)) { in CreateComponent()
189 CODEC_LOGE("read componentId failed!"); in CreateComponent()
201 static int32_t DestroyComponent(uint32_t componentId) in DestroyComponent() argument
219 if (!HdfSbufWriteUint32(data, componentId)) { in DestroyComponent()
220 CODEC_LOGE("write componentId failed!"); in DestroyComponent()
H A Dcodec_dfx_service.c59 int32_t ret = OmxAdapterWriteDumperData(dump, CODEC_MAX_DFX_DUMP_LEN, pos->componentId, codecNode); in DevCodecHostDump()
/drivers/peripheral/codec/test/unittest/idl_omx/
H A Dcodec_hdi_manager_test.cpp76 uint32_t componentId = 0; in HWTEST_F() local
77 int32_t ret = manager_->CreateComponent(component, componentId, "", APP_DATA, callback_); in HWTEST_F()
85 uint32_t componentId = 0; in HWTEST_F() local
98 ret = manager_->CreateComponent(component, componentId, compName, APP_DATA, nullptr); in HWTEST_F()
119 uint32_t componentId = 0; in HWTEST_F() local
120 ret = manager_->CreateComponent(component, componentId, compName, APP_DATA, callback_); in HWTEST_F()
122 if (componentId != 0) { in HWTEST_F()
123 ret = manager_->DestroyComponent(componentId); in HWTEST_F()
/drivers/peripheral/codec/test/benchmarktest/
H A Dcodec_benchmark_manager_test.cpp95 uint32_t componentId = 0; in BENCHMARK_F() local
97 ret = manager_->CreateComponent(component, componentId, compName, APP_DATA, callback_); in BENCHMARK_F()
99 if (componentId != 0) { in BENCHMARK_F()
100 manager_->DestroyComponent(componentId); in BENCHMARK_F()
124 uint32_t componentId = 0; in BENCHMARK_F() local
126 ret = manager_->CreateComponent(component, componentId, compName, APP_DATA, callback_); in BENCHMARK_F()
128 if (componentId != 0) { in BENCHMARK_F()
129 manager_->DestroyComponent(componentId); in BENCHMARK_F()
/drivers/peripheral/codec/test/unittest/hdi_omx/
H A Dcodec_hdi_manager_test.cpp68 uint32_t componentId = 0; in HWTEST_F() local
69 int32_t ret = manager_->CreateComponent(&component, &componentId, nullptr, (int64_t)this, callback); in HWTEST_F()
93 uint32_t componentId = 0; in HWTEST_F() local
95 auto ret = manager_->CreateComponent(&component, &componentId, compName.data(), (int64_t)this, callback); in HWTEST_F()
97 if (componentId != 0) { in HWTEST_F()
98 manager_->DestroyComponent(componentId); in HWTEST_F()
/drivers/peripheral/codec/hal/include/
H A Dcodec_death_recipient.h28 bool RegisterService(struct CodecCallbackType *callbacks, uint32_t componentId, struct CodecComponentNode *codecNode);
30 void RemoveDestoryedComponent(uint32_t componentId);
H A Dcodec_component_manager_service.h31 uint32_t componentId; member
/drivers/peripheral/codec/interfaces/include/
H A Dcodec_component_manager.h89 * @param componentId Indicates the id to the codec component created.
101 int32_t (*CreateComponent)(struct CodecComponentType **component, uint32_t *componentId, char *compName,
107 * @param componentId Indicates the codec component id to destroy.
114 int32_t (*DestroyComponent)(uint32_t componentId);
/drivers/peripheral/codec/hal/idl_service/include/
H A Dcodec_death_recipient.h30 void RegisterDeathRecipientService(const sptr<ICodecCallback> callback, uint32_t componentId,
32 void RemoveMapperOfDestoryedComponent(uint32_t componentId);
H A Dcodec_component_manager_service.h36 int32_t CreateComponent(sptr<ICodecComponent> &component, uint32_t &componentId, const std::string &compName,
38 int32_t DestroyComponent(uint32_t componentId) override;
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codechdi_fuzzer/
H A Dcodec_fuzzer.cpp78 uint32_t componentId = 0; in DoSomethingInterestingWithMyAPI() local
79 if (!reply.ReadUint32(componentId)) { in DoSomethingInterestingWithMyAPI()
80 HDF_LOGE("%{public}s:read componentId failed!", __func__); in DoSomethingInterestingWithMyAPI()
83 ret = g_codecComponentManager->DestroyComponent(componentId); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/codec/test/demo/jpeg/src/
H A Dcodec_jpeg_helper.cpp324 int8_t componentId = decInfo.compInfo[i].componentId; in JpegSofAssemble() local
328 int8_t bufferValue[] = {componentId, sampFactor, quantity}; in JpegSofAssemble()
363 int8_t componentId = decInfo.compInfo[i].componentId; in JpegSosAssemble() local
365 int16_t value = ((componentId << 8) | indexNo) & 0xffff; in JpegSosAssemble()
430 comInfo.componentId = GetInt8(buffer); in DessambleSof()
441 HDF_LOGI("componentId[%{public}d],hSampFactor[%{public}d],vSampFactor[%{public}d],quantTableNo[%{public}d]", in DessambleSof()
442 comInfo.componentId, comInfo.hSampFactor, comInfo.vSampFactor, comInfo.quantTableNo); in DessambleSof()
458 int32_t componentId in DessambleSos() local
[all...]
/drivers/peripheral/codec/image/vdi/
H A Dcodec_jpeg_vdi.h59 uint32_t componentId; member

Completed in 9 milliseconds