/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_manager_service.cpp | 71 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 D | codec_death_recipient.cpp | 52 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 D | codec_component_manager_service.c | 42 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 D | codec_death_recipient.cpp | 33 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 D | codec_component_manager_stub.c | 118 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 D | codec_component_manager_proxy.c | 157 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 D | codec_dfx_service.c | 59 int32_t ret = OmxAdapterWriteDumperData(dump, CODEC_MAX_DFX_DUMP_LEN, pos->componentId, codecNode); in DevCodecHostDump()
|
/drivers/peripheral/codec/test/unittest/idl_omx/ |
H A D | codec_hdi_manager_test.cpp | 76 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 D | codec_benchmark_manager_test.cpp | 95 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 D | codec_hdi_manager_test.cpp | 68 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 D | codec_death_recipient.h | 28 bool RegisterService(struct CodecCallbackType *callbacks, uint32_t componentId, struct CodecComponentNode *codecNode);
30 void RemoveDestoryedComponent(uint32_t componentId);
|
H A D | codec_component_manager_service.h | 31 uint32_t componentId; member
|
/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_component_manager.h | 89 * @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 D | codec_death_recipient.h | 30 void RegisterDeathRecipientService(const sptr<ICodecCallback> callback, uint32_t componentId,
32 void RemoveMapperOfDestoryedComponent(uint32_t componentId);
|
H A D | codec_component_manager_service.h | 36 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 D | codec_fuzzer.cpp | 78 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 D | codec_jpeg_helper.cpp | 324 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 D | codec_jpeg_vdi.h | 59 uint32_t componentId;
member
|