Home
last modified time | relevance | path

Searched full:format (Results 1 – 25 of 2760) sorted by relevance

12345678910>>...111

/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/
Djson_format_serialization.h25 // clang-format off
26 CORE_JSON_SERIALIZE_ENUM(BASE_NS::Format,
28 { BASE_NS::Format::BASE_FORMAT_UNDEFINED, "undefined" },
29 { BASE_NS::Format::BASE_FORMAT_R4G4_UNORM_PACK8, "r4g4_unorm_pack8" },
30 { BASE_NS::Format::BASE_FORMAT_R4G4B4A4_UNORM_PACK16, "r4g4b4a4_unorm_pack16" },
31 { BASE_NS::Format::BASE_FORMAT_B4G4R4A4_UNORM_PACK16, "b4g4r4a4_unorm_pack16" },
32 { BASE_NS::Format::BASE_FORMAT_R5G6B5_UNORM_PACK16, "r5g6b5_unorm_pack16" },
33 { BASE_NS::Format::BASE_FORMAT_B5G6R5_UNORM_PACK16, "b5g6r5_unorm_pack16" },
34 { BASE_NS::Format::BASE_FORMAT_R5G5B5A1_UNORM_PACK16, "r5g5b5a1_unorm_pack16" },
35 { BASE_NS::Format::BASE_FORMAT_B5G5R5A1_UNORM_PACK16, "b5g5r5a1_unorm_pack16" },
[all …]
/foundation/multimedia/av_codec/test/fuzztest/audiodecodersetparameter_fuzzer/
DaudiodecoderSetParameter_fuzzer.cpp32 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACSetParameterFuzzTest() local
35 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACSetParameterFuzzTest()
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACSetParameterFuzzTest()
37 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACSetParameterFuzzTest()
38 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACSetParameterFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACSetParameterFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACSetParameterFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACSetParameterFuzzTest()
43 OH_AudioCodec_SetParameter(source, format); in AudioAACSetParameterFuzzTest()
47 if (format != nullptr) { in AudioAACSetParameterFuzzTest()
[all …]
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderconfigure_fuzzer/
DaudiodecoderConfigure_fuzzer.cpp35 OH_AVFormat *format = OH_AVFormat_Create(); in AudioAACConfigureFuzzTest() local
36 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, intData); in AudioAACConfigureFuzzTest()
37 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, intData); in AudioAACConfigureFuzzTest()
38 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, longData); in AudioAACConfigureFuzzTest()
39 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, intData); in AudioAACConfigureFuzzTest()
40 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, intData); in AudioAACConfigureFuzzTest()
41 OH_AVFormat_SetIntValue(format, OH_MD_KEY_COMPLIANCE_LEVEL, intData); in AudioAACConfigureFuzzTest()
42 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, 1); //aactest in AudioAACConfigureFuzzTest()
44 OH_AudioCodec_Configure(source, format); in AudioAACConfigureFuzzTest()
48 if (format != nullptr) { in AudioAACConfigureFuzzTest()
[all …]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/
Dgl_util.h294 BASE_NS::Format coreFormat;
295 BASE_NS::Format coreFormatForceSrgb;
296 BASE_NS::Format coreFormatForceLinear;
310 { BASE_NS::Format::BASE_FORMAT_R8_UNORM, BASE_NS::Format::BASE_FORMAT_R8_SRGB,
311 BASE_NS::Format::BASE_FORMAT_R8_UNORM, GL_R8, false, 1, 1, 1, 8 },
312 { BASE_NS::Format::BASE_FORMAT_R8G8_UNORM, BASE_NS::Format::BASE_FORMAT_R8G8_SRGB,
313 BASE_NS::Format::BASE_FORMAT_R8G8_UNORM, GL_RG8, false, 1, 1, 1, 16 },
314 { BASE_NS::Format::BASE_FORMAT_R8G8B8_UNORM, BASE_NS::Format::BASE_FORMAT_R8G8B8_SRGB,
315 BASE_NS::Format::BASE_FORMAT_R8G8B8_UNORM, GL_RGB8, false, 1, 1, 1, 24 },
316 { BASE_NS::Format::BASE_FORMAT_R8G8B8A8_UNORM, BASE_NS::Format::BASE_FORMAT_R8G8B8A8_SRGB,
[all …]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/
DNativeParamCheckTest.cpp91 * @tc.name : OH_AudioEncoder_Configure - format(MD_KEY_BITRATE) check
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);
[all …]
DNativeFunctionTest.cpp107 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 …]
DNativeNullCheckTest.cpp154 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 …]
/foundation/multimedia/media_foundation/src/capi/
Dnative_avformat.cpp44 FALSE_RETURN_V_MSG_E(audioFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateAudioFormat()
55 FALSE_RETURN_V_MSG_E(videoFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateVideoFormat()
62 void OH_AVFormat_Destroy(struct OH_AVFormat *format) in OH_AVFormat_Destroy() argument
64 delete format; in OH_AVFormat_Destroy()
69 FALSE_RETURN_V_MSG_E(to != nullptr, false, "to format is nullptr!"); in OH_AVFormat_Copy()
71 FALSE_RETURN_V_MSG_E(from != nullptr, false, "from format is nullptr!"); in OH_AVFormat_Copy()
78 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue() argument
80 FALSE_RETURN_V_MSG_E(format != nullptr, false, "input format is nullptr!"); in OH_AVFormat_SetIntValue()
81 FALSE_RETURN_V_MSG_E(format->magic_ == MFMagic::MFMAGIC_FORMAT, false, "magic error!"); in OH_AVFormat_SetIntValue()
84 return format->format_.PutIntValue(key, value); in OH_AVFormat_SetIntValue()
[all …]
/foundation/multimedia/av_codec/test/unittest/audio_test/
Daudio_encoder_avbuffer_capi_unit_test.cpp127 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
130 (void)format; in OnOutputFormatChanged()
188 OH_AVFormat *format = nullptr; member in OHOS::MediaAVCodec::AudioEncoderBufferCapiUnitTest
543 format = OH_AVFormat_Create();
544 EXPECT_NE(nullptr, format);
545 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), SAMPLE_RATE);
546 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(),
549 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_MAX_INPUT_SIZE.data(), 0);
550 … OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), CHANNEL_COUNT);
551 …EXPECT_EQ(OH_AVErrCode::AV_ERR_OK, OH_AudioCodec_Configure(audioEnc_, format)); // normal channel …
[all …]
Daudio_encoder_capi_unit_test.cpp130 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument
133 (void)format; in OnOutputFormatChanged()
225 OH_AVFormat *format; member in OHOS::MediaAVCodec::AudioCodeCapiEncoderUnitTest
356 format = OH_AVFormat_Create(); in ProceFunc()
371 format = OH_AVFormat_Create(); in ProceByMimeFunc()
388 format = OH_AVFormat_Create(); in ProceByCapabilityFunc()
492 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT); in HeAACSampleRateTest()
493 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, AudioSampleFormat::SAMPLE_S16LE); in HeAACSampleRateTest()
494 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, BITS_RATE); in HeAACSampleRateTest()
495 OH_AVFormat_SetIntValue(format, OH_MD_KEY_PROFILE, profile); in HeAACSampleRateTest()
[all …]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
DNativeParamCheckTest.cpp115 * @tc.name : OH_AudioDecoder_Configure - format(MD_KEY_BITRATE) check
124 OH_AVFormat *format = OH_AVFormat_Create(); variable
125 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2);
126 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, 44100);
127 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, 169000);
129 OH_AVErrCode ret = decoderDemo->NativeConfigure(handle, format);
133 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, -1);
134 ret = decoderDemo->NativeConfigure(handle, format);
138 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, 1);
139 ret = decoderDemo->NativeConfigure(handle, format);
[all …]
DNativeFunctionTest.cpp177 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local
178 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode()
179 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode()
180 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in runDecode()
182 decoderDemo->NativeRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode()
183 OH_AVFormat_Destroy(format); in runDecode()
185 OH_AVFormat* format = OH_AVFormat_Create(); in runDecode() local
186 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, channelCount); in runDecode()
187 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, sampleRate); in runDecode()
189 decoderDemo->NativeRunCase(inputFile, outputFile, decoderName.c_str(), format); in runDecode()
[all …]
DNativeNullCheckTest.cpp154 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);
171 * @tc.name : OH_AudioDecoder_Configure - format check
199 OH_AVFormat* format = OH_AVFormat_Create(); variable
200 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, 2);
[all …]
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
DInnerFunctionTest.cpp60 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()
64format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F3… in runEncode()
65format.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 …]
DInnerStablityTest.cpp28 #include "meta/format.h"
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);
112format.PutIntValue(MediaDescriptionKey::MD_KEY_BITS_PER_CODED_SAMPLE, AudioSampleFormat::SAMPLE_F3…
113format.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
[all …]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/
DInnerFunctionTest.cpp79 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 …]
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/
Dconfigure_test.cpp26 OH_AVFormat *format; variable
78 if (format != nullptr) { in TearDown()
79 OH_AVFormat_Destroy(format); in TearDown()
80 format = nullptr; in TearDown()
101 format = OH_AVFormat_Create();
102 ASSERT_NE(nullptr, format);
103 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT);
104 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE);
105 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_NV12);
106 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, range.maxVal + 1);
[all …]
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
Dhencoder_unit_test.cpp35 void HEncoderCallback::OnOutputFormatChanged(const Format &format) in OnOutputFormatChanged() argument
257 Format format; variable
258 format.PutStringValue(MediaDescriptionKey::MD_KEY_CODEC_MIME, CodecMimeType::VIDEO_AVC);
259 format.PutIntValue(MediaDescriptionKey::MD_KEY_WIDTH, 1024); // 1024 width of the video
260 format.PutIntValue(MediaDescriptionKey::MD_KEY_HEIGHT, 768); // 768 hight of the video
261format.PutIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat…
262 format.PutDoubleValue(MediaDescriptionKey::MD_KEY_FRAME_RATE, 30.0); // 30.0 frame rate
263 format.PutIntValue(MediaDescriptionKey::MD_KEY_VIDEO_ENCODE_BITRATE_MODE, VBR);
264 format.PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, 3000000); // 3000000 bit rate
265format.PutIntValue(MediaDescriptionKey::MD_KEY_I_FRAME_INTERVAL, 10.0); // 10.0 I-Frame interval
[all …]
/foundation/multimedia/av_codec/services/services/codec/server/
Dcodec_param_checker.cpp84 …::optional<CodecScenario> TemporalScalabilityChecker(CapabilityData &capData, const Format &format,
88 int32_t ResolutionChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
89 int32_t PixelFormatChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
90 int32_t FramerateChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
91 int32_t BitrateAndQualityChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
92 int32_t VideoProfileChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
93 int32_t RotaitonChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
94 int32_t QPChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
95 int32_t IFrameIntervalChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
96 int32_t TemporalGopSizeChecker(CapabilityData &capData, Format &format, CodecScenario scenario);
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Dpixel_format_utils.h43 * @brief Enumerates a pixel format.
46 /** Invalid pixel format */
48 /** RGB565 pixel format */
50 /** ARGB555 pixel format */
52 /** RGB888 pixel format */
54 /** ARGB8888 pixel format */
56 /** YUYV pixel format */
58 /** YVYU pixel format */
60 /** UYVY pixel format */
62 /** VYUY pixel format */
[all …]
/foundation/multimedia/av_codec/services/engine/codeclist/
Dcodeclist_core.cpp40 bool CodecListCore::CheckBitrate(const Format &format, const CapabilityData &data) in CheckBitrate() argument
43 if (!format.ContainKey("bitrate")) { in CheckBitrate()
44 AVCODEC_LOGD("The bitrate of the format are not specified"); in CheckBitrate()
47 (void)format.GetLongValue("bitrate", targetBitrate); in CheckBitrate()
54 bool CodecListCore::CheckVideoResolution(const Format &format, const CapabilityData &data) in CheckVideoResolution() argument
58 if ((!format.ContainKey("width")) || (!format.ContainKey("height"))) { in CheckVideoResolution()
59 AVCODEC_LOGD("The width and height of the format are not specified"); in CheckVideoResolution()
62 (void)format.GetIntValue("width", targetWidth); in CheckVideoResolution()
63 (void)format.GetIntValue("height", targetHeight); in CheckVideoResolution()
71 bool CodecListCore::CheckVideoPixelFormat(const Format &format, const CapabilityData &data) in CheckVideoPixelFormat() argument
[all …]
Dcodeclist_core.h21 #include "meta/format.h"
31 std::string FindEncoder(const Media::Format &format);
32 std::string FindDecoder(const Media::Format &format);
39 bool CheckBitrate(const Media::Format &format, const CapabilityData &data);
40 bool CheckVideoResolution(const Media::Format &format, const CapabilityData &data);
41 bool CheckVideoPixelFormat(const Media::Format &format, const CapabilityData &data);
42 bool CheckVideoFrameRate(const Media::Format &format, const CapabilityData &data);
43 bool CheckAudioChannel(const Media::Format &format, const CapabilityData &data);
44 bool CheckAudioSampleRate(const Media::Format &format, const CapabilityData &data);
45 bool IsVideoCapSupport(const Media::Format &format, const CapabilityData &data);
[all …]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/include/
Dge_log.h33 #define LOGI(format, ...) HILOG_INFO(LOG_CORE, format, ##__VA_ARGS__) argument
34 #define LOGD(format, ...) HILOG_DEBUG(LOG_CORE, format, ##__VA_ARGS__) argument
35 #define LOGE(format, ...) HILOG_ERROR(LOG_CORE, format, ##__VA_ARGS__) argument
36 #define LOGW(format, ...) HILOG_WARN(LOG_CORE, format, ##__VA_ARGS__) argument
37 #define LOGF(format, ...) HILOG_FATAL(LOG_CORE, format, ##__VA_ARGS__) argument
39 #define GE_LOGI(format, ...) HILOG_INFO(LOG_CORE, format, ##__VA_ARGS__) argument
40 #define GE_LOGD(format, ...) HILOG_DEBUG(LOG_CORE, format, ##__VA_ARGS__) argument
41 #define GE_LOGE(format, ...) HILOG_ERROR(LOG_CORE, format, ##__VA_ARGS__) argument
42 #define GE_LOGW(format, ...) HILOG_WARN(LOG_CORE, format, ##__VA_ARGS__) argument
43 #define GE_LOGF(format, ...) HILOG_FATAL(LOG_CORE, format, ##__VA_ARGS__) argument
/foundation/CastEngine/castengine_wifi_display/services/codec/src/
Dcodec_factory.cpp23 std::shared_ptr<AudioEncoder> CodecFactory::CreateAudioEncoder(CodecId format) in CreateAudioEncoder() argument
28 switch (format) { in CreateAudioEncoder()
39 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateAudioEncoder()
46 std::shared_ptr<AudioDecoder> CodecFactory::CreateAudioDecoder(CodecId format) in CreateAudioDecoder() argument
50 switch (format) { in CreateAudioDecoder()
61 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateAudioDecoder()
68 std::shared_ptr<VideoEncoder> CodecFactory::CreateVideoEncoder(CodecId format) in CreateVideoEncoder() argument
72 switch (format) { in CreateVideoEncoder()
74 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateVideoEncoder()
77 SHARING_LOGE("unsupported codec format %{public}d.", (int32_t)format); in CreateVideoEncoder()
[all …]
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/
Dconfigure_test.cpp83 OH_AVFormat *format = OH_AVFormat_Create(); variable
84 ASSERT_NE(NULL, format);
85 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH);
86 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT);
87 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_NV12);
88 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, -1);
89 ASSERT_EQ(AV_ERR_OK, OH_VideoDecoder_Configure(vdec, format));
91 OH_AVFormat_Destroy(format);
103 OH_AVFormat *format = OH_AVFormat_Create(); variable
104 ASSERT_NE(NULL, format);
[all …]

12345678910>>...111