/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
D | NativeParamCheckTest.cpp | 100 OH_AVFormat *format = OH_AVFormat_Create(); variable 101 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); 102 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); 103 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); 104 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); 105 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); 106 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); 107 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); 109 OH_AVErrCode ret = encoderDemo->NativeConfigure(handle, format); 113 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, -1); [all …]
|
D | NativeFunctionTest.cpp | 107 OH_AVFormat* format = OH_AVFormat_Create(); in getAVFormatByEncoder() local 109 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_AAC); in getAVFormatByEncoder() 110 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_AAC); in getAVFormatByEncoder() 111 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder() 112 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in getAVFormatByEncoder() 113 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in getAVFormatByEncoder() 114 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in getAVFormatByEncoder() 115 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, BITS_RATE_AAC); in getAVFormatByEncoder() 117 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_FLAC); in getAVFormatByEncoder() 118 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_FLAC); in getAVFormatByEncoder() [all …]
|
D | NativeNullCheckTest.cpp | 154 OH_AVFormat* format = OH_AVFormat_Create(); variable 155 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); 156 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); 157 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); 158 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); 159 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); 160 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); 161 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); 163 OH_AVErrCode ret = encoderDemo->NativeConfigure(nullptr, format); 166 OH_AVFormat_Destroy(format); [all …]
|
D | NativeStablityTest.cpp | 57 OH_AVFormat* format = OH_AVFormat_Create(); in GetAVFormatByEncoder() local 59 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_AAC); in GetAVFormatByEncoder() 60 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_AAC); in GetAVFormatByEncoder() 61 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, OH_BitsPerSample::SAMPLE_F32LE); in GetAVFormatByEncoder() 62 … OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, OH_BitsPerSample::SAMPLE_F32LE); in GetAVFormatByEncoder() 63 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, STEREO); in GetAVFormatByEncoder() 64 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in GetAVFormatByEncoder() 65 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, BITS_RATE_AAC); in GetAVFormatByEncoder() 67 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_FLAC); in GetAVFormatByEncoder() 68 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_FLAC); in GetAVFormatByEncoder() [all …]
|
D | NativeFuzzTest.cpp | 184 OH_AVFormat* format = OH_AVFormat_Create(); variable 185 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channel); 186 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); 187 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, codedSample); 188 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, codedSample); 189 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOUT, layout); 190 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); 191 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); 197 OH_AVErrCode ret = encoderDemo->NativeConfigure(handle, format); 201 OH_AVFormat_Destroy(format); [all …]
|
/foundation/multimedia/av_codec/frameworks/native/capi/common/ |
D | native_avformat.cpp | 83 void OH_AVFormat_Destroy(struct OH_AVFormat *format) in OH_AVFormat_Destroy() argument 85 delete format; in OH_AVFormat_Destroy() 99 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue() argument 101 CHECK_AND_RETURN_RET_LOG(format != nullptr, false, "input format is nullptr!"); in OH_AVFormat_SetIntValue() 102 … CHECK_AND_RETURN_RET_LOG(format->magic_ == AVMagic::AVCODEC_MAGIC_FORMAT, false, "magic error!"); in OH_AVFormat_SetIntValue() 105 return format->format_.PutIntValue(key, value); in OH_AVFormat_SetIntValue() 108 bool OH_AVFormat_SetLongValue(struct OH_AVFormat *format, const char *key, int64_t value) in OH_AVFormat_SetLongValue() argument 110 CHECK_AND_RETURN_RET_LOG(format != nullptr, false, "input format is nullptr!"); in OH_AVFormat_SetLongValue() 111 … CHECK_AND_RETURN_RET_LOG(format->magic_ == AVMagic::AVCODEC_MAGIC_FORMAT, false, "magic error!"); in OH_AVFormat_SetLongValue() 114 return format->format_.PutLongValue(key, value); in OH_AVFormat_SetLongValue() [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/ |
D | InnerFunctionTest.cpp | 60 Format format; in runEncode() local 61 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); in runEncode() 62 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE_16000); in runEncode() 63 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, SAMPLE_RATE_128000); in runEncode() 64 …format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F3… in runEncode() 65 …format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_F32L… in runEncode() 66 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, MONO); in runEncode() 67 format.PutIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, 1); in runEncode() 68 encoderDemo->InnerRunCase(inputFile, outputFile, encoderName.c_str(), format); in runEncode() 70 Format format; in runEncode() local [all …]
|
D | InnerStablityTest.cpp | 107 Format format; variable 109 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); 110 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, 44100); 111 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 112000); 112 …format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F3… 113 …format.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_F32L… 114 format.PutLongValue(MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT, MONO); 116 encoderDemo->InnerConfigure(format); 140 Format format; variable 142 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
D | NativeParamCheckTest.cpp | 108 OH_AVFormat *format = OH_AVFormat_Create(); variable 109 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); 110 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); 111 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); 113 OH_AVErrCode ret = decoderDemo->NativeConfigure(handle, format); 117 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, -1); 118 ret = decoderDemo->NativeConfigure(handle, format); 122 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, 1); 123 ret = decoderDemo->NativeConfigure(handle, format); 127 OH_AVFormat_SetStringValue(format, OH_MD_KEY_BITRATE, "aaa"); [all …]
|
D | NativeFunctionTest.cpp | 173 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local 174 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode() 175 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode() 176 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in runDecode() 177 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, bitrate); in runDecode() 179 decoderDemo->NativeRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode() 180 OH_AVFormat_Destroy(format); in runDecode() 182 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local 183 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode() 184 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode() [all …]
|
D | NativeNullCheckTest.cpp | 154 OH_AVFormat* format = OH_AVFormat_Create(); variable 155 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); 156 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); 157 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, 4); 158 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000); 160 OH_AVErrCode ret = decoderDemo->NativeConfigure(nullptr, format); 163 OH_AVFormat_Destroy(format); 199 OH_AVFormat* format = OH_AVFormat_Create(); variable 200 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2); 201 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100); [all …]
|
/foundation/multimedia/player_framework/services/engine/common/avcodeclist/ |
D | avcodeclist_engine_gst_impl.cpp | 39 bool AVCodecListEngineGstImpl::IsSupportMimeType(const Format &format, const CapabilityData &data) in IsSupportMimeType() argument 42 if (!format.ContainKey("codec_mime")) { in IsSupportMimeType() 46 (void)format.GetStringValue("codec_mime", targetMimeType); in IsSupportMimeType() 53 bool AVCodecListEngineGstImpl::IsSupportBitrate(const Format &format, const CapabilityData &data) in IsSupportBitrate() argument 56 if (!format.ContainKey("bitrate")) { in IsSupportBitrate() 60 (void)format.GetIntValue("bitrate", targetBitrate); in IsSupportBitrate() 67 bool AVCodecListEngineGstImpl::IsSupportSize(const Format &format, const CapabilityData &data) in IsSupportSize() argument 71 if ((!format.ContainKey("width")) || (!format.ContainKey("height"))) { in IsSupportSize() 75 (void)format.GetIntValue("width", targetWidth); in IsSupportSize() 76 (void)format.GetIntValue("height", targetHeight); in IsSupportSize() [all …]
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
D | InnerFunctionTest.cpp | 79 Format format; in runDecode() local 84 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, CHANNEL_COUNT); in runDecode() 85 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE); in runDecode() 86 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, BITS_RATE); in runDecode() 87 format.PutIntValue(MediaDescriptionKey::MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_IS_ADTS); in runDecode() 88 decoderDemo->InnerRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode() 90 Format format; in runDecode() local 94 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, CHANNEL_COUNT); in runDecode() 95 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, SAMPLE_RATE); in runDecode() 96 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, BITS_RATE); in runDecode() [all …]
|
D | InnerStablityTest.cpp | 114 Format format; variable 116 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 320000); 117 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); 118 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, 48000); 120 decoderDemo->InnerConfigure(format); 147 Format format; variable 149 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 320000); 150 format.PutIntValue(MediaDescriptionKey::MD_KEY_CHANNEL_COUNT, 1); 151 format.PutIntValue(MediaDescriptionKey::MD_KEY_SAMPLE_RATE, 48000); 153 decoderDemo->InnerConfigure(format); [all …]
|
/foundation/multimedia/player_framework/test/unittest/avcodec_test/vcodec_test/ |
D | vcodec_unit_test.cpp | 107 std::shared_ptr<FormatMock> format = AVCodecMockFactory::CreateFormat(); variable 108 ASSERT_NE(nullptr, format); 119 (void)format->PutIntValue(width.c_str(), DEFAULT_WIDTH); 120 (void)format->PutIntValue(height.c_str(), DEFAULT_HEIGHT); 121 (void)format->PutIntValue(pixelFormat.c_str(), NV12); 122 (void)format->PutIntValue(frameRate.c_str(), DEFAULT_FRAME_RATE); 123 (void)format->PutIntValue(rotationAngle.c_str(), 0); // set rotation_angle 0 124 (void)format->PutIntValue(maxInputSize.c_str(), 15000); // set max input size 15000 125 EXPECT_EQ(MSERR_OK, videoDec_->Configure(format)); 126 (void)format->PutIntValue(videoEncodeBitrateMode.c_str(), 0); // CBR [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/common/ |
D | rs_log.h | 34 void RSB_EXPORT RSLogOutput(RSLog::Tag tag, RSLog::Level level, const char* format, ...); 38 #define ROSEN_LOGI(format, ...) \ argument 39 RSLogOutput(RSLog::Tag::RS_CLIENT, RSLog::Level::LEVEL_INFO, format, ##__VA_ARGS__) 40 #define ROSEN_LOGD(format, ...) \ argument 41 RSLogOutput(RSLog::Tag::RS_CLIENT, RSLog::Level::LEVEL_DEBUG, format, ##__VA_ARGS__) 42 #define ROSEN_LOGE(format, ...) \ argument 43 RSLogOutput(RSLog::Tag::RS_CLIENT, RSLog::Level::LEVEL_ERROR, format, ##__VA_ARGS__) 44 #define ROSEN_LOGW(format, ...) \ argument 45 RSLogOutput(RSLog::Tag::RS_CLIENT, RSLog::Level::LEVEL_WARN, format, ##__VA_ARGS__) 46 #define ROSEN_LOGF(format, ...) \ argument [all …]
|
/foundation/resourceschedule/ffrt/src/dfx/log/ |
D | ffrt_log_api.h | 22 #define FFRT_LOGD(format, ...) FFRT_LOG(FFRT_LOG_DEBUG, format, ##__VA_ARGS__) argument 24 #define FFRT_LOGD(format, ...) argument 28 #define FFRT_LOGI(format, ...) FFRT_LOG(FFRT_LOG_INFO, format, ##__VA_ARGS__) argument 30 #define FFRT_LOGI(format, ...) argument 34 #define FFRT_LOGW(format, ...) FFRT_LOG(FFRT_LOG_WARN, format, ##__VA_ARGS__) argument 36 #define FFRT_LOGW(format, ...) argument 39 #define FFRT_LOGE(format, ...) FFRT_LOG(FFRT_LOG_ERROR, format, ##__VA_ARGS__) argument 41 #define FFRT_COND_DO_ERR(cond, expr, format, ...) \ argument 43 FFRT_LOGE(format, ##__VA_ARGS__); \
|
/foundation/multimedia/av_codec/test/unittest/audio_test/ |
D | audio_encoder_capi_unit_test.cpp | 94 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument 97 (void)format; in OnOutputFormatChanged() 151 OH_AVFormat *format; member in OHOS::MediaAVCodec::AudioCodeCapiEncoderUnitTest 282 format = OH_AVFormat_Create(); in ProceFunc() 307 … OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), CHANNEL_COUNT); 308 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), SAMPLE_RATE); 309 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), BITS_RATE); 310 …OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE.data(), BITS_PER… 311 …OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), SAMPLE_FOR… 312 …OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_LAYOUT.data(), CHANNEL_LAYOUT… [all …]
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
D | ace_trace.cpp | 29 bool AceTraceBeginWithArgv(const char* format, va_list args) in AceTraceBeginWithArgv() argument 32 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceTraceBeginWithArgv() 39 bool AceTraceBeginWithArgs(const char* format, ...) in AceTraceBeginWithArgs() argument 42 va_start(args, format); in AceTraceBeginWithArgs() 43 bool retVal = AceTraceBeginWithArgv(format, args); in AceTraceBeginWithArgs() 48 void AceCountTraceWidthArgs(int32_t count, const char* format, ...) in AceCountTraceWidthArgs() argument 52 va_start(args, format); in AceCountTraceWidthArgs() 53 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceCountTraceWidthArgs() 60 AceScopedTrace::AceScopedTrace(const char* format, ...) : traceEnabled_(AceTraceEnabled()) in AceScopedTrace() argument 64 va_start(args, format); in AceScopedTrace() [all …]
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
D | hencoder_unit_test.cpp | 35 void HEncoderCallback::OnOutputFormatChanged(const Format &format) in OnOutputFormatChanged() argument 204 Format format; variable 205 format.PutStringValue(MediaDescriptionKey::MD_KEY_CODEC_MIME, CodecMimeType::VIDEO_AVC); 206 format.PutIntValue(MediaDescriptionKey::MD_KEY_WIDTH, 1024); // 1024 width of the video 207 format.PutIntValue(MediaDescriptionKey::MD_KEY_HEIGHT, 768); // 768 hight of the video 208 format.PutIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, RGBA); 209 format.PutDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, 30.0); // 30.0 frame rate 210 format.PutIntValue(MediaDescriptionKey::MD_KEY_VIDEO_ENCODE_BITRATE_MODE, VBR); 211 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 3000000); // 3000000 bit rate 212 … format.PutIntValue(MediaDescriptionKey::MD_KEY_I_FRAME_INTERVAL, 10.0); // 10.0 I-Frame interval [all …]
|
/foundation/multimedia/av_codec/services/engine/codeclist/ |
D | codeclist_core.cpp | 39 bool CodecListCore::CheckBitrate(const Format &format, const CapabilityData &data) in CheckBitrate() argument 42 if (!format.ContainKey("bitrate")) { in CheckBitrate() 46 (void)format.GetIntValue("bitrate", targetBitrate); in CheckBitrate() 53 bool CodecListCore::CheckVideoResolution(const Format &format, const CapabilityData &data) in CheckVideoResolution() argument 57 if ((!format.ContainKey("width")) || (!format.ContainKey("height"))) { in CheckVideoResolution() 61 (void)format.GetIntValue("width", targetWidth); in CheckVideoResolution() 62 (void)format.GetIntValue("height", targetHeight); in CheckVideoResolution() 70 bool CodecListCore::CheckVideoPixelFormat(const Format &format, const CapabilityData &data) in CheckVideoPixelFormat() argument 73 if (!format.ContainKey("pixel_format")) { in CheckVideoPixelFormat() 77 (void)format.GetIntValue("pixel_format", targetPixelFormat); in CheckVideoPixelFormat() [all …]
|
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/ |
D | func_test.cpp | 188 OH_AVFormat *format = OH_AVFormat_Create(); variable 189 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_RANGE_FLAG, 1)); 190 …ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_COLOR_PRIMARIES, OH_ColorPrimary::COLOR_… 191 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_TRANSFER_CHARACTERISTICS, 193 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_MATRIX_COEFFICIENTS, 195 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH); 196 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); 197 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_YUVI420); 198 ASSERT_EQ(AV_ERR_OK, OH_VideoEncoder_Configure(venc_, format)); 199 OH_AVFormat_Destroy(format); [all …]
|
/foundation/ability/idl_tool/util/ |
D | logger.cpp | 24 void Logger::D(const char* tag, const char* format, ...) in D() argument 29 va_start(args, format); in D() 30 Log(tag, format, args); in D() 34 void Logger::E(const char* tag, const char* format, ...) in E() argument 39 va_start(args, format); in E() 40 Err(tag, format, args); in E() 44 void Logger::V(const char* tag, const char* format, ...) in V() argument 49 va_start(args, format); in V() 50 Log(tag, format, args); in V() 54 void Logger::Log(const char* tag, const char* format, va_list args) in Log() argument [all …]
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
D | nstackx_log.h | 46 NSTACKX_EXPORT void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...); 49 typedef void (*LogImplInternal)(const char *tag, uint32_t level, const char *format, va_list args); 54 typedef void (*NstakcxLogCallback)(const char *moduleName, uint32_t logLevel, const char *format, .… 60 #define NSTACKX_LOG_COMMON(moduleName, logLevel, moduleDebugLevel, format, ...) \ argument 63 g_nstackxLogCallBack(moduleName, logLevel, "%s:[%d] :" format "\n", \ 68 #define LOGF(moduleName, format, ...) \ argument 69 NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_FATAL, GetLogLevel(), format, ##__VA_ARGS__) 70 #define LOGE(moduleName, format, ...) \ argument 71 NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_ERROR, GetLogLevel(), format, ##__VA_ARGS__) 72 #define LOGW(moduleName, format, ...) \ argument [all …]
|
/foundation/resourceschedule/ffrt/src/dfx/log/hmos/ |
D | log_base.cpp | 35 std::string format(fmt); in PrintLogString() local 36 StringReplace(format, "%{public}", "%"); in PrintLogString() 37 if (vsnprintf_s(buf, sizeof(buf), sizeof(buf) - 1, format.c_str(), arg) > 0) { in PrintLogString() 42 void LogErr(const char* format, ...) in LogErr() argument 45 va_start(args, format); in LogErr() 46 PrintLogString(LOG_ERROR, format, args); in LogErr() 50 void LogWarn(const char* format, ...) in LogWarn() argument 53 va_start(args, format); in LogWarn() 54 PrintLogString(LOG_WARN, format, args); in LogWarn() 58 void LogInfo(const char* format, ...) in LogInfo() argument [all …]
|