/test/xts/acts/multimedia/avsource/entry/src/main/cpp/ |
H A D | audiodecoderxdlndk.cpp | 104 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 107 (void)format;
in OnStreamChanged() 146 OH_AVFormat *format = nullptr;
in AudioDecoderConfigure() local 147 format = OH_AVFormat_Create();
in AudioDecoderConfigure() 148 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE);
in AudioDecoderConfigure() 149 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE);
in AudioDecoderConfigure() 150 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT);
in AudioDecoderConfigure() 151 OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, DEFAULT_MAX_INPUT_SIZE);
in AudioDecoderConfigure() 152 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE);
in AudioDecoderConfigure() 154 return TestInitAVErrCode(env, OH_AudioDecoder_Configure(audioDec, format));
in AudioDecoderConfigure() 159 OH_AVFormat *format = nullptr; AudioDecoderPrepare() local 176 OH_AVFormat *format = nullptr; AudioDecoderStart() local 199 OH_AVFormat *format = nullptr; AudioDecoderStop() local 224 OH_AVFormat *format = nullptr; AudioDecoderFlush() local 250 OH_AVFormat *format = nullptr; AudioDecoderReset() local 276 OH_AVFormat *format = nullptr; AudioDecoderGetOutputDescription() local 303 OH_AVFormat *format = nullptr; AudioDecoderSetParameter() local 333 OH_AVFormat *format = nullptr; AudioDecoderIsValid() local 401 OH_AVFormat *format = nullptr; OHAudioDecoderStartAnormal() local 424 OH_AVFormat *format = nullptr; OHAudioDecoderStartBnormal() local 447 OH_AVFormat *format = nullptr; OHAudioDecoderStartCnormal() local 467 OH_AVFormat *format = nullptr; OHAudioDecoderStopAnormal() local 492 OH_AVFormat *format = nullptr; OHAudioDecoderStopBnormal() local 517 OH_AVFormat *format = nullptr; OHAudioDecoderStopCnormal() local 539 OH_AVFormat *format = nullptr; OHAudioDecoderFlushAnormal() local 565 OH_AVFormat *format = nullptr; OHAudioDecoderFlushBnormal() local 591 OH_AVFormat *format = nullptr; OHAudioDecoderFlushCnormal() local 614 OH_AVFormat *format = nullptr; OHAudioDecoderResetAnormal() local 640 OH_AVFormat *format = nullptr; OHAudioDecoderResetBnormal() local 666 OH_AVFormat *format = nullptr; OHAudioDecoderResetCnormal() local 689 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionAnormal() local 716 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionBnormal() local 743 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionCnormal() local 767 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterAnormal() local 796 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterBnormal() local 825 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterCnormal() local 852 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidAnormal() local 882 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidBnormal() local 912 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidCnormal() local [all...] |
H A D | audioDecoderAvBuffer.cpp | 104 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument 107 (void)format; in OnStreamChanged() 145 OH_AVFormat *format = nullptr; in AudioDecoderConfigure() local 146 format = OH_AVFormat_Create(); in AudioDecoderConfigure() 147 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE); in AudioDecoderConfigure() 148 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in AudioDecoderConfigure() 149 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT); in AudioDecoderConfigure() 150 OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, DEFAULT_MAX_INPUT_SIZE); in AudioDecoderConfigure() 151 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE); in AudioDecoderConfigure() 153 return TestInitAVErrCode(env, OH_AudioCodec_Configure(audioDec, format)); in AudioDecoderConfigure() 158 OH_AVFormat *format = nullptr; AudioDecoderPrepare() local 175 OH_AVFormat *format = nullptr; AudioDecoderStart() local 198 OH_AVFormat *format = nullptr; AudioDecoderStop() local 223 OH_AVFormat *format = nullptr; AudioDecoderFlush() local 249 OH_AVFormat *format = nullptr; AudioDecoderReset() local 275 OH_AVFormat *format = nullptr; AudioDecoderGetOutputDescription() local 302 OH_AVFormat *format = nullptr; AudioDecoderSetParameter() local 332 OH_AVFormat *format = nullptr; AudioDecoderIsValid() local 400 OH_AVFormat *format = nullptr; OHAudioDecoderStartAnormal() local 423 OH_AVFormat *format = nullptr; OHAudioDecoderStartBnormal() local 446 OH_AVFormat *format = nullptr; OHAudioDecoderStartCnormal() local 466 OH_AVFormat *format = nullptr; OHAudioDecoderStopAnormal() local 491 OH_AVFormat *format = nullptr; OHAudioDecoderStopBnormal() local 516 OH_AVFormat *format = nullptr; OHAudioDecoderStopCnormal() local 538 OH_AVFormat *format = nullptr; OHAudioDecoderFlushAnormal() local 564 OH_AVFormat *format = nullptr; OHAudioDecoderFlushBnormal() local 590 OH_AVFormat *format = nullptr; OHAudioDecoderFlushCnormal() local 613 OH_AVFormat *format = nullptr; OHAudioDecoderResetAnormal() local 639 OH_AVFormat *format = nullptr; OHAudioDecoderResetBnormal() local 665 OH_AVFormat *format = nullptr; OHAudioDecoderResetCnormal() local 688 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionAnormal() local 715 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionBnormal() local 742 OH_AVFormat *format = nullptr; OHAudioDecoderGetOutputDescriptionCnormal() local 766 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterAnormal() local 795 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterBnormal() local 824 OH_AVFormat *format = nullptr; OHAudioDecoderSetParameterCnormal() local 851 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidAnormal() local 881 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidBnormal() local 911 OH_AVFormat *format = nullptr; OHAudioDecoderIsValidCnormal() local 939 OH_AVFormat *format = nullptr; OHAudioDecoderPushInputBuffer() local 972 OH_AVFormat *format = nullptr; OHAudioDecoderFreeOutputBuffer() local 1056 OH_AVFormat *format = nullptr; OHAudioDecoderViVid() local [all...] |
H A D | audioEncoderAvBuffer.cpp | 111 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnStreamChanged() argument 114 (void)format; in OnStreamChanged() 159 OH_AVFormat *format = nullptr; in AudioEncoderConfigure() local 160 format = OH_AVFormat_Create(); in AudioEncoderConfigure() 161 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT); in AudioEncoderConfigure() 162 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE); in AudioEncoderConfigure() 163 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in AudioEncoderConfigure() 164 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, BITS_PER_CODED_SAMPLE); in AudioEncoderConfigure() 165 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, SAMPLE_FORMAT); in AudioEncoderConfigure() 166 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOU in AudioEncoderConfigure() 183 OH_AVFormat *format = nullptr; AudioEncoderPrepare() local 207 OH_AVFormat *format = nullptr; AudioEncoderStart() local 232 OH_AVFormat *format = nullptr; AudioEncoderStop() local 259 OH_AVFormat *format = nullptr; AudioEncoderFlush() local 287 OH_AVFormat *format = nullptr; AudioEncoderReset() local 314 OH_AVFormat *format = nullptr; AudioEncoderGetOutputDescription() local 342 OH_AVFormat *format = nullptr; AudioEncoderSetParameter() local 375 OH_AVFormat *format = nullptr; AudioEncoderIsValid() local [all...] |
H A D | audioencoderxdlndk.cpp | 109 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 112 (void)format;
in OnStreamChanged() 161 OH_AVFormat *format = nullptr;
in AudioEncoderConfigure() local 162 format = OH_AVFormat_Create();
in AudioEncoderConfigure() 163 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT);
in AudioEncoderConfigure() 164 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE);
in AudioEncoderConfigure() 165 OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE);
in AudioEncoderConfigure() 166 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITS_PER_CODED_SAMPLE, BITS_PER_CODED_SAMPLE);
in AudioEncoderConfigure() 167 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, SAMPLE_FORMAT);
in AudioEncoderConfigure() 168 OH_AVFormat_SetLongValue(format, OH_MD_KEY_CHANNEL_LAYOU in AudioEncoderConfigure() 185 OH_AVFormat *format = nullptr; AudioEncoderPrepare() local 209 OH_AVFormat *format = nullptr; AudioEncoderStart() local 234 OH_AVFormat *format = nullptr; AudioEncoderStop() local 261 OH_AVFormat *format = nullptr; AudioEncoderFlush() local 289 OH_AVFormat *format = nullptr; AudioEncoderReset() local 316 OH_AVFormat *format = nullptr; AudioEncoderGetOutputDescription() local 344 OH_AVFormat *format = nullptr; AudioEncoderSetParameter() local 376 OH_AVFormat *format = nullptr; AudioEncoderIsValid() local [all...] |
H A D | videoencoderndk.cpp | 188 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 191 (void)format;
in OnStreamChanged() 324 OH_AVFormat *format = nullptr;
in OHVideoEncoderConfigure() local 325 format = OH_AVFormat_Create();
in OHVideoEncoderConfigure() 326 OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH);
in OHVideoEncoderConfigure() 327 OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT);
in OHVideoEncoderConfigure() 328 OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, DEFAULT_PIXELFORMAT);
in OHVideoEncoderConfigure() 330 checkParam = OH_VideoEncoder_Configure(videoEnc, format);
in OHVideoEncoderConfigure() 345 OH_AVFormat *format = nullptr;
in OHVideoEncoderConfigureHEVC() local 346 format in OHVideoEncoderConfigureHEVC() 366 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal1() local 387 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal2() local 408 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal3() local 429 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal4() local 450 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal5() local 471 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal6() local 492 OH_AVFormat *format = nullptr; OHVideoEncoderConfigureAbnormal7() local 513 OH_AVFormat *format = nullptr; OHVideoEncoderPrepare() local 535 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareHEVC() local 557 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal1() local 579 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal2() local 601 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal3() local 623 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal4() local 645 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal5() local 667 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal6() local 689 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal7() local 711 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal8() local 733 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal9() local 755 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal10() local 777 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal11() local 799 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal12() local 821 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal13() local 843 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal14() local 865 OH_AVFormat *format = nullptr; OHVideoEncoderPrepareAbnormal15() local 904 OH_AVFormat *format = nullptr; OHVideoEncoderStart() local 981 OH_AVFormat *format = nullptr; OHVideoEncoderStop() local 1063 OH_AVFormat *format = nullptr; OHVideoEncoderFlush() local 1146 OH_AVFormat *format = nullptr; OHVideoEncoderReset() local 1227 OH_AVFormat *format = nullptr; OHVideoEncoderGetOutputDescription() local 1289 OH_AVFormat *format = nullptr; OHVideoEncoderSetParameter() local 1315 OH_AVFormat *format = nullptr; OHVideoEncoderSetParameterHEVC() local 1341 OH_AVFormat *format = nullptr; OHVideoEncoderSetParameterAbnormal() local [all...] |
H A D | videodecoderndk.cpp | 111 static void OnStreamChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData)
in OnStreamChanged() argument 114 (void)format;
in OnStreamChanged() 179 OH_AVFormat *format = nullptr;
in OHVideoDecoderConfigure() local 180 format = OH_AVFormat_Create();
in OHVideoDecoderConfigure() 181 OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH);
in OHVideoDecoderConfigure() 182 OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT);
in OHVideoDecoderConfigure() 183 OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, DEFAULT_PIXELFORMAT);
in OHVideoDecoderConfigure() 185 checkParam = OH_VideoDecoder_Configure(videoDec, format);
in OHVideoDecoderConfigure() 188 OH_AVFormat_Destroy(format);
in OHVideoDecoderConfigure() 201 OH_AVFormat *format in OHVideoDecoderPrepare() local 241 OH_AVFormat *format = nullptr; OHVideoDecoderStart() local 318 OH_AVFormat *format = nullptr; OHVideoDecoderStop() local 401 OH_AVFormat *format = nullptr; OHVideoDecoderFlush() local 466 OH_AVFormat *format = nullptr; OHVideoDecoderReset() local 492 OH_AVFormat *format = nullptr; OHVideoDecoderGetOutputDescription() local 519 OH_AVFormat *format = nullptr; OHVideoDecoderSetParameter() local 548 OH_AVFormat *format = nullptr; OHVideoDecoderPushInputData() local [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_fourcc.c | 4 * DRM core format related functions 43 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 106 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 139 * drm_get_format_name - fill a string with a drm fourcc format's name 140 * @format: format to compute name of 143 const char *drm_get_format_name(uint32_t format, struct drm_format_name_buf *buf) in drm_get_format_name() argument 146 ret = snprintf(buf->str, sizeof(buf->str), "%c%c%c%c %s-endian (0x%08x)", printable_char(format & 0xff), in drm_get_format_name() 147 printable_char((format >> 0x8) & 0xff), printable_char((format >> in drm_get_format_name() 158 __drm_format_info(u32 format) __drm_format_info() argument 762 drm_format_info(u32 format) drm_format_info() argument [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/encoder/src/ |
H A D | api_test.cpp | 37 OH_AVFormat *format; member 106 if (format != nullptr) { in TearDown() 107 OH_AVFormat_Destroy(format); in TearDown() 108 format = nullptr; in TearDown() 253 format = OH_AVFormat_Create(); in HWTEST_F() 254 ASSERT_NE(nullptr, format); in HWTEST_F() 255 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, 100000); in HWTEST_F() 256 ret = OH_VideoEncoder_Configure(venc_, format); in HWTEST_F() 315 format = OH_VideoEncoder_GetOutputDescription(nullptr); in HWTEST_F() 316 ASSERT_EQ(format, nullpt in HWTEST_F() [all...] |
H A D | videoenc_api11_sample.cpp | 62 static void VencFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VencFormatChanged() argument 126 OH_AVFormat *format = OH_AVBuffer_GetParameter(buffer); in DumpLtrInfo() local 129 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_PER_FRAME_IS_LTR, &isLtr); in DumpLtrInfo() 130 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_PER_FRAME_POC, &framePoc); in DumpLtrInfo() 153 OH_AVFormat *format = OH_AVFormat_Create(); in ConfigureVideoEncoder() local 154 if (format == nullptr) { in ConfigureVideoEncoder() 155 cout << "Fatal: Failed to create format" << endl; in ConfigureVideoEncoder() 158 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH); in ConfigureVideoEncoder() 159 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); in ConfigureVideoEncoder() 160 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMA in ConfigureVideoEncoder() 179 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_Temporal() local 213 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_fuzz() local 309 OH_AVFormat *format = OH_AVFormat_Create(); testApi() local 345 OH_AVFormat *format = OH_VideoEncoder_GetInputDescription(venc_); GetStride() local 598 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local 616 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local 654 OH_AVFormat *format = OH_AVFormat_Create(); SetForceIDR() local 665 OH_AVFormat *format = OH_AVFormat_Create(); SetLTRParameter() local 688 OH_AVFormat *format = OH_AVFormat_Create(); SetBufferParameter() local 698 OH_AVFormat *format = OH_AVFormat_Create(); SetBufferParameter() local 958 SetParameter(OH_AVFormat *format) SetParameter() argument [all...] |
H A D | func_test.cpp | 36 OH_AVFormat *format; member 85 if (format != nullptr) { in TearDown() 86 OH_AVFormat_Destroy(format); in TearDown() 87 format = nullptr; in TearDown() 188 * @tc.name : set color format 195 format = OH_AVFormat_Create(); in HWTEST_F() 196 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_RANGE_FLAG, 1)); in HWTEST_F() 197 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_COLOR_PRIMARIES, OH_ColorPrimary::COLOR_PRIMARY_BT709)); in HWTEST_F() 198 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_TRANSFER_CHARACTERISTICS, in HWTEST_F() 200 ASSERT_EQ(true, OH_AVFormat_SetIntValue(format, OH_MD_KEY_MATRIX_COEFFICIENT in HWTEST_F() [all...] |
H A D | videoenc_ndk_sample.cpp | 67 static void VencFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in VencFormatChanged() argument 134 OH_AVFormat *format = OH_AVFormat_Create(); in ConfigureVideoEncoder() local 135 if (format == nullptr) { in ConfigureVideoEncoder() 136 cout << "Fatal: Failed to create format" << endl; in ConfigureVideoEncoder() 139 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_WIDTH, DEFAULT_WIDTH); in ConfigureVideoEncoder() 140 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_HEIGHT, DEFAULT_HEIGHT); in ConfigureVideoEncoder() 141 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_PIXEL_FORMAT, DEFAULT_PIX_FMT); in ConfigureVideoEncoder() 142 (void)OH_AVFormat_SetDoubleValue(format, OH_MD_KEY_FRAME_RATE, DEFAULT_FRAME_RATE); in ConfigureVideoEncoder() 143 (void)OH_AVFormat_SetLongValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE); in ConfigureVideoEncoder() 144 (void)OH_AVFormat_SetIntValue(format, OH_MD_KEY_I_FRAME_INTERVA in ConfigureVideoEncoder() 156 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_Temporal() local 187 OH_AVFormat *format = OH_AVFormat_Create(); ConfigureVideoEncoder_fuzz() local 275 OH_AVFormat *format = OH_AVFormat_Create(); testApi() local 311 OH_AVFormat *format = OH_VideoEncoder_GetInputDescription(venc_); GetStride() local 576 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local 592 OH_AVFormat *format = OH_AVFormat_Create(); AutoSwitchParam() local 625 OH_AVFormat *format = OH_AVFormat_Create(); SetForceIDR() local 916 SetParameter(OH_AVFormat *format) SetParameter() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/video/rockchip/rga2/ |
H A D | RGA2_API.c | 7 #define IS_YUV_420(format) \ 8 (((format) == RK_FORMAT_YCbCr_420_P) | ((format) == RK_FORMAT_YCbCr_420_SP) | \ 9 ((format) == RK_FORMAT_YCrCb_420_P) | ((format) == RK_FORMAT_YCrCb_420_SP)) 11 #define IS_YUV_422(format) \ 12 (((format) == RK_FORMAT_YCbCr_422_P) | ((format) == RK_FORMAT_YCbCr_422_SP) | \ 13 ((format) == RK_FORMAT_YCrCb_422_P) | ((format) [all...] |
H A D | RGA2_API.h | 20 #define DBG(format, args...) printk(KERN_DEBUG "%s: " format, DRIVER_NAME, ##args)
21 #define ERR(format, args...) printk(KERN_ERR "%s: " format, DRIVER_NAME, ##args)
22 #define WARNING(format, args...) printk(KERN_WARN "%s: " format, DRIVER_NAME, ##args)
23 #define INFO(format, args...) printk(KERN_INFO "%s: " format, DRIVER_NAME, ##args)
25 #define DBG(format, args...)
26 #define ERR(format, arg [all...] |
/test/xts/acts/multimedia/av_codec/audio_decoder/src/ |
H A D | param_check_test.cpp | 160 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 168 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 172 format = OH_AVFormat_Create(); in HWTEST_F() 176 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 180 format = OH_AVFormat_Create(); in HWTEST_F() 184 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 188 format = OH_AVFormat_Create(); in HWTEST_F() 192 result0 = aDecBufferDemo->Configure(codec, format, channel, sampleRate); in HWTEST_F() 207 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 215 result0 = aDecBufferDemo->Configure(codec, format, channe in HWTEST_F() 334 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 381 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 484 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 531 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 634 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 673 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 712 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 751 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 790 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 829 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 868 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 903 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local [all...] |
/test/xts/acts/arkui/libuv/ |
H A D | genlocal.py | 69 suiteitemcap = "{}{}".format(suiteitem[:1].upper(), suiteitem[1:]) 72 hapdirpath = "{}{}".format(G_HAPDIRPATH, suiteitem.lower()) 74 run_cmd(r"rm -rf {}".format(hapdirpath)) 75 run_cmd(r"cp {} {} -r".format(G_TMPDIRPATH, hapdirpath)) 77 run_cmd(r"cp {} {} -r".format(G_TMPDIRPATH, hapdirpath)) 79 mustpass = os.path.join(G_MUSTPASSPATH, "{}{}".format(suiteitem, G_MUSTPASSFILE)) 98 casenamecap = "{}{}".format(casename[:1].upper(), casename[1:]) 99 pagenametext = "{}-{}".format(suitename, casenamecap) 100 pagefilename = os.path.join(hapdirpath, G_PATHDIRPATH, "{}.ets".format(suitename)) 107 run_cmd(r"sed -i '{}a {}' {}".format(in [all...] |
/test/xts/acts/multimedia/av_codec/audio_encoder/src/ |
H A D | param_check_test.cpp | 110 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 122 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 127 format = OH_AVFormat_Create(); in HWTEST_F() 131 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 136 format = OH_AVFormat_Create(); in HWTEST_F() 140 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 145 format = OH_AVFormat_Create(); in HWTEST_F() 149 result0 = audioBufferAacEncDemo->Configure(codec, format, channel, sampleRate, bitRate, sampleFormat, sampleBit, in HWTEST_F() 165 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 177 result0 = audioBufferAacEncDemo->Configure(codec, format, channe in HWTEST_F() 247 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 284 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 312 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 367 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 413 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 459 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 514 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 542 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 597 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 649 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 701 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local [all...] |
H A D | avcodec_audio_avbuffer_encoder_demo.cpp | 156 static void OnOutputFormatChanged(OH_AVCodec *codec, OH_AVFormat *format, void *userData) in OnOutputFormatChanged() argument 159 (void)format; in OnOutputFormatChanged() 229 OH_AVFormat *format = OH_AVFormat_Create(); in RunCase() local 234 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), CHANNEL_COUNT); in RunCase() 235 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), SAMPLE_RATE); in RunCase() 236 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT.data(), SAMPLE_FORMAT); in RunCase() 243 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_CHANNEL_COUNT.data(), channels_); in RunCase() 244 OH_AVFormat_SetIntValue(format, MediaDescriptionKey::MD_KEY_SAMPLE_RATE.data(), sampleRate_); in RunCase() 245 OH_AVFormat_SetLongValue(format, MediaDescriptionKey::MD_KEY_BITRATE.data(), bitrate); in RunCase() 246 OH_AVFormat_SetIntValue(format, MediaDescriptionKe in RunCase() 331 Configure(OH_AVFormat *format) Configure() argument 580 Configure(OH_AVCodec *codec, OH_AVFormat *format, int32_t channel, int32_t sampleRate, int64_t bitRate, int32_t sampleFormat, int32_t sampleBit, int32_t complexity) Configure() argument 743 SetParameter(OH_AVCodec *codec, OH_AVFormat *format, int32_t channel, int32_t sampleRate, int64_t bitRate, int32_t sampleFormat, int32_t sampleBit, int32_t complexity) SetParameter() argument [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_Log.h | 59 #define omx_info(format, ...) \ 60 _Rockchip_OSAL_Log(ROCKCHIP_LOG_INFO, OMX_DBG_UNKNOWN, ROCKCHIP_LOG_TAG, format "\n", ##__VA_ARGS__) 61 #define omx_trace(format, ...) \ 62 _Rockchip_OSAL_Log(ROCKCHIP_LOG_TRACE, OMX_DBG_UNKNOWN, ROCKCHIP_LOG_TAG, format "\n", ##__VA_ARGS__) 63 #define omx_err(format, ...) \ 64 _Rockchip_OSAL_Log(ROCKCHIP_LOG_ERROR, OMX_DBG_UNKNOWN, ROCKCHIP_LOG_TAG, format "\n", ##__VA_ARGS__) 65 #define omx_warn(format, ...) \ 66 _Rockchip_OSAL_Log(ROCKCHIP_LOG_WARNING, OMX_DBG_UNKNOWN, ROCKCHIP_LOG_TAG, format "\n", ##__VA_ARGS__) 68 #define omx_info_f(format, ...) \ 70 "%s(%d): " format "\ [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/swdecoder/src/ |
H A D | api_test.cpp | 67 OH_AVFormat *format; member 76 if (format != nullptr) { in TearDown() 77 OH_AVFormat_Destroy(format); in TearDown() 78 format = nullptr; in TearDown() 194 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 195 ASSERT_NE(NULL, format); in HWTEST_F() 196 ASSERT_EQ(AV_ERR_INVALID_VAL, OH_VideoDecoder_Configure(NULL, format)); in HWTEST_F() 206 OH_AVFormat *format = OH_AVFormat_Create(); in HWTEST_F() local 207 ASSERT_NE(NULL, format); in HWTEST_F() 210 (void)OH_AVFormat_SetIntValue(format, widthSt in HWTEST_F() 221 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 313 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 503 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 527 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 552 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 578 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 605 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 638 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 664 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local 722 OH_AVFormat *format = OH_VideoDecoder_GetOutputDescription(vdec_); HWTEST_F() local 738 OH_AVFormat *format = OH_AVFormat_Create(); HWTEST_F() local [all...] |
/test/xts/acts/pcs/pcs_ndk/entry/src/main/cpp/ |
H A D | pcsAudioTest.cpp | 49 OH_AVFormat *format = nullptr;
in AudioDecoderFlushFirst() local 50 format = OH_AVFormat_Create();
in AudioDecoderFlushFirst() 51 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_SAMPLE_RATE, DEFAULT_SAMPLERATE);
in AudioDecoderFlushFirst() 52 OH_AVFormat_SetIntValue(format, OH_MD_KEY_BITRATE, DEFAULT_BITRATE_MIN);
in AudioDecoderFlushFirst() 53 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AUD_CHANNEL_COUNT, DEFAULT_CHANNEL_COUNT_ONE);
in AudioDecoderFlushFirst() 54 OH_AVFormat_SetIntValue(format, OH_MD_KEY_MAX_INPUT_SIZE, DEFAULT_MAX_INPUT_SIZE);
in AudioDecoderFlushFirst() 55 OH_AVFormat_SetIntValue(format, OH_MD_KEY_AAC_IS_ADTS, DEFAULT_AAC_TYPE);
in AudioDecoderFlushFirst() 57 OH_AudioCodec_Configure(audioDec, format);
in AudioDecoderFlushFirst() 75 OH_AVFormat *format = nullptr;
in AudioDecoderFlushSecond() local 76 format in AudioDecoderFlushSecond() [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/component/video/dec/ |
H A D | Rkvpu_OMX_Vdec.c | 156 if ((rockchipOutputPort->portDefinition.format.video.nFrameWidth != in UpdateFrameSize() 157 rockchipInputPort->portDefinition.format.video.nFrameWidth) || in UpdateFrameSize() 158 (rockchipOutputPort->portDefinition.format.video.nFrameHeight != in UpdateFrameSize() 159 rockchipInputPort->portDefinition.format.video.nFrameHeight) || in UpdateFrameSize() 160 (rockchipOutputPort->portDefinition.format.video.nStride != in UpdateFrameSize() 161 rockchipInputPort->portDefinition.format.video.nStride) || in UpdateFrameSize() 162 (rockchipOutputPort->portDefinition.format.video.nSliceHeight != in UpdateFrameSize() 163 rockchipInputPort->portDefinition.format.video.nSliceHeight)) { in UpdateFrameSize() 166 rockchipOutputPort->portDefinition.format.video.nFrameWidth = in UpdateFrameSize() 167 rockchipInputPort->portDefinition.format in UpdateFrameSize() [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/hwdecoder/src/ |
H A D | api_test.cpp | 57 OH_AVFormat *format; member 76 if (format != nullptr) { in TearDown() 77 OH_AVFormat_Destroy(format); in TearDown() 78 format = nullptr; in TearDown() 202 format = OH_AVFormat_Create(); in HWTEST_F() 203 ASSERT_NE(NULL, format); in HWTEST_F() 204 ASSERT_EQ(AV_ERR_INVALID_VAL, OH_VideoDecoder_Configure(NULL, format)); in HWTEST_F() 214 format = OH_AVFormat_Create(); in HWTEST_F() 215 ASSERT_NE(NULL, format); in HWTEST_F() 217 (void)OH_AVFormat_SetIntValue(format, widthSt in HWTEST_F() [all...] |
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
H A D | kit.py | 72 result = " {} class ".format(prefix_char) 74 result = " {} class ".format(prefix_char) 76 result = " {} class ".format(prefix_char) 81 test_item = "{}".format(test) 84 test_item = "{}#{}".format(test_item[1], test_item[2]) 87 raise ParamError(ErrorMessage.Common.Code_0101031.format(prefix_char, para_name)) 89 LOG.debug("There is unsolved prefix char: {} .".format(prefix_char)) 104 path = "/{}/{}/{}".format("data", "local", "ajur") 105 include_file = "{}/{}".format(path, "includes.txt") 106 exclude_file = "{}/{}".format(pat [all...] |
/test/xts/acts/kernel_lite/utils/ |
H A D | log.h | 40 #define LOGD(format, ...) fprintf(stdout, "[%.06f] " format "\n", GetCurTime(), ##__VA_ARGS__) 41 #define LOG(format, ...) fprintf(stdout, "[%.06f] " format "\n", GetCurTime(), ##__VA_ARGS__) 44 #define LOG(format, ...) fprintf(stdout, format "\n", ##__VA_ARGS__) 47 #define LOGE(format, ...) fprintf(stdout, "\n%s:%d: " format "\n", __FILE__, __LINE__, ##__VA_ARGS__) 49 #define PANIC(format, ...) do { \ 50 LOGE(format, ##__VA_ARGS_ [all...] |
/test/xts/hats/kernel/posix_interface/interface_gn/utils/ |
H A D | log.h | 36 #define LOGD(format, ...) fprintf(stdout, "[%.06f] " format "\n", GetCurTime(), ##__VA_ARGS__) 37 #define LOG(format, ...) fprintf(stdout, "[%.06f] " format "\n", GetCurTime(), ##__VA_ARGS__) 40 #define LOG(format, ...) fprintf(stdout, format "\n", ##__VA_ARGS__) 43 #define LOGE(format, ...) fprintf(stdout, "\n%s:%d: " format "\n", __FILE__, __LINE__, ##__VA_ARGS__) 45 #define PANIC(format, ...) do { \ 46 LOGE(format, ##__VA_ARGS_ [all...] |