/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/ |
H A D | camera_napi_object_types.cpp | 54 auto format = Hold<int32_t>(profile_.format_); in GetCameraNapiObject() local 56 CameraNapiObject::CameraNapiObjFieldMap { { "format", format }, { "size", &sizeObj->GetCameraNapiObject() } }); in GetCameraNapiObject() 61 auto format = Hold<int32_t>(videoProfile_.format_); in GetCameraNapiObject() local 65 { "format", format }, in GetCameraNapiObject() 72 auto format = Hold<int32_t>(depthProfile_.format_); in GetCameraNapiObject() local 76 { "format", format }, in GetCameraNapiObject()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_texture.h | 156 GLenum format; member 158 TextureFormatTypeMap(GLenum arg1, GLenum arg2, GLenum arg3) : internalFormat(arg1), format(arg2), type(arg3) {} in TextureFormatTypeMap() 165 ((lhs.internalFormat == rhs.internalFormat) && (lhs.format < rhs.format)) || in operator ()() 166 ((lhs.internalFormat == rhs.internalFormat) && (lhs.format == rhs.format) && (lhs.type < rhs.type))); in operator ()()
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | time_util.cpp | 103 string TimeUtil::GetCurrTime(TimeFormat format) in GetCurrTime() argument 112 if (format == TIME_FORMAT_DEFAULT) { in GetCurrTime() 114 } else if (format == TIME_FORMAT_CONTINOUS) { in GetCurrTime() 116 } else if (format == TIME_FORMAT_STANDARD) { in GetCurrTime() 119 INTELL_VOICE_LOG_WARN("invalid format:%{public}d", format); in GetCurrTime()
|
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/beans/ |
H A D | frame_node.py | 69 result_str = 'nodeId: {}, parentId: {}, tag: {}'.format(self.nodeId, self.parentId, self.tag) 71 result_str += ', comId: {}'.format(self.com_id) 72 result_str += ', monopolizeEvents: {}, isHit: {}, hitTestMode: {}, responseRegion: {}'.format( 77 result_str = '{}({}) , isHit: {}'.format(self.tag, self.nodeId, self.isHit) 82 .format(self.tag, self.nodeId, self.isHit, self.hitTestMode))
|
/foundation/multimedia/av_codec/interfaces/inner_api/native/ |
H A D | video_decoder_adapter.h | 27 #include "meta/format.h" 38 Status Configure(const Format &format); 39 int32_t SetParameter(const Format &format); 53 void OnOutputFormatChanged(const MediaAVCodec::Format &format); 59 int32_t GetOutputFormat(Format &format); 102 void OnOutputFormatChanged(const MediaAVCodec::Format &format);
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/ |
H A D | logger.h | 43 void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view format, 46 BASE_NS::string_view format, std::va_list args) override; 48 BASE_NS::string_view expressionString, BASE_NS::string_view format, std::va_list args) override; 51 void Log(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, 56 BASE_NS::string_view expressionString, FORMAT_ATTRIBUTE const char* format, ...) override;
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/screen_manager/ |
H A D | rs_screen_hdr_capability.cpp | 72 for (ScreenHDRFormat format : formats) {
in WriteVector() 73 if (!parcel.WriteUint32(static_cast<uint32_t>(format))) {
in WriteVector() 94 uint32_t format;
in ReadVector() local 95 if (!parcel.ReadUint32(format)) {
in ReadVector() 98 unmarFormats.push_back(static_cast<ScreenHDRFormat>(format));
in ReadVector()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/image/ |
H A D | bitmap.cpp | 29 bool Bitmap::Build(int32_t width, int32_t height, const BitmapFormat& format, int32_t stride) in Build() argument 31 return bmpImplPtr->Build(width, height, format, stride); in Build() 147 void Bitmap::SetFormat(const BitmapFormat& format) in SetFormat() argument 150 imageinfo.SetColorType(format.colorType); in SetFormat() 151 imageinfo.SetAlphaType(format.alphaType); in SetFormat()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/ |
H A D | pixel_yuv_utils.h | 56 AVPixelFormat format = AVPixelFormat::AV_PIX_FMT_NONE; member 75 static void SetTranslateDataDefault(uint8_t *srcPixels, int32_t width, int32_t height, PixelFormat format, 78 static uint8_t GetYuv420U(uint32_t x, uint32_t y, YUVDataInfo &info, PixelFormat format, 80 static uint8_t GetYuv420V(uint32_t x, uint32_t y, YUVDataInfo &info, PixelFormat format, 91 static bool YuvWritePixel(uint8_t *srcPixels, const YUVDataInfo &yuvDataInfo, const PixelFormat &format,
|
/foundation/multimedia/image_framework/frameworks/kits/cj/src/ |
H A D | image_receiver_impl.cpp | 37 static bool CheckFormat(int32_t format) in CheckFormat() argument 40 if (imgEnum.numVal == format) { in CheckFormat() 47 int64_t ImageReceiverImpl::CreateImageReceiver(int32_t width, int32_t height, int32_t format, int32_t capacity) in CreateImageReceiver() argument 50 if (!CheckFormat(format)) { in CreateImageReceiver() 54 std::shared_ptr imageReceiver = ImageReceiver::CreateImageReceiver(width, height, format, capacity); in CreateImageReceiver()
|
/foundation/multimedia/media_foundation/tests/unittest/avbuffer/inner/ |
H A D | avbuffer_inner_mock.cpp | 63 Format format; in GetParameter() local 64 format.SetMeta(buffer_->meta_); in GetParameter() 65 auto formatMock = std::make_shared<AVFormatInnerMock>(format); in GetParameter() 69 int32_t AVBufferInnerMock::SetParameter(const std::shared_ptr<FormatMock> &format) in SetParameter() argument 73 auto &formatAVCodec = std::static_pointer_cast<AVFormatInnerMock>(format)->GetFormat(); in SetParameter()
|
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avbuffer/inner/ |
H A D | avbuffer_inner_mock.cpp | 74 Format format; in GetParameter() local 75 format.SetMeta(buffer_->meta_); in GetParameter() 76 auto formatMock = std::make_shared<AVFormatInnerMock>(format); in GetParameter() 80 int32_t AVBufferInnerMock::SetParameter(const std::shared_ptr<FormatMock> &format) in SetParameter() argument 83 auto &formatAVCodec = std::static_pointer_cast<AVFormatInnerMock>(format)->GetFormat(); in SetParameter()
|
/foundation/multimedia/av_codec/test/unittest/demuxer_test/capi/ |
H A D | demuxer_capi_buffer_mock.cpp | 78 OH_AVFormat *format = OH_AVBuffer_GetParameter(avBuffer); in ReadSample() local 79 if (format == nullptr) { in ReadSample() 80 printf("OH_AVBuffer format is nullptr\n"); in ReadSample() 84 OH_AVFormat_GetLongValue(format, OH_MD_KEY_BUFFER_DURATION, &duration); in ReadSample() 85 OH_AVFormat_GetLongValue(format, OH_MD_KEY_DECODING_TIMESTAMP, &dts); in ReadSample() 88 OH_AVFormat_Destroy(format); in ReadSample()
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoder_fuzzer/ |
H A D | audio_decoder_demo.h | 78 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 91 OH_AVErrCode SetParameter(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 95 int32_t Configure(OH_AVFormat *format); 104 bool InitFormat(OH_AVFormat *format); 105 bool ConfigVorbisExtraData(OH_AVFormat *format);
|
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_codec/ |
H A D | codec_callback.cpp | 34 void CodecCallback::OnCodecFormatChange(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnCodecFormatChange() argument 41 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_PIC_WIDTH, &context->sampleInfo->videoWidth); in OnCodecFormatChange() 42 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_PIC_HEIGHT, &context->sampleInfo->videoHeight); in OnCodecFormatChange() 43 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_STRIDE, &context->sampleInfo->videoStrideWidth); in OnCodecFormatChange() 44 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &context->sampleInfo->videoSliceHeight); in OnCodecFormatChange()
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_video_player.cpp | 104 Media::Format format; in SetVideoSound() local 105 format.PutIntValue(Media::PlayerKeys::CONTENT_TYPE, CONTENT_TYPE_UNKNOWN); in SetVideoSound() 106 format.PutIntValue(Media::PlayerKeys::STREAM_USAGE, STREAM_USAGE_ENFORCED_TONE); in SetVideoSound() 107 format.PutIntValue(Media::PlayerKeys::RENDERER_FLAG, 0); in SetVideoSound() 108 int ret = mediaPlayer_->SetParameter(format); in SetVideoSound()
|
/foundation/multimedia/av_codec/test/unittest/decoder_filter_test/ |
H A D | surface_encoder_filter_unit_test.cpp | 53 std::shared_ptr<Meta> format = std::make_shared<Meta>();
in HWTEST_F() local 54 format->Set<Tag::MIME_TYPE>("test");
in HWTEST_F() 55 format->Set<Tag::MEDIA_END_OF_STREAM>(true);
in HWTEST_F() 56 EXPECT_EQ(surfaceEncoder->SetCodecFormat(format), Status::OK);
in HWTEST_F() 59 EXPECT_EQ(surfaceEncoder->Configure(format), Status::ERROR_UNKNOWN);
in HWTEST_F() 76 EXPECT_EQ(surfaceEncoder->Configure(format), Status::ERROR_UNKNOWN);
in HWTEST_F() 92 surfaceEncoder->SetParameter(format);
in HWTEST_F() 93 surfaceEncoder->GetParameter(format);
in HWTEST_F() 105 EXPECT_EQ(surfaceEncoder->OnLinked(Pipeline::StreamType::STREAMTYPE_PACKED, format, filterLinkCallback),
in HWTEST_F() 107 EXPECT_EQ(surfaceEncoder->OnUpdated(Pipeline::StreamType::STREAMTYPE_PACKED, format, filterLinkCallbac in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/ |
H A D | fuzz_test.cpp | 95 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 107 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 123 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 135 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 151 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 162 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 185 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 196 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 222 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 233 result0 = aDecBufferDemo->Configure(codec, format, channe in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | codec_server.h | 58 int32_t Configure(const Format &format) override; 71 int32_t GetOutputFormat(Format &format) override; 74 int32_t SetParameter(const Format &format) override; 79 int32_t GetInputFormat(Format &format) override; 89 void OnOutputFormatChanged(const Format &format); 110 void PostProcessingOnOutputFormatChanged(const Format &format); 164 int32_t CreatePostProcessing(const Format& format); 172 int32_t GetPostProcessingOutputFormat(Format& format); 205 void OnOutputFormatChanged(const Format &format) override; 220 void OnOutputFormatChanged(const Format &format) overrid [all...] |
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_decoder_inner_demo.cpp | 46 Format format; in RunCase() local 47 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, CHANNEL_COUNT); in RunCase() 48 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE); in RunCase() 49 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, BITS_RATE); in RunCase() 60 format.PutBuffer(MediaDescriptionKey::MD_KEY_CODEC_CONFIG.data(), (uint8_t *)buffer, extradataSize); in RunCase() 62 DEMO_CHECK_AND_RETURN_LOG(Configure(format) == AVCS_ERR_OK, "Fatal: Configure fail"); in RunCase() 88 int32_t ADecInnerDemo::Configure(const Format &format) in Configure() argument 90 return audioDec_->Configure(format); in Configure() 262 void ADecDemoCallback::OnOutputFormatChanged(const Format &format) in OnOutputFormatChanged() argument 264 (void)format; in OnOutputFormatChanged() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/mock/capi/ |
H A D | videodec_capi_mock.cpp | 37 void VideoDecCapiMock::OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument 42 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChanged() 77 void VideoDecCapiMock::OnStreamChangedExt(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChangedExt() argument 82 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChangedExt() 183 int32_t VideoDecCapiMock::Configure(std::shared_ptr<FormatMock> format) in Configure() argument 185 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in Configure() 228 OH_AVFormat *format = OH_VideoDecoder_GetOutputDescription(codec_); in GetOutputDescription() local 229 return std::make_shared<AVFormatCapiMock>(format); in GetOutputDescription() 232 int32_t VideoDecCapiMock::SetParameter(std::shared_ptr<FormatMock> format) in SetParameter() argument 234 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in SetParameter() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/bluetooth/ |
H A D | bluetooth_renderer_sink.cpp | 80 HDI::Audio_Bluetooth::AudioFormat format; member 192 AudioFormat ConvertToHdiFormat(HdiAdapterFormat format); 193 ConvertHdiFormat ConvertToHdiAdapterFormat(AudioFormat format); 199 void DfxOperation(BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) const; 318 attrs.format = AUDIO_FORMAT_TYPE_PCM_16_BIT; in InitAttrs() 387 uint32_t PcmFormatToBits(AudioFormat format) in PcmFormatToBits() argument 389 switch (format) { in PcmFormatToBits() 409 param.format = attr_.format; in CreateRender() 410 param.frameSize = PcmFormatToBits(param.format) * para in CreateRender() 429 ConvertToHdiFormat(HdiAdapterFormat format) ConvertToHdiFormat() argument 578 DfxOperation(BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) const DfxOperation() argument 589 ConvertToHdiAdapterFormat(AudioFormat format) ConvertToHdiAdapterFormat() argument 1037 HdiFormatToByte(HDI::Audio_Bluetooth::AudioFormat format) HdiFormatToByte() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/sample/ |
H A D | venc_sample.cpp | 86 void VEncCallbackTest::OnStreamChanged(std::shared_ptr<FormatMock> format) in OnStreamChanged() argument 88 UNITTEST_INFO_LOG("format changed: %s", format->DumpInfo()); in OnStreamChanged() 134 void VEncCallbackTestExt::OnStreamChanged(std::shared_ptr<FormatMock> format) in OnStreamChanged() argument 136 UNITTEST_INFO_LOG("format changed: %s", format->DumpInfo()); in OnStreamChanged() 289 int32_t VideoEncSample::Configure(std::shared_ptr<FormatMock> format) in Configure() argument 294 return videoEnc_->Configure(format); in Configure() 378 int32_t VideoEncSample::SetParameter(std::shared_ptr<FormatMock> format) in SetParameter() argument 383 return videoEnc_->SetParameter(format); in SetParameter() 632 InputLtrParam(std::shared_ptr<FormatMock> format, int32_t frameInputCount, std::shared_ptr<AVBufferMock> buffer) InputLtrParam() argument 669 auto format = signal_->inFormatQueue_.front(); InputParamLoopFunc() local 729 auto format = GetInputDescription(); InputLoopInner() local 857 std::shared_ptr<FormatMock> format = buffer->GetParameter(); CheckFormatKey() local 957 std::shared_ptr<FormatMock> format = buffer->GetParameter(); InputLoopInnerExt() local 969 auto format = GetInputDescription(); InputLoopInnerExt() local [all...] |
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapidescription_fuzzer/ |
H A D | audiodecoderdemo.cpp | 52 void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData) in OnOutputFormatChanged() argument 55 (void)format; in OnOutputFormatChanged() 261 bool ADecDemoAuto::InitFormat(OH_AVFormat *format) in InitFormat() argument 266 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AAC_IS_ADTS.data(), in InitFormat() 268 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 273 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 278 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 281 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 283 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), channelCount); in InitFormat() 284 OH_AVFormat_SetIntValue(format, MediaDescriptionKe in InitFormat() 362 Configure(OH_AVFormat* format) Configure() argument [all...] |
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapiflush_fuzzer/ |
H A D | audiodecoderdemo.cpp | 52 void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData) in OnOutputFormatChanged() argument 55 (void)format; in OnOutputFormatChanged() 261 bool ADecDemoAuto::InitFormat(OH_AVFormat *format) in InitFormat() argument 266 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AAC_IS_ADTS.data(), in InitFormat() 268 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 273 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 278 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 281 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), in InitFormat() 283 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), channelCount); in InitFormat() 284 OH_AVFormat_SetIntValue(format, MediaDescriptionKe in InitFormat() 362 Configure(OH_AVFormat* format) Configure() argument [all...] |