Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/foundation/multimedia/media_standard/services/engine/gstreamer/avcodeclist/
Davcodeclist_engine_gst_impl.cpp37 bool AVCodecListEngineGstImpl::IsSupportMimeType(const Format &format, const CapabilityData &data) in IsSupportMimeType() argument
40 if (!format.ContainKey("codec_mime")) { in IsSupportMimeType()
44 (void)format.GetStringValue("codec_mime", targetMimeType); in IsSupportMimeType()
51 bool AVCodecListEngineGstImpl::IsSupportBitrate(const Format &format, const CapabilityData &data) in IsSupportBitrate() argument
54 if (!format.ContainKey("bitrate")) { in IsSupportBitrate()
58 (void)format.GetIntValue("bitrate", targetBitrate); in IsSupportBitrate()
65 bool AVCodecListEngineGstImpl::IsSupportSize(const Format &format, const CapabilityData &data) in IsSupportSize() argument
69 if ((!format.ContainKey("width")) || (!format.ContainKey("height"))) { in IsSupportSize()
73 (void)format.GetIntValue("width", targetWidth); in IsSupportSize()
74 (void)format.GetIntValue("height", targetHeight); in IsSupportSize()
[all …]
Davcodeclist_engine_gst_impl.h29 std::string FindVideoDecoder(const Format &format) override;
30 std::string FindVideoEncoder(const Format &format) override;
31 std::string FindAudioDecoder(const Format &format) override;
32 std::string FindAudioEncoder(const Format &format) override;
36 std::string FindTargetCodec(const Format &format,
38 bool IsSupportMimeType(const Format &format, const CapabilityData &data);
39 bool IsSupportBitrate(const Format &format, const CapabilityData &data);
40 bool IsSupportSize(const Format &format, const CapabilityData &data);
41 bool IsSupportPixelFormat(const Format &format, const CapabilityData &data);
42 bool IsSupportFrameRate(const Format &format, const CapabilityData &data);
[all …]
/foundation/graphic/standard/rosen/modules/render_service_base/include/platform/common/
Drs_log.h28 virtual int Output(RSLog::Level level, const char* format, ...);
47 #define ROSEN_LOGI_WITH_TAG(tag, format, ...) \ argument
51 logger.Output(RSLog::Level::LEVEL_INFO, format, ##__VA_ARGS__); \
54 #define ROSEN_LOGD_WITH_TAG(tag, format, ...) \ argument
58 logger.Output(RSLog::Level::LEVEL_DEBUG, format, ##__VA_ARGS__); \
61 #define ROSEN_LOGE_WITH_TAG(tag, format, ...) \ argument
65 logger.Output(RSLog::Level::LEVEL_ERROR, format, ##__VA_ARGS__); \
68 #define ROSEN_LOGW_WITH_TAG(tag, format, ...) \ argument
72 logger.Output(RSLog::Level::LEVEL_WARN, format, ##__VA_ARGS__); \
75 #define ROSEN_LOGF_WITH_TAG(tag, format, ...) \ argument
[all …]
/foundation/communication/dsoftbus/components/nstackx_mini/nstackx_util/interface/
Dnstackx_log.h44 NSTACKX_EXPORT void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...);
47 typedef void (*LogImplInternal)(const char *tag, uint32_t level, const char *format, va_list args);
52 #define NSTACKX_LOG_COMMON(moduleName, logLevel, format, ...) \ argument
55 …PrintfImpl(moduleName, logLevel, "%s:[%d] :" format "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__); \
59 #define LOGF(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_FATAL, forma… argument
60 #define LOGE(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_ERROR, forma… argument
61 #define LOGW(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_WARNING, for… argument
62 #define LOGI(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_INFO, format argument
63 #define LOGD(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_DEBUG, forma… argument
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
Dnstackx_log.h44 NSTACKX_EXPORT void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...);
47 typedef void (*LogImplInternal)(const char *tag, uint32_t level, const char *format, va_list args);
52 #define NSTACKX_LOG_COMMON(moduleName, logLevel, format, ...) \ argument
55 …PrintfImpl(moduleName, logLevel, "%s:[%d] :" format "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__); \
59 #define LOGF(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_FATAL, forma… argument
60 #define LOGE(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_ERROR, forma… argument
61 #define LOGW(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_WARNING, for… argument
62 #define LOGI(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_INFO, format argument
63 #define LOGD(moduleName, format, ...) NSTACKX_LOG_COMMON(moduleName, NSTACKX_LOG_LEVEL_DEBUG, forma… argument
/foundation/multimedia/media_standard/services/engine/gstreamer/plugins/codec/hdi/common/src/
Dgst_hdi_video.c21 GstVideoFormat format; in gst_hdi_video_pixelformt_to_gstvideoformat() local
25 format = GST_VIDEO_FORMAT_NV21; in gst_hdi_video_pixelformt_to_gstvideoformat()
28 format = GST_VIDEO_FORMAT_UNKNOWN; in gst_hdi_video_pixelformt_to_gstvideoformat()
32 return format; in gst_hdi_video_pixelformt_to_gstvideoformat()
43 for (const GList *format = formats; format != NULL; format = format->next) { in gst_hdi_video_set_caps_pixelformat() local
44 if (format->data == NULL) { in gst_hdi_video_set_caps_pixelformat()
47 … GstVideoFormat tmp = gst_hdi_video_pixelformt_to_gstvideoformat(*((PixelFormat*)(format->data))); in gst_hdi_video_set_caps_pixelformat()
/foundation/multimedia/media_standard/services/services/avcodeclist/ipc/
Davcodeclist_service_stub.cpp97 std::string AVCodecListServiceStub::FindVideoDecoder(const Format &format) in FindVideoDecoder() argument
100 return codecListServer_->FindVideoDecoder(format); in FindVideoDecoder()
103 std::string AVCodecListServiceStub::FindVideoEncoder(const Format &format) in FindVideoEncoder() argument
106 return codecListServer_->FindVideoEncoder(format); in FindVideoEncoder()
109 std::string AVCodecListServiceStub::FindAudioDecoder(const Format &format) in FindAudioDecoder() argument
112 return codecListServer_->FindAudioDecoder(format); in FindAudioDecoder()
115 std::string AVCodecListServiceStub::FindAudioEncoder(const Format &format) in FindAudioEncoder() argument
118 return codecListServer_->FindAudioEncoder(format); in FindAudioEncoder()
130 Format format; in FindVideoDecoder() local
131 (void)MediaParcel::Unmarshalling(data, format); in FindVideoDecoder()
[all …]
/foundation/ace/ace_engine/frameworks/base/log/
Dace_trace.cpp29 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 AceScopedTrace::AceScopedTrace(const char* format, ...) : traceEnabled_(AceTraceEnabled()) in AceScopedTrace() argument
52 va_start(args, format); in AceScopedTrace()
53 traceEnabled_ = AceTraceBeginWithArgv(format, args); in AceScopedTrace()
/foundation/windowmanager/utils/src/
Dwm_trace.cpp51 bool WmTraceBeginWithArgv(const char* format, va_list args) in WmTraceBeginWithArgv() argument
54 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in WmTraceBeginWithArgv()
61 bool WmTraceBeginWithArgs(const char* format, ...) in WmTraceBeginWithArgs() argument
65 va_start(args, format); in WmTraceBeginWithArgs()
66 bool retVal = WmTraceBeginWithArgv(format, args); in WmTraceBeginWithArgs()
73 WmScopedTrace::WmScopedTrace(const char* format, ...) : traceEnabled_(WmTraceEnabled()) in WmScopedTrace() argument
77 va_start(args, format); in WmScopedTrace()
78 traceEnabled_ = WmTraceBeginWithArgv(format, args); in WmScopedTrace()
/foundation/resourceschedule/frame_aware_sched/common/src/
Drme_scoped_trace.cpp48 bool RmeTraceBeginWithArgv(const char* format, va_list args) in RmeTraceBeginWithArgv() argument
51 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in RmeTraceBeginWithArgv()
58 bool RmeTraceBeginWithArgs(const char* format, ...) in RmeTraceBeginWithArgs() argument
62 va_start(args, format); in RmeTraceBeginWithArgs()
63 bool retVal = RmeTraceBeginWithArgv(format, args); in RmeTraceBeginWithArgs()
70 RmeScopedTrace::RmeScopedTrace(const char* format, ...) : traceEnabled_(RmeTraceEnable()) in RmeScopedTrace() argument
74 va_start(args, format); in RmeScopedTrace()
75 traceEnabled_ = RmeTraceBeginWithArgv(format, args); in RmeScopedTrace()
/foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/source/
Daudio_utils.cpp23 bool IsAudioCoderFormatSupported(AudioCodecFormat format) in IsAudioCoderFormatSupported() argument
25 if ((format < AAC_LC) || (format > AAC_ELD)) { in IsAudioCoderFormatSupported()
26 HILOGE("[AudioUtils]Invalid format = %d", format); in IsAudioCoderFormatSupported()
32 Profile GetProfileFromAudioCoderFormat(AudioCodecFormat format) in GetProfileFromAudioCoderFormat() argument
34 switch (format) { in GetProfileFromAudioCoderFormat()
46 HILOGW("[AudioUtils]Invalid format = 0x%.8x, replace with default", format); in GetProfileFromAudioCoderFormat()
/foundation/graphic/standard/rosen/modules/2d_graphics/src/engine_adapter/skia_adapter/
Dskia_bitmap.cpp27 static inline SkColorType ConvertToSkColorType(const ColorType& format) in ConvertToSkColorType() argument
29 switch (format) { in ConvertToSkColorType()
47 static inline SkAlphaType ConvertToSkAlphaType(const AlphaType& format) in ConvertToSkAlphaType() argument
49 switch (format) { in ConvertToSkAlphaType()
63 …c inline SkImageInfo MakeSkImageInfo(const int width, const int height, const BitmapFormat& format) in MakeSkImageInfo() argument
66 … width, height, ConvertToSkColorType(format.colorType), ConvertToSkAlphaType(format.alphaType)); in MakeSkImageInfo()
70 void SkiaBitmap::Build(const int width, const int height, const BitmapFormat& format) in Build() argument
72 auto imageInfo = MakeSkImageInfo(width, height, format); in Build()
106 BitmapFormat format = dst.GetFormat(); in CopyPixels() local
109 SkImageInfo imageInfo = MakeSkImageInfo(w, h, format); in CopyPixels()
/foundation/multimedia/media_standard/services/engine/gstreamer/avcodec/format_processor/
Dprocessor_venc_impl.cpp36 int32_t ProcessorVencImpl::ProcessMandatory(const Format &format) in ProcessMandatory() argument
38 CHECK_AND_RETURN_RET(format.GetIntValue("width", width_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
39 CHECK_AND_RETURN_RET(format.GetIntValue("height", height_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
40 … CHECK_AND_RETURN_RET(format.GetIntValue("pixel_format", pixelFormat_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
41 CHECK_AND_RETURN_RET(format.GetIntValue("frame_rate", frameRate_) == true, MSERR_INVALID_VAL); in ProcessMandatory()
50 int32_t ProcessorVencImpl::ProcessOptional(const Format &format) in ProcessOptional() argument
52 if (format.GetValueType(std::string_view("video_encode_bitrate_mode")) == FORMAT_TYPE_INT32) { in ProcessOptional()
53 (void)format.GetIntValue("video_encode_bitrate_mode", bitrateMode_); in ProcessOptional()
56 if (format.GetValueType(std::string_view("codec_profile")) == FORMAT_TYPE_INT32) { in ProcessOptional()
57 (void)format.GetIntValue("codec_profile", profile_); in ProcessOptional()
[all …]
Dprocessor_base.cpp33 int32_t ProcessorBase::DoProcess(const Format &format) in DoProcess() argument
35 CHECK_AND_RETURN_RET(ProcessMandatory(format) == MSERR_OK, MSERR_INVALID_VAL); in DoProcess()
36 CHECK_AND_RETURN_RET(ProcessOptional(format) == MSERR_OK, MSERR_INVALID_VAL); in DoProcess()
37 CHECK_AND_RETURN_RET(ProcessVendor(format) == MSERR_OK, MSERR_INVALID_VAL); in DoProcess()
41 int32_t ProcessorBase::ProcessVendor(const Format &format) in ProcessVendor() argument
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/common/src/
Dlog_print.cpp38 const std::string format = "%{public}s"; in Print() local
42 (void)OHOS::HiviewDFX::HiLog::Debug(label, format.c_str(), msg.c_str()); in Print()
45 (void)OHOS::HiviewDFX::HiLog::Info(label, format.c_str(), msg.c_str()); in Print()
48 (void)OHOS::HiviewDFX::HiLog::Warn(label, format.c_str(), msg.c_str()); in Print()
51 (void)OHOS::HiviewDFX::HiLog::Error(label, format.c_str(), msg.c_str()); in Print()
54 (void)OHOS::HiviewDFX::HiLog::Fatal(label, format.c_str(), msg.c_str()); in Print()
91 …gger::Log(Level level, const std::string &tag, const char *func, int line, const char *format, ...) in Log() argument
93 if (format == nullptr) { in Log()
99 va_start(argList, format); in Log()
103 PreparePrivateLog(format, formatTemp); in Log()
[all …]
/foundation/multimedia/media_standard/services/services/sa_media/ipc/
Dmedia_parcel.cpp25 bool MediaParcel::Marshalling(MessageParcel &parcel, const Format &format) in Marshalling() argument
27 auto dataMap = format.GetFormatMap(); in Marshalling()
61 bool MediaParcel::Unmarshalling(MessageParcel &parcel, Format &format) in Unmarshalling() argument
69 (void)format.PutIntValue(key, parcel.ReadInt32()); in Unmarshalling()
72 (void)format.PutLongValue(key, parcel.ReadInt64()); in Unmarshalling()
75 (void)format.PutFloatValue(key, parcel.ReadFloat()); in Unmarshalling()
78 (void)format.PutDoubleValue(key, parcel.ReadDouble()); in Unmarshalling()
81 (void)format.PutStringValue(key, parcel.ReadString()); in Unmarshalling()
90 (void)format.PutBuffer(key, addr, static_cast<size_t>(addrSize)); in Unmarshalling()
/foundation/multimedia/media_standard/services/services/avcodeclist/server/
Davcodeclist_server.cpp59 std::string AVCodecListServer::FindVideoDecoder(const Format &format) in FindVideoDecoder() argument
65 return codecListEngine_->FindVideoDecoder(format); in FindVideoDecoder()
68 std::string AVCodecListServer::FindVideoEncoder(const Format &format) in FindVideoEncoder() argument
74 return codecListEngine_->FindVideoEncoder(format); in FindVideoEncoder()
76 std::string AVCodecListServer::FindAudioDecoder(const Format &format) in FindAudioDecoder() argument
82 return codecListEngine_->FindAudioDecoder(format); in FindAudioDecoder()
84 std::string AVCodecListServer::FindAudioEncoder(const Format &format) in FindAudioEncoder() argument
90 return codecListEngine_->FindAudioEncoder(format); in FindAudioEncoder()
/foundation/multimedia/media_standard/services/services/avcodeclist/client/
Davcodeclist_client.cpp57 std::string AVCodecListClient::FindVideoDecoder(const Format &format) in FindVideoDecoder() argument
61 return codecListProxy_->FindVideoDecoder(format); in FindVideoDecoder()
64 std::string AVCodecListClient::FindVideoEncoder(const Format &format) in FindVideoEncoder() argument
68 return codecListProxy_->FindVideoEncoder(format); in FindVideoEncoder()
71 std::string AVCodecListClient::FindAudioDecoder(const Format &format) in FindAudioDecoder() argument
75 return codecListProxy_->FindAudioDecoder(format); in FindAudioDecoder()
78 std::string AVCodecListClient::FindAudioEncoder(const Format &format) in FindAudioEncoder() argument
82 return codecListProxy_->FindAudioEncoder(format); in FindAudioEncoder()
/foundation/ace/ace_engine_lite/frameworks/common/log/
Dace_log.h38 #define HILOG_DEBUG(mod, format, ...) argument
41 #define HILOG_ERROR(mod, format, ...) argument
44 #define HILOG_FATAL(mod, format, ...) argument
47 #define HILOG_INFO(mod, format, ...) argument
50 #define HILOG_WARN(mod, format, ...) argument
53 #define HILOG_RACE(mod, format, ...) argument
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
Dsys_log.c18 __attribute__((format(printf, 3, 4)))
19 void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...) in PrintfImpl() argument
23 va_start(args, format); in PrintfImpl()
25 vprintf(format, args); in PrintfImpl()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
Dsys_log.c18 __attribute__((format(printf, 3, 4)))
19 void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...) in PrintfImpl() argument
23 va_start(args, format); in PrintfImpl()
25 vprintf(format, args); in PrintfImpl()
/foundation/communication/dsoftbus/components/nstackx_mini/nstackx_util/platform/liteos/
Dsys_log.c18 __attribute__((format(printf, 3, 4)))
19 void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...) in PrintfImpl() argument
23 va_start(args, format); in PrintfImpl()
25 vprintf(format, args); in PrintfImpl()
/foundation/multimedia/media_standard/interfaces/innerkits/native/media/demo/avcodecvenc/
Davcodec_venc_demo.cpp54 .format = PIXEL_FMT_YCRCB_420_SP,
63 Format format; in RunCase() local
64 format.PutIntValue("width", DEFAULT_WIDTH); in RunCase()
65 format.PutIntValue("height", DEFAULT_HEIGHT); in RunCase()
66 format.PutIntValue("pixel_format", 3); // NV21 in RunCase()
67 format.PutIntValue("frame_rate", DEFAULT_FRAME_RATE); in RunCase()
68 DEMO_CHECK_AND_RETURN_LOG(Configure(format) == MSERR_OK, "Fatal: Configure fail"); in RunCase()
143 int32_t VEncDemo::Configure(const Format &format) in Configure() argument
145 return venc_->Configure(format); in Configure()
163 Format format; in SetParameter() local
[all …]
/foundation/multimedia/media_standard/services/engine/gstreamer/avcodec/src_wrapper/
Dsrc_surface_impl.cpp67 int32_t SrcSurfaceImpl::SetParameter(const Format &format) in SetParameter() argument
70 if (format.GetValueType(std::string_view("suspend_input_surface")) == FORMAT_TYPE_INT32) { in SetParameter()
71 if (format.GetIntValue("suspend_input_surface", value) && (value == 0 || value == 1)) { in SetParameter()
76 if (format.GetValueType(std::string_view("max_encoder_fps")) == FORMAT_TYPE_INT32) { in SetParameter()
77 if (format.GetIntValue("max_encoder_fps", value) && value >= 0) { in SetParameter()
82 if (format.GetValueType(std::string_view("repeat_frame_after")) == FORMAT_TYPE_INT32) { in SetParameter()
83 if (format.GetIntValue("repeat_frame_after", value) && value >= 0) { in SetParameter()
/foundation/ace/ace_engine_lite/frameworks/packages/runtime-core/scripts/
Dconfigs.js24 const format = 'umd'; constant
61 format, property
68 format, property
86 format, property
93 format, property

12345678910>>...22