/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccomponentroleenumhdi_fuzzer/ |
H A D | codeccomponentroleenum_fuzzer.cpp | 23 uint8_t *role; member 54 ObjectToVector(params.role, vec); in CodecComponentRoleEnum() 55 std::vector<uint8_t> role(vec.begin(), vec.end()); in CodecComponentRoleEnum() 57 int32_t ret = g_component->ComponentRoleEnum(role, params.index); in CodecComponentRoleEnum()
|
/drivers/peripheral/codec/image/hdi_service/src/ |
H A D | codec_image_service.cpp | 43 int32_t CodecImageService::Init(enum CodecImageRole role)
in Init() argument 47 if (role == CODEC_IMAGE_JPEG) {
in Init() 55 int32_t CodecImageService::DeInit(enum CodecImageRole role)
in DeInit() argument 59 if (role == CODEC_IMAGE_JPEG) {
in DeInit() 79 int32_t CodecImageService::AllocateInBuffer(CodecImageBuffer& inBuffer, uint32_t size, CodecImageRole role)
in AllocateInBuffer() argument 85 inBuffer.bufferRole = role;
in AllocateInBuffer() 87 if (role == CODEC_IMAGE_JPEG) {
in AllocateInBuffer()
|
/drivers/peripheral/codec/image/hdi_service/include/ |
H A D | codec_image_service.h | 41 int32_t Init(enum CodecImageRole role) override;
43 int32_t DeInit(enum CodecImageRole role) override;
48 int32_t AllocateInBuffer(CodecImageBuffer& inBuffer, uint32_t size, CodecImageRole role) override;
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imageallocateinbuffer_fuzzer/ |
H A D | imageallocateinbuffer_fuzzer.cpp | 45 CodecImageRole role = CodecImageRole(*data); in AllocateInBuffer() local 46 ImageAutoIniter autoIniter(image, role); in AllocateInBuffer() 51 auto err = image->AllocateInBuffer(inBuffer, bufferSize, role); in AllocateInBuffer()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/include/ |
H A D | image_auto_initer.h | 25 OHOS::HDI::Codec::Image::V2_0::CodecImageRole role) : client_(imageClient), role_(role) in ImageAutoIniter() 24 ImageAutoIniter(OHOS::sptr<OHOS::HDI::Codec::Image::V2_0::ICodecImage> imageClient, OHOS::HDI::Codec::Image::V2_0::CodecImageRole role) ImageAutoIniter() argument
|
/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_omx_core.cpp | 121 char *role[roleCount]; in GetRolesOfComponent() local 129 role[i] = array[i]; in GetRolesOfComponent() 133 err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, reinterpret_cast<OMX_U8 **>(role)); in GetRolesOfComponent() 139 roles.push_back(role[i]); in GetRolesOfComponent()
|
H A D | codec_component_config.cpp | 34 constexpr char CODEC_CONFIG_KEY_ROLE[] = "role"; 177 CODEC_LOGE("GetOneCapability failed, role is %{public}d!", cap.role); in GetGroupCapabilities() 189 if (iface.GetUint32(&childNode, CODEC_CONFIG_KEY_ROLE, reinterpret_cast<uint32_t *>(&cap.role), in GetOneCapability() 191 cap.role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 197 cap.role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 205 cap.role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 210 cap.role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 220 cap.role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 226 cap.role in GetOneCapability() [all...] |
H A D | codec_component_service.cpp | 319 int32_t CodecComponentService::ComponentRoleEnum(std::vector<uint8_t> &role, uint32_t index) in ComponentRoleEnum() argument 323 return node_->ComponentRoleEnum(role, index); in ComponentRoleEnum() 347 CODEC_LOGE("role of component is empty"); in SetComponentRole() 353 OMX_PARAM_COMPONENTROLETYPE role; in SetComponentRole() local 354 errno_t res = strncpy_s(reinterpret_cast<char *>(role.cRole), OMX_MAX_STRINGNAME_SIZE, in SetComponentRole() 360 role.nSize = sizeof(role); in SetComponentRole() 361 ret = node_->SetParameter(OMX_IndexParamStandardComponentRole, reinterpret_cast<int8_t *>(&role)); in SetComponentRole()
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
H A D | codec_omx_core.cpp | 123 char *role[roleCount]; in GetRolesOfComponent() local 131 role[i] = array[i]; in GetRolesOfComponent() 135 err = (*getRoles_)(const_cast<char *>(name.c_str()), &roleCount, reinterpret_cast<OMX_U8 **>(role)); in GetRolesOfComponent() 141 roles.push_back(role[i]); in GetRolesOfComponent()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imagefreeinbuffer_fuzzer/ |
H A D | imagefreeinbuffer_fuzzer.cpp | 46 CodecImageRole role = CodecImageRole(*data); in FreeInBuffer() local 47 ImageAutoIniter autoIniter(image, role); in FreeInBuffer()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imagedoheifencode_fuzzer/ |
H A D | imagedoheifencode_fuzzer.cpp | 43 CodecImageRole role = CodecImageRole(*data); in DoHeifEncode() local 44 ImageAutoIniter autoIniter(image, role); in DoHeifEncode()
|
/drivers/peripheral/codec/hal/src/ |
H A D | codec_adapter.cpp | 265 int32_t OmxAdapterComponentRoleEnum(struct CodecComponentNode *codecNode, uint8_t *role, uint32_t roleLen, in OmxAdapterComponentRoleEnum() argument 268 if (codecNode == nullptr || codecNode->node == nullptr || role == nullptr) { in OmxAdapterComponentRoleEnum() 269 CODEC_LOGE("codecNode, node or role is null"); in OmxAdapterComponentRoleEnum() 272 return codecNode->node->ComponentRoleEnum(role, roleLen, index); in OmxAdapterComponentRoleEnum() 296 CODEC_LOGE("role of component is empty"); in OmxAdapterSetComponentRole() 302 OMX_PARAM_COMPONENTROLETYPE role; in OmxAdapterSetComponentRole() local 303 errno_t res = strncpy_s(reinterpret_cast<char *>(role.cRole), OMX_MAX_STRINGNAME_SIZE, in OmxAdapterSetComponentRole() 309 role.nSize = sizeof(role); in OmxAdapterSetComponentRole() 311 reinterpret_cast<int8_t *>(&role), sizeo in OmxAdapterSetComponentRole() [all...] |
H A D | codec_config_parser.c | 238 (uint32_t*)&cap->role, MEDIA_ROLETYPE_INVALID) != HDF_SUCCESS) { in GetOneCapability() 239 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 245 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 253 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 257 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 269 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 275 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 280 cap->role = MEDIA_ROLETYPE_INVALID; in GetOneCapability() 322 CODEC_LOGE("GetOneCapability failed, role is %{public}d!", cap->role); in GetGroupCapabilities() [all...] |
H A D | codec_component_type_stub.c | 726 uint8_t *role = NULL; in SerStubComponentRoleEnum() local 735 role = (uint8_t*)OsalMemCalloc(sizeof(uint8_t) * (roleLen)); in SerStubComponentRoleEnum() 736 if (role == NULL) { in SerStubComponentRoleEnum() 743 FreeMem((int8_t*)role, roleLen); in SerStubComponentRoleEnum() 747 ret = serviceImpl->ComponentRoleEnum(serviceImpl, role, roleLen, index); in SerStubComponentRoleEnum() 750 FreeMem((int8_t*)role, roleLen); in SerStubComponentRoleEnum() 755 if (!HdfSbufWriteUint8(reply, role[i])) { in SerStubComponentRoleEnum() 756 CODEC_LOGE("write role[i] failed!"); in SerStubComponentRoleEnum() 757 FreeMem((int8_t*)role, roleLen); in SerStubComponentRoleEnum() 762 FreeMem((int8_t*)role, roleLe in SerStubComponentRoleEnum() [all...] |
H A D | codec_component_type_service.c | 262 uint8_t *role, uint32_t roleLen, uint32_t index) in CodecComponentTypeComponentRoleEnum() 271 return OmxAdapterComponentRoleEnum(service->codecNode, role, roleLen, index); in CodecComponentTypeComponentRoleEnum() 261 CodecComponentTypeComponentRoleEnum(struct CodecComponentType *self, uint8_t *role, uint32_t roleLen, uint32_t index) CodecComponentTypeComponentRoleEnum() argument
|
/drivers/peripheral/pin_auth/hdi_service/service/src/ |
H A D | verifier_impl.cpp | 157 threadPool_.AddTask([this, id = scheduleId, role = srcRole, msgIn = msg]() {
in SendMessage() 161 if (role == HdiExecutorRole::COLLECTOR) {
in SendMessage() 164 IAM_LOGE("message from %{public}d not handled", role);
in SendMessage()
|
/drivers/peripheral/codec/test/fuzztest/image_fuzzer/imagedojpegdecode_fuzzer/ |
H A D | imagedojpegdecode_fuzzer.cpp | 111 CodecImageRole role = CodecImageRole(*data); in DoJpegDecode() local 112 ImageAutoIniter autoIniter(image, role); in DoJpegDecode()
|
/drivers/peripheral/codec/image/config/ |
H A D | codec_image_config.cpp | 23 constexpr char CODEC_CONFIG_KEY_ROLE[] = "role";
120 if (iface.GetUint32(&childNode, CODEC_CONFIG_KEY_ROLE, reinterpret_cast<uint32_t *>(&cap.role),
in GetOneCapability() 122 cap.role = CODEC_IMAGE_INVALID;
in GetOneCapability() 123 CODEC_LOGE("failed to get role for: %{public}s! Discarded", childNode.name);
in GetOneCapability() 129 cap.role = CODEC_IMAGE_INVALID;
in GetOneCapability()
|
/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_component_type.h | 154 AvCodecRole role; /** Media type. */ member
|
H A D | codec_component_if.h | 375 * @brief Obtains the component role. 377 * This API is used to obtain the role of a component based on the role index. 380 * @param role Indicates the pointer to the role name. 381 * @param roleLen Indicates the length of the role, in bytes. 382 * @param index Indicates the index of a role. A component may support multiple roles. 389 int32_t (*ComponentRoleEnum)(struct CodecComponentType *self, uint8_t *role, uint32_t roleLen, uint32_t index);
|
/drivers/peripheral/codec/hal/idl_service/include/ |
H A D | codec_component_service.h | 54 int32_t ComponentRoleEnum(std::vector<uint8_t> &role, uint32_t index) override;
|
/drivers/peripheral/codec/hal/include/ |
H A D | codec_adapter_interface.h | 109 * @brief Get the role of the component. 111 int32_t OmxAdapterComponentRoleEnum(struct CodecComponentNode *codecNode, uint8_t *role, uint32_t roleLen, 114 * @brief Set the role for the component.
|
/drivers/peripheral/distributed_audio/interface/audio/v1_0/ |
H A D | types.h | 128 uint32_t role; member
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/include/ |
H A D | component_node.h | 73 int32_t ComponentRoleEnum(uint8_t *role, uint32_t roleLen, uint32_t index);
|
/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | codec_hdi_decode.cpp | 690 AvCodecRole role = AvCodecRole::MEDIA_ROLETYPE_VIDEO_AVC; in GetComponentName() local 692 role = AvCodecRole::MEDIA_ROLETYPE_VIDEO_HEVC; in GetComponentName() 709 if (cap.type == CodecType::VIDEO_DECODER && cap.role == role) { in GetComponentName()
|