Home
last modified time | relevance | path

Searched refs:AVFormatCapiMock (Results 1 – 12 of 12) sorted by relevance

/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/
Davformat_capi_mock.cpp21 AVFormatCapiMock::AVFormatCapiMock() : format_(nullptr) {} in AVFormatCapiMock() function in OHOS::MediaAVCodec::AVFormatCapiMock
23 AVFormatCapiMock::~AVFormatCapiMock() in ~AVFormatCapiMock()
28 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue()
36 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue()
44 bool AVFormatCapiMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue()
52 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue()
64 void AVFormatCapiMock::Destroy() in Destroy()
72 OH_AVFormat *AVFormatCapiMock::GetFormat() in GetFormat()
77 void AVFormatCapiMock::InitTrackFormat() in InitTrackFormat()
83 void AVFormatCapiMock::InitAudioTrackFormat(const std::string_view &mimeType, int32_t sampleRate, i… in InitAudioTrackFormat()
[all …]
Davformat_capi_mock.h24 class AVFormatCapiMock : public FormatMock {
26 explicit AVFormatCapiMock(OH_AVFormat *format) : format_(format) {} in AVFormatCapiMock() function
27 AVFormatCapiMock();
28 ~AVFormatCapiMock();
Davformat_capi_mock_factory.cpp22 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateFormat()
30 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateAudioFormat()
38 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateVideoFormat()
/foundation/multimedia/media_foundation/tests/unittest/format/capi/
Davformat_capi_mock.cpp21 AVFormatCapiMock::AVFormatCapiMock() : format_(nullptr) {} in AVFormatCapiMock() function in OHOS::Media::AVFormatCapiMock
23 AVFormatCapiMock::~AVFormatCapiMock() {} in ~AVFormatCapiMock()
25 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue()
33 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue()
41 bool AVFormatCapiMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue()
49 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue()
61 void AVFormatCapiMock::Destroy() in Destroy()
69 OH_AVFormat *AVFormatCapiMock::GetFormat() in GetFormat()
74 void AVFormatCapiMock::InitTrackFormat() in InitTrackFormat()
80 void AVFormatCapiMock::InitAudioTrackFormat(const std::string_view &mimeType, int32_t sampleRate, i… in InitAudioTrackFormat()
[all …]
Davformat_capi_mock_factory.cpp22 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateFormat()
30 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateAudioFormat()
38 std::shared_ptr<FormatMock> format = std::make_shared<AVFormatCapiMock>(); in CreateVideoFormat()
Davformat_capi_mock.h24 class AVFormatCapiMock : public FormatMock {
26 explicit AVFormatCapiMock(OH_AVFormat *format) : format_(format) {} in AVFormatCapiMock() function
27 AVFormatCapiMock();
28 ~AVFormatCapiMock();
/foundation/multimedia/av_codec/test/unittest/avsource_test/capi/
Davsource_capi_mock.cpp37 return std::make_shared<AVFormatCapiMock>(format); in GetSourceFormat()
49 return std::make_shared<AVFormatCapiMock>(format); in GetTrackFormat()
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/func_sample/mock/capi/
Dvideoenc_capi_mock.cpp45 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChanged()
85 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChangedExt()
115 auto formatMock = std::make_shared<AVFormatCapiMock>(parameter); in OnNeedInputParameter()
217 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in Configure()
269 return std::make_shared<AVFormatCapiMock>(format); in GetOutputDescription()
275 return std::make_shared<AVFormatCapiMock>(format); in GetInputDescription()
280 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in SetParameter()
Dvideodec_capi_mock.cpp42 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChanged()
82 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in OnStreamChangedExt()
185 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in Configure()
229 return std::make_shared<AVFormatCapiMock>(format); in GetOutputDescription()
234 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(format); in SetParameter()
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avbuffer/capi/
Davbuffer_capi_mock.cpp57 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in GetParameter()
64 …return OH_AVBuffer_SetParameter(buffer_, std::static_pointer_cast<AVFormatCapiMock>(format)->GetFo… in SetParameter()
/foundation/multimedia/media_foundation/tests/unittest/avbuffer/capi/
Davbuffer_capi_mock.cpp57 auto formatMock = std::make_shared<AVFormatCapiMock>(format); in GetParameter()
65 …return OH_AVBuffer_SetParameter(buffer_, std::static_pointer_cast<AVFormatCapiMock>(format)->GetFo… in SetParameter()
/foundation/multimedia/av_codec/test/unittest/avmuxer_test/capi/
Davmuxer_capi_mock.cpp43 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(trackFormat); in AddTrack()