Home
last modified time | relevance | path

Searched refs:TypeConverter (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhcodec_type_converter_unit_test.cpp39 optional<OMX_VIDEO_CODINGTYPE> ret = TypeConverter::HdiRoleToOmxCodingType(
47 optional<OMX_VIDEO_CODINGTYPE> ret = TypeConverter::HdiRoleToOmxCodingType(
54 string ret = TypeConverter::HdiRoleToMime(CodecHDI::MEDIA_ROLETYPE_VIDEO_HEVC);
60 string ret = TypeConverter::HdiRoleToMime(CodecHDI::MEDIA_ROLETYPE_INVALID);
66 optional<PixelFmt> ret = TypeConverter::GraphicFmtToFmt(GRAPHIC_PIXEL_FMT_YCBCR_420_P);
73 optional<PixelFmt> ret = TypeConverter::GraphicFmtToFmt(GRAPHIC_PIXEL_FMT_BUTT);
79 optional<PixelFmt> ret = TypeConverter::InnerFmtToFmt(VideoPixelFormat::NV12);
86 optional<PixelFmt> ret = TypeConverter::InnerFmtToFmt(VideoPixelFormat::UNKNOWN);
144 optional<AVCLevel> ret = TypeConverter::OmxAvcLevelToInnerLevel(OMX_VIDEO_AVCLevel1b);
210 TypeConverter::HdiBitrateModeToInnerMode(CodecHDI::BIT_RATE_MODE_VBR);
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dtype_converter.cpp233 optional<AVCodecType> TypeConverter::HdiCodecTypeToInnerCodecType(CodecHDI::CodecType type) in HdiCodecTypeToInnerCodecType()
247 std::optional<OMX_VIDEO_CODINGTYPE> TypeConverter::HdiRoleToOmxCodingType(AvCodecRole role) in HdiRoleToOmxCodingType()
259 string TypeConverter::HdiRoleToMime(AvCodecRole role) in HdiRoleToMime()
271 std::optional<PixelFmt> TypeConverter::GraphicFmtToFmt(GraphicPixelFormat format) in GraphicFmtToFmt()
283 std::optional<PixelFmt> TypeConverter::InnerFmtToFmt(VideoPixelFormat format) in InnerFmtToFmt()
295 std::optional<GraphicPixelFormat> TypeConverter::InnerFmtToDisplayFmt(VideoPixelFormat format) in InnerFmtToDisplayFmt()
347 std::optional<AVCLevel> TypeConverter::OmxAvcLevelToInnerLevel(OMX_VIDEO_AVCLEVELTYPE level) in OmxAvcLevelToInnerLevel()
371 std::optional<HEVCLevel> TypeConverter::OmxHevcLevelToInnerLevel(CodecHevcLevel level) in OmxHevcLevelToInnerLevel()
383 std::optional<VVCProfile> TypeConverter::OmxVvcProfileToInnerProfile(CodecVvcProfile profile) in OmxVvcProfileToInnerProfile()
395 std::optional<VVCLevel> TypeConverter::OmxVvcLevelToInnerLevel(CodecVvcLevel level) in OmxVvcLevelToInnerLevel()
[all …]
H A Dhcodec_list.cpp142 …userCap.codecType = TypeConverter::HdiCodecTypeToInnerCodecType(hdiCap.type).value_or(AVCODEC_TYPE… in HdiCapToUserCap()
143 userCap.mimeType = TypeConverter::HdiRoleToMime(hdiCap.role); in HdiCapToUserCap()
184 optional<VideoEncodeBitrateMode> innerMode = TypeConverter::HdiBitrateModeToInnerMode(mode); in GetSupportedBitrateMode()
197 TypeConverter::DisplayFmtToInnerFmt(static_cast<GraphicPixelFormat>(fmt)); in GetSupportedFormat()
234 …innerProfile = TypeConverter::OmxAvcProfileToInnerProfile(static_cast<OMX_VIDEO_AVCPROFILETYPE>(pr… in GetCodecProfileLevels()
235 …innerLevel = TypeConverter::OmxAvcLevelToInnerLevel(static_cast<OMX_VIDEO_AVCLEVELTYPE>(maxLevel)); in GetCodecProfileLevels()
237 …innerProfile = TypeConverter::OmxHevcProfileToInnerProfile(static_cast<CodecHevcProfile>(profile)); in GetCodecProfileLevels()
238 … innerLevel = TypeConverter::OmxHevcLevelToInnerLevel(static_cast<CodecHevcLevel>(maxLevel)); in GetCodecProfileLevels()
252 …innerProfileVvc = TypeConverter::OmxVvcProfileToInnerProfile(static_cast<CodecVvcProfile>(profile)… in GetCodecProfileLevels()
253 … innerLevelVvc = TypeConverter::OmxVvcLevelToInnerLevel(static_cast<CodecVvcLevel>(maxLevel)); in GetCodecProfileLevels()
[all …]
H A Dtype_converter.h41 class TypeConverter {
H A Dhcodec.cpp52 optional<OMX_VIDEO_CODINGTYPE> type = TypeConverter::HdiRoleToOmxCodingType(cap.role); in Create()
440 fmt = TypeConverter::InnerFmtToFmt(innerFmt); in GetPixelFmtFromUser()
444 fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(f)); in GetPixelFmtFromUser()
H A Dhdecoder.cpp138 optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(graphicFmt); in UpdateConfiguredFmt()
325 optional<GraphicTransformType> transform = TypeConverter::InnerRotateToDisplayRotate( in SaveTransform()
H A Dhcodec_dfx.cpp371 std::optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(graphicFmt); in DumpSurfaceBuffer()
H A Dhencoder.cpp576 …optional<OMX_VIDEO_AVCPROFILETYPE> omxAvcProfile = TypeConverter::InnerAvcProfileToOmxProfile(prof… in SetupAVCEncoderParameters()
654 … optional<CodecHevcProfile> omxHevcProfile = TypeConverter::InnerHevcProfileToOmxProfile(profile); in SetupHEVCEncoderParameters()
/ohos5.0/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/
H A Dtype_converter.cpp85 TypeConverter::TypeConverter(): isInitialized_(false) in TypeConverter() function in TypeConverter
94 TypeConverter::~TypeConverter() in ~TypeConverter()
99 int32_t TypeConverter::Init(const FeatureProcessorConfig *config) in Init()
132 void TypeConverter::Release() in Release()
141 int32_t TypeConverter::Process(const FeatureData &input, FeatureData &output) in Process()
166 int32_t TypeConverter::InnerProcess(const FeatureData &input) in InnerProcess()
H A Dnorm_processor.cpp134 converter_ = std::unique_ptr<TypeConverter>(new (std::nothrow) TypeConverter()); in Init()
/ohos5.0/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/interfaces/
H A Dtype_converter.h69 class TypeConverter : public FeatureProcessor {
77 TypeConverter();
85 virtual ~TypeConverter();
H A Dnorm_processor.h140 std::unique_ptr<TypeConverter> converter_;
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/
H A Dtype_converter.h28 class TypeConverter {
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dtype_converter.cpp29 std::optional<PixelFmt> TypeConverter::GraphicFmtToFmt(GraphicPixelFormat format) in GraphicFmtToFmt()
H A Dimage_codec_dfx.cpp193 std::optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt( in DumpSurfaceBuffer()
H A Dimage_decoder.cpp107 optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(graphicFmt); in UpdateConfiguredFmt()
H A Dimage_codec.cpp260 fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(graphicFmt)); in GetPixelFmtFromUser()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp99 …optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(pixelFmt)); in AllocateOutputBuffer()
396 …optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(output_->G… in GetOutputPixelFmtDesc()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dtester_common.cpp240 optional<GraphicPixelFormat> displayFmt = TypeConverter::InnerFmtToDisplayFmt(opt_.pixFmt); in RunEncoder()
278 optional<GraphicPixelFormat> displayFmt = TypeConverter::InnerFmtToDisplayFmt(param.pixFmt); in UpdateMemberFromResourceParam()
/ohos5.0/foundation/ai/ai_engine/services/server/plugin/asr/keyword_spotting/source/
H A Dkws_plugin.cpp47 worker.typeConverter = std::make_shared<TypeConverter>(); in InitWorkplace()