/foundation/resourceschedule/ffrt/src/dfx/bbox/ |
H A D | fault_logger_fd_manager.cpp | 60 void FaultLoggerFdManager::WriteFaultLogger(const char* format, ...) in WriteFaultLogger() argument 69 va_start(args, format); in WriteFaultLogger() 70 std::string formatStr(format); in WriteFaultLogger()
|
/foundation/ability/idl_tool/test/hdi_unittest/base/ |
H A D | util.py | 33 print("\033[32m{}\033[0m".format(info)) 37 print("\033[31m{}\033[0m".format(info)) 134 if not compare_file("{}{}".format(first_file_path, files), 135 check_file_name_format.format(second_file_path, files), special_proc_func): 136 print("file ", "{}{}".format(first_file_path, files), "{}{}".format(second_file_path, files), \ 152 return exec_command("make --directory={} --jobs=4".format(file_path)) 156 return exec_command("make --directory={} clean".format(file_path))
|
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/ |
H A D | audio_enhance_chain_adapter.cpp | 42 static pa_sample_format_t ConvertFormat(uint8_t format) in ConvertFormat() argument 44 auto item = FORMAT_CONVERT_MAP.find(format); in ConvertFormat() 113 micSpec->format = ConvertFormat(micConfig.format); in EnhanceChainManagerGetAlgoConfig() 117 ecSpec->format = ConvertFormat(ecConfig.format); in EnhanceChainManagerGetAlgoConfig() 121 micRefSpec->format = ConvertFormat(micRefConfig.format); in EnhanceChainManagerGetAlgoConfig()
|
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | volume_tools_unit_test.cpp | 180 AudioSampleFormat format = SAMPLE_S24LE; in HWTEST_F() local 181 int32_t ret = VolumeTools::Process(desc, format, volMaps); in HWTEST_F() 201 AudioSampleFormat format = SAMPLE_S24LE; in HWTEST_F() local 202 int32_t ret = VolumeTools::Process(desc, format, volMaps); in HWTEST_F() 222 AudioSampleFormat format = SAMPLE_S24LE; in HWTEST_F() local 223 int32_t ret = VolumeTools::Process(desc, format, volMaps); in HWTEST_F() 246 AudioSampleFormat format = SAMPLE_S24LE; in HWTEST_F() local 247 int32_t ret = VolumeTools::Process(desc, format, volMaps); in HWTEST_F()
|
/foundation/multimedia/media_foundation/engine/scene/player/standard/ |
H A D | hiplayer_impl.cpp | 112 Format format; in UpdateStateNoLock() local 117 callbackLooper_.OnInfo(INFO_TYPE_STATE_CHANGE, pendingState, format); in UpdateStateNoLock() 121 callbackLooper_.OnInfo(INFO_TYPE_STATE_CHANGE, pipelineStates_, format); in UpdateStateNoLock() 216 Format format; in Prepare() local 217 callbackLooper_.OnInfo(INFO_TYPE_POSITION_UPDATE, 0, format); in Prepare() 494 Format format; in HandleReadyEvent() local 495 callbackLooper_.OnInfo(INFO_TYPE_POSITION_UPDATE, 0, format); in HandleReadyEvent() 557 Format format; in OnEvent() local 558 callbackLooper_.OnInfo(INFO_TYPE_MESSAGE, PlayerMessageType::PLAYER_INFO_VIDEO_RENDERING_START, format); in OnEvent() 562 Format format; in OnEvent() local 672 Format format; DoSeek() local 707 Format format; DoOnReady() local 729 Format format; DoOnComplete() local 761 Format format; SetVolumeToSink() local 859 Format format; SetPlaybackSpeed() local 1098 Format format; NotifyBufferingUpdate() local 1106 Format format; HandleResolutionChangeEvent() local 1125 Format format; HandlePluginEvent() local 1137 Format format; HandlePluginEvent() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/ |
H A D | NativeAVMuxerFunctionTest.cpp | 70 printf("audio format failed!"); in AddAudioTrack() 98 printf("video format failed!"); in AddVideoTrack() 125 printf("cover format failed!"); in AddCoverTrack() 266 printf("audio format failed!"); in AddAudioTrackByFd() 293 printf("audio format failed!"); in AddAudioTrackAACByFd() 319 printf("video format failed!"); in AddVideoTrackByFd() 414 void RunMuxer(const string testcaseName, int threadId, OH_AVOutputFormat format) in RunMuxer() argument 420 int32_t fd = muxerDemo->GetFdByName(format, fileName); in RunMuxer() 427 OH_AVMuxer* handle = muxerDemo->NativeCreate(fd, format); in RunMuxer() 432 if (format in RunMuxer() 591 OH_AVOutputFormat format = formatList[i]; HWTEST_F() local 635 OH_AVOutputFormat format = formatList[i]; HWTEST_F() local 679 OH_AVOutputFormat format = formatList[i]; HWTEST_F() local 729 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_MPEG_4; HWTEST_F() local 772 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_MPEG_4; HWTEST_F() local 812 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_M4A; HWTEST_F() local 836 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_MPEG_4; HWTEST_F() local 861 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_M4A; HWTEST_F() local 909 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_MPEG_4; HWTEST_F() local 962 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_M4A; HWTEST_F() local 1016 OH_AVOutputFormat format = AV_OUTPUT_FORMAT_MPEG_4; HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/ |
H A D | InnerAVMuxerFunctionTest.cpp | 415 void RunMuxer(string testcaseName, int threadId, Plugins::OutputFormat format) in RunMuxer() argument 421 int32_t fd = muxerDemo->InnerGetFdByName(format, fileName); in RunMuxer() 428 muxerDemo->InnerCreate(fd, format); in RunMuxer() 431 if (format == Plugins::OutputFormat::MPEG_4) { in RunMuxer() 432 cout << "thread id is: " << threadId << ", format is: " << static_cast<int32_t>(format) << endl; in RunMuxer() 437 cout << "thread id is: " << threadId << ", format is: " << static_cast<int32_t>(format) << endl; in RunMuxer() 580 Plugins::OutputFormat format = formatList[i]; in HWTEST_F() local 581 int32_t fd = muxerDemo->InnerGetFdByName(format, "FUNCTION_001_INNER in HWTEST_F() 628 Plugins::OutputFormat format = formatList[i]; HWTEST_F() local 674 Plugins::OutputFormat format = formatList[i]; HWTEST_F() local 722 Plugins::OutputFormat format = Plugins::OutputFormat::MPEG_4; HWTEST_F() local 765 Plugins::OutputFormat format = Plugins::OutputFormat::MPEG_4; HWTEST_F() local 804 Plugins::OutputFormat format = Plugins::OutputFormat::M4A; HWTEST_F() local 825 Plugins::OutputFormat format = Plugins::OutputFormat::MPEG_4; HWTEST_F() local 847 Plugins::OutputFormat format = Plugins::OutputFormat::M4A; HWTEST_F() local 896 Plugins::OutputFormat format = Plugins::OutputFormat::MPEG_4; HWTEST_F() local 946 Plugins::OutputFormat format = Plugins::OutputFormat::M4A; HWTEST_F() local 1002 Plugins::OutputFormat format = Plugins::OutputFormat::MPEG_4; HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/ |
H A D | setparam_test.cpp | 96 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 97 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, -1); in HWTEST_F() 98 EXPECT_EQ(AV_ERR_INVALID_VAL, vEncSample->SetParameter(format)); in HWTEST_F() 99 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, LONG_MAX); in HWTEST_F() 100 EXPECT_EQ(AV_ERR_INVALID_VAL, vEncSample->SetParameter(format)); in HWTEST_F() 101 OH_AVFormat_Destroy(format); in HWTEST_F() 125 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 126 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE >> 1); in HWTEST_F() 127 EXPECT_NE(AV_ERR_OK, vEncSample->SetParameter(format)); in HWTEST_F() 128 OH_AVFormat_Destroy(format); in HWTEST_F() 249 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 278 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 403 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 429 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 455 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 481 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 756 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 788 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | type_converter.h | 47 // pixel format 48 static std::optional<PixelFmt> GraphicFmtToFmt(GraphicPixelFormat format); 49 static std::optional<PixelFmt> InnerFmtToFmt(VideoPixelFormat format); 50 static std::optional<GraphicPixelFormat> InnerFmtToDisplayFmt(VideoPixelFormat format); 51 static std::optional<VideoPixelFormat> DisplayFmtToInnerFmt(GraphicPixelFormat format);
|
H A D | hdecoder.h | 40 int32_t OnConfigure(const Format &format) override; 41 int32_t SetupPort(const Format &format); 49 int32_t OnSetParameters(const Format &format) override; 53 int32_t SaveTransform(const Format &format, bool set = false); 55 int32_t SaveScaleMode(const Format &format, bool set = false); 103 int32_t SetVrrEnable(const Format &format);
|
/foundation/multimedia/av_codec/frameworks/native/avcodec/ |
H A D | avcodec_video_decoder_impl.h | 29 int32_t Configure(const Format &format) override; 39 int32_t GetOutputFormat(Format &format) override; 42 int32_t SetParameter(const Format &format) override; 49 int32_t Init(AVCodecType type, bool isMimeType, const std::string &name, Format &format);
|
/foundation/multimedia/av_codec/services/engine/common/include/ |
H A D | codec_utils.h | 23 #include "meta/format.h" 69 const Format &format); 71 const Format &format); 74 bool IsYuvFormat(VideoPixelFormat &format); 75 bool IsRgbFormat(VideoPixelFormat &format);
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/flac/ |
H A D | ffmpeg_flac_encoder_plugin.h | 54 Status CheckFormat(const std::shared_ptr<Meta> &format);
55 bool CheckBitRate(const std::shared_ptr<Meta> &format) const;
56 Status SetContext(const std::shared_ptr<Meta> &format);
57 void SetFormat(const std::shared_ptr<Meta> &format) noexcept;
|
/foundation/multimedia/av_codec/services/engine/codec/include/audio/ |
H A D | audio_codec_adapter.h | 35 int32_t Configure(const Format &format) override; 49 int32_t SetParameter(const Format &format) override; 51 int32_t GetOutputFormat(Format &format) override; 71 int32_t doConfigure(const Format &format);
|
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | i_standard_codec_service.h | 39 virtual int32_t Configure(const Format &format) = 0; 52 virtual int32_t GetOutputFormat(Format &format) = 0; 55 virtual int32_t SetParameter(const Format &format) = 0; 56 virtual int32_t GetInputFormat(Format &format) = 0;
|
/foundation/multimedia/av_codec/services/services/codeclist/client/ |
H A D | codeclist_client.cpp | 59 std::string CodecListClient::FindDecoder(const Format &format) in FindDecoder() argument 63 return codecListProxy_->FindDecoder(format); in FindDecoder() 66 std::string CodecListClient::FindEncoder(const Format &format) in FindEncoder() argument 70 return codecListProxy_->FindEncoder(format); in FindEncoder()
|
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/inner/ |
H A D | avformat_inner_mock.h | 20 #include "meta/format.h" 26 explicit AVFormatInnerMock(const Format &format) : format_(format) {} in AVFormatInnerMock() argument 27 explicit AVFormatInnerMock(Format &&format) : format_(format) {} in AVFormatInnerMock() argument
|
/foundation/multimedia/av_codec/test/unittest/filter_test/ |
H A D | surface_decoder_unit_test.h | 56 int32_t Configure(const Format &format)
in Configure() argument 96 int32_t GetOutputFormat(Format &format)
in GetOutputFormat() argument 108 int32_t SetParameter(const Format &format)
in SetParameter() argument 136 void OnOutputFormatChanged(const std::shared_ptr<Meta> &format)
in OnOutputFormatChanged() argument
|
/foundation/multimedia/player_framework/services/services/engine_intf/ |
H A D | i_avcodec_engine.h | 27 #include "meta/format.h" 38 virtual void OnOutputFormatChanged(const Format &format) = 0; 48 virtual int32_t Configure(const Format &format) = 0; 60 virtual int32_t GetOutputFormat(Format &format) = 0; 62 virtual int32_t SetParameter(const Format &format) = 0;
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_utils.cpp | 207 if (info.format == AVPixelFormat::AV_PIX_FMT_NV21 || info.format == AVPixelFormat::AV_PIX_FMT_NV12) { in FillSrcFrameInfo() 212 } else if (info.format == AVPixelFormat::AV_PIX_FMT_P010LE) { in FillSrcFrameInfo() 214 info.format, info.yuvDataInfo.yStride, info.height, 1); in FillSrcFrameInfo() 217 info.format, info.width, info.height, 1); in FillSrcFrameInfo() 231 if (info.format == AVPixelFormat::AV_PIX_FMT_NV21 || info.format == AVPixelFormat::AV_PIX_FMT_NV12) { in FillDstFrameInfo() 236 } else if (info.format == AVPixelFormat::AV_PIX_FMT_P010LE) { in FillDstFrameInfo() 238 info.format, info.yuvDataInfo.yStride, info.height, 1); in FillDstFrameInfo() 241 info.format, inf in FillDstFrameInfo() 663 IsYUVP010Format(PixelFormat format) IsYUVP010Format() argument 744 SetTranslateDataDefault(uint8_t *srcPixels, int32_t width, int32_t height, PixelFormat format, YUVStrideInfo &dstStrides) SetTranslateDataDefault() argument 764 GetYuv420U(uint32_t x, uint32_t y, YUVDataInfo &info, PixelFormat format, const uint8_t *in) GetYuv420U() argument 785 GetYuv420V(uint32_t x, uint32_t y, YUVDataInfo &info, PixelFormat format, const uint8_t *in) GetYuv420V() argument 953 YuvWritePixel(uint8_t *srcPixels, const YUVDataInfo &yuvDataInfo, const PixelFormat &format, const Position &pos, const uint32_t &color) YuvWritePixel() argument [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/utils/ |
H A D | ffmpeg_utils.cpp | 145 // Histreamer pixel format to ffmpeg pixel format 463 bool IsYuvFormat(AVPixelFormat format) in IsYuvFormat() argument 465 return (format == AV_PIX_FMT_YUV420P || format == AV_PIX_FMT_NV12 || format == AV_PIX_FMT_NV21 || in IsYuvFormat() 466 format == AV_PIX_FMT_YUYV422 || format == AV_PIX_FMT_YUV422P || format == AV_PIX_FMT_YUV444P || in IsYuvFormat() 467 format in IsYuvFormat() 471 IsRgbFormat(AVPixelFormat format) IsRgbFormat() argument [all...] |
/foundation/multimedia/av_codec/frameworks/native/capi/avsource/ |
H A D | native_avsource.cpp | 129 Format format; in OH_AVSource_GetSourceFormat() local 130 int32_t ret = sourceObj->source_->GetSourceFormat(format); in OH_AVSource_GetSourceFormat() 135 avFormat->format_ = format; in OH_AVSource_GetSourceFormat() 149 Format format; in OH_AVSource_GetTrackFormat() local 150 int32_t ret = sourceObj->source_->GetTrackFormat(format, trackIndex); in OH_AVSource_GetTrackFormat() 155 avFormat->format_ = format; in OH_AVSource_GetTrackFormat()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/ape/ |
H A D | ffmpeg_ape_decoder_plugin.cpp | 124 auto format = basePlugin->GetFormat(); in SetParameter() local 125 format->SetData(Tag::AUDIO_MAX_INPUT_SIZE, GetInputBufferSize()); in SetParameter() 126 format->SetData(Tag::AUDIO_MAX_OUTPUT_SIZE, GetOutputBufferSize()); in SetParameter() 127 basePlugin->CheckSampleFormat(format, codecCtx->channels); in SetParameter() 189 bool FFmpegAPEDecoderPlugin::CheckChannelCount(const std::shared_ptr<Meta> &format) in CheckChannelCount() argument 191 if (!format->GetData(Tag::AUDIO_CHANNEL_COUNT, channels_)) { in CheckChannelCount()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/ |
H A D | audio_g711mu_decoder_plugin.cpp | 49 int32_t AudioG711muDecoderPlugin::Init(const Format &format) in Init() argument 51 int32_t checkresult = CheckInit(format); in Init() 57 format_ = format; in Init() 148 int32_t AudioG711muDecoderPlugin::CheckInit(const Format &format) in CheckInit() argument 152 format.GetIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, channels); in CheckInit() 153 format.GetIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, sampleRate); in CheckInit()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/cj/ |
H A D | image_ffi_test.cpp | 109 int32_t format; in HWTEST_F() local 110 FfiOHOSReceiverGetFormat(imageReceiverId, &format); in HWTEST_F() 117 FfiOHOSImageGetFormat(imageId, &format); in HWTEST_F() 138 int32_t format; in HWTEST_F() local 139 FfiOHOSReceiverGetFormat(imageReceiverId, &format); in HWTEST_F() 146 FfiOHOSImageGetFormat(imageId, &format); in HWTEST_F()
|