/foundation/multimedia/player_framework/frameworks/native/capi/player/ |
H A D | native_avplayer.cpp | 562 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnSeekDoneCb() local 563 CHECK_AND_RETURN_LOG(avFormat != nullptr, "OnSeekDoneCb OH_AVFormat create failed"); in OnSeekDoneCb() 564 avFormat->format_.PutIntValue(OH_PLAYER_SEEK_POSITION, currentPositon); in OnSeekDoneCb() 565 infoCallback_->OnInfo(player_, AV_INFO_TYPE_SEEKDONE, reinterpret_cast<OH_AVFormat *>(avFormat.GetRefPtr())); in OnSeekDoneCb() 575 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnSpeedDoneCb() local 576 CHECK_AND_RETURN_LOG(avFormat != nullptr, "OnSpeedDoneCb OH_AVFormat create failed"); in OnSpeedDoneCb() 577 avFormat->format_.PutIntValue(OH_PLAYER_PLAYBACK_SPEED, speedMode); in OnSpeedDoneCb() 578 infoCallback_->OnInfo(player_, AV_INFO_TYPE_SPEEDDONE, reinterpret_cast<OH_AVFormat *>(avFormat.GetRefPtr())); in OnSpeedDoneCb() 588 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnBitRateDoneCb() local 589 CHECK_AND_RETURN_LOG(avFormat ! in OnBitRateDoneCb() 620 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnStateChangeCb() local 642 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnPositionUpdateCb() local 657 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnVolumeChangeCb() local 680 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnStartRenderFrameCb() local 696 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnVideoSizeChangedCb() local 728 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnBufferingUpdateCb() local 754 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnBitRateCollectedCb() local 774 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnAudioInterruptCb() local 790 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnDurationUpdateCb() local 803 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnNotifyIsLiveStream() local 820 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnTrackChangedCb() local 845 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnSubtitleInfoCb() local 863 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); OnAudioDeviceChangeCb() local [all...] |
/foundation/multimedia/av_codec/frameworks/native/capi/avsource/ |
H A D | native_avsource.cpp | 133 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AVSource_GetSourceFormat() local 134 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Format is nullptr"); in OH_AVSource_GetSourceFormat() 135 avFormat->format_ = format; in OH_AVSource_GetSourceFormat() 137 return avFormat; in OH_AVSource_GetSourceFormat() 153 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AVSource_GetTrackFormat() local 154 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Format is nullptr"); in OH_AVSource_GetTrackFormat() 155 avFormat->format_ = format; in OH_AVSource_GetTrackFormat() 157 return avFormat; in OH_AVSource_GetTrackFormat()
|
/foundation/multimedia/media_foundation/src/capi/ |
H A D | native_avbuffer.cpp | 100 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AVBuffer_GetParameter() local 101 if (!avFormat->format_.SetMeta(buffer->buffer_->meta_)) { in OH_AVBuffer_GetParameter() 103 OH_AVFormat_Destroy(avFormat); in OH_AVBuffer_GetParameter() 104 avFormat = nullptr; in OH_AVBuffer_GetParameter() 106 return avFormat; in OH_AVBuffer_GetParameter()
|
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/mock/capi/ |
H A D | videodec_capi_mock.cpp | 186 OH_AVFormat *avFormat = formatMock->GetFormat(); in Configure() local 187 if (avFormat != nullptr) { in Configure() 188 return OH_VideoDecoder_Configure(codec_, avFormat); in Configure()
|
H A D | videoenc_capi_mock.cpp | 218 OH_AVFormat *avFormat = formatMock->GetFormat(); in Configure() local 219 if (avFormat != nullptr) { in Configure() 220 return OH_VideoEncoder_Configure(codec_, avFormat); in Configure() 222 cout << "VideoEncCapiMock::Configure: avFormat is null" << endl; in Configure()
|
/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/ |
H A D | native_video_encoder.cpp | 613 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_VideoEncoder_GetOutputDescription() local 614 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Video encoder get output description failed!"); in OH_VideoEncoder_GetOutputDescription() 615 avFormat->format_ = format; in OH_VideoEncoder_GetOutputDescription() 617 return avFormat; in OH_VideoEncoder_GetOutputDescription() 852 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_VideoEncoder_GetInputDescription() local 853 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Video encoder get input description failed!"); in OH_VideoEncoder_GetInputDescription() 854 avFormat->format_ = format; in OH_VideoEncoder_GetInputDescription() 856 return avFormat; in OH_VideoEncoder_GetInputDescription()
|
H A D | native_audio_encoder.cpp | 408 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AudioEncoder_GetOutputDescription() local 409 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "audioCodec OH_AVFormat_Create failed!"); in OH_AudioEncoder_GetOutputDescription() 410 avFormat->format_ = format; in OH_AudioEncoder_GetOutputDescription() 412 return avFormat; in OH_AudioEncoder_GetOutputDescription()
|
H A D | native_audio_decoder.cpp | 410 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AudioDecoder_GetOutputDescription() local 411 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "audioCodec OH_AVFormat_Create failed!"); in OH_AudioDecoder_GetOutputDescription() 412 avFormat->format_ = format; in OH_AudioDecoder_GetOutputDescription() 414 return avFormat; in OH_AudioDecoder_GetOutputDescription()
|
H A D | native_audio_codec.cpp | 390 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AudioCodec_GetOutputDescription() local 391 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "audioCodec OH_AVFormat_Create failed!"); in OH_AudioCodec_GetOutputDescription() 392 avFormat->format_ = format; in OH_AudioCodec_GetOutputDescription() 394 return avFormat; in OH_AudioCodec_GetOutputDescription()
|
H A D | native_video_decoder.cpp | 594 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_VideoDecoder_GetOutputDescription() local 595 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Video decoder get output description failed!"); in OH_VideoDecoder_GetOutputDescription() 596 avFormat->format_ = format; in OH_VideoDecoder_GetOutputDescription() 598 return avFormat; in OH_VideoDecoder_GetOutputDescription()
|
/foundation/multimedia/av_codec/frameworks/native/capi/common/ |
H A D | native_avcapability.cpp | 545 OH_AVFormat *avFormat = OH_AVFormat_Create(); in OH_AVCapability_GetFeatureProperties() local 546 CHECK_AND_RETURN_RET_LOG(avFormat != nullptr, nullptr, "Get feature properties failed: create OH_AVFormat failed"); in OH_AVCapability_GetFeatureProperties() 547 avFormat->format_ = format; in OH_AVCapability_GetFeatureProperties() 548 return avFormat; in OH_AVCapability_GetFeatureProperties()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | image_format_convert_utils.cpp | 70 auto avFormat = findPixelFormat(format); in CalcRGBStride() local 71 switch (avFormat) { in CalcRGBStride()
|