/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/ |
D | NativeAVMuxerParamCheckTest.cpp | 173 OH_AVFormat *trackFormat = OH_AVFormat_Create(); variable 174 OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_AAC); 175 OH_AVFormat_SetLongValue(trackFormat, OH_MD_KEY_BITRATE, AUDIO_BITRATE); 176 OH_AVFormat_SetBuffer(trackFormat, OH_MD_KEY_CODEC_CONFIG, a, CODEC_CONFIG); 177 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, AV_SAMPLE_FMT_S16); 178 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT); 179 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE); 180 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_PROFILE, PROFILE); 184 OH_AVErrCode ret = muxerDemo->NativeAddTrack(handle, &trackId, trackFormat); 187 OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_MPEG); [all …]
|
D | NativeAVMuxerNullCheckTest.cpp | 88 OH_AVFormat* trackFormat = OH_AVFormat_Create(); variable 89 OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_AAC); 90 OH_AVFormat_SetLongValue(trackFormat, OH_MD_KEY_BITRATE, BITRATE); 91 OH_AVFormat_SetBuffer(trackFormat, OH_MD_KEY_CODEC_CONFIG, a, CODEC_CONFIG); 92 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT); 93 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE); 94 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_PROFILE, PROFILE); 96 OH_AVErrCode ret = muxerDemo->NativeAddTrack(nullptr, &trackId, trackFormat); 100 OH_AVFormat_Destroy(trackFormat); 120 OH_AVFormat* trackFormat = OH_AVFormat_Create(); variable [all …]
|
D | NativeAVMuxerFuzzTest.cpp | 129 OH_AVFormat* trackFormat = OH_AVFormat_Create(); variable 143 OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, mimeType[typeIndex].c_str()); 144 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_CHANNEL_COUNT, audioChannels); 145 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_SAMPLE_RATE, audioSampleRate); 148 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_WIDTH, videoWidth); 149 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_HEIGHT, videoHeight); 151 ret = muxerDemo->NativeAddTrack(handle, &trackId, trackFormat); 155 OH_AVFormat_Destroy(trackFormat); 178 OH_AVFormat* trackFormat = OH_AVFormat_Create(); variable 179 OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_AAC); [all …]
|
D | InnerAVMuxerDemo.cpp | 72 Format trackFormat; in AddTrack() local 74 trackFormat.PutStringValue(OH_AV_KEY_MIME, OH_AV_MIME_AUDIO_AAC); in AddTrack() 75 trackFormat.PutLongValue(OH_AV_KEY_BIT_RATE, BIT_RATE); in AddTrack() 76 trackFormat.PutBuffer(OH_AV_KEY_CODEC_CONFIG, a, CODEC_CONFIG); in AddTrack() 77 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_FORMAT, A_SAMPLE_FMT_S16); in AddTrack() 78 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_CHANNELS, AUDIO_CHANNELS); in AddTrack() 79 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_RATE, SAMPLE_RATE); in AddTrack() 80 trackFormat.PutLongValue(OH_AV_KEY_AUDIO_CHANNEL_MASK, A_CH_MASK_STEREO); in AddTrack() 81 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_PER_FRAME, SAMPLE_PER_FRAME); in AddTrack() 82 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_AAC_PROFILE, AAC_PROFILE); in AddTrack() [all …]
|
D | FFmpegAVMuxerDemo.cpp | 80 Format trackFormat; in AddTrack() local 83 trackFormat.PutStringValue(OH_AV_KEY_MIME, OH_AV_MIME_AUDIO_AAC); in AddTrack() 84 trackFormat.PutLongValue(OH_AV_KEY_BIT_RATE, BIT_RATE); in AddTrack() 85 trackFormat.PutBuffer(OH_AV_KEY_CODEC_CONFIG, a, CODEC_CONFIG); in AddTrack() 86 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_FORMAT, A_SAMPLE_FMT_S16); in AddTrack() 87 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_CHANNELS, AUDIO_CHANNELS); in AddTrack() 88 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_RATE, SAMPLE_RATE); in AddTrack() 89 trackFormat.PutLongValue(OH_AV_KEY_AUDIO_CHANNEL_MASK, A_CH_MASK_STEREO); in AddTrack() 90 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_SAMPLE_PER_FRAME, SAMPLE_PER_FRAME); in AddTrack() 91 trackFormat.PutIntValue(OH_AV_KEY_AUDIO_AAC_PROFILE, AAC_PROFILE); in AddTrack() [all …]
|
D | NativeAVMuxerInterfaceDependCheckTest.cpp | 71 OH_AVFormat* trackFormat = OH_AVFormat_Create(); in AddTrack() local 72 … OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_AAC); in AddTrack() 73 OH_AVFormat_SetLongValue(trackFormat, OH_MD_KEY_BITRATE, BITRATE); in AddTrack() 74 OH_AVFormat_SetBuffer(trackFormat, OH_MD_KEY_CODEC_CONFIG, a, CODEC_CONFIG); in AddTrack() 75 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, AV_SAMPLE_FMT_S16); in AddTrack() 76 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT); in AddTrack() 77 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE); in AddTrack() 78 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_PROFILE, PROFILE); in AddTrack() 80 OH_AVErrCode ret = muxerDemo->NativeAddTrack(handle, trackId, trackFormat); in AddTrack() 81 OH_AVFormat_Destroy(trackFormat); in AddTrack()
|
D | NativeAVMuxerStablityTest.cpp | 89 OH_AVFormat* trackFormat = OH_AVFormat_Create(); in AddTrack() local 90 … OH_AVFormat_SetStringValue(trackFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_AUDIO_AAC); in AddTrack() 91 OH_AVFormat_SetLongValue(trackFormat, OH_MD_KEY_BITRATE, AUDIO_BITRATE); in AddTrack() 92 OH_AVFormat_SetBuffer(trackFormat, OH_MD_KEY_CODEC_CONFIG, a, CODEC_CONFIG); in AddTrack() 93 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUDIO_SAMPLE_FORMAT, AV_SAMPLE_FMT_S16); in AddTrack() 94 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_CHANNEL_COUNT, CHANNEL_COUNT_MONO); in AddTrack() 95 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_AUD_SAMPLE_RATE, SAMPLE_RATE_48K); in AddTrack() 96 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_PROFILE, PROFILE); in AddTrack() 99 muxerDemo->NativeAddTrack(handle, &trackId, trackFormat); in AddTrack() 100 OH_AVFormat_Destroy(trackFormat); in AddTrack()
|
/foundation/multimedia/player_framework/frameworks/native/soundpool/ |
D | sound_parser.cpp | 69 int32_t SoundParser::DoDemuxer(MediaAVCodec::Format *trackFormat) in DoDemuxer() argument 76 CHECK_AND_RETURN_RET_LOG(trackFormat != nullptr, MSERR_INVALID_VAL, "Invalid trackFormat."); in DoDemuxer() 87 ret = source_->GetTrackFormat(*trackFormat, sourceTrackIndex); in DoDemuxer() 91 trackFormat->GetIntValue(MediaDescriptionKey::MD_KEY_TRACK_TYPE, trackType); in DoDemuxer() 98 trackFormat->GetIntValue(MediaDescriptionKey::MD_KEY_BITRATE, trackBitRateInfo); in DoDemuxer() 99 …trackFormat->PutLongValue(MediaDescriptionKey::MD_KEY_BITRATE, static_cast<int64_t>(trackBitRateIn… in DoDemuxer() 100 …trackFormat->GetStringValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_CODEC_MIME, trackMimeTypeInf… in DoDemuxer() 103 … trackFormat->PutIntValue(MediaAVCodec::MediaDescriptionKey::MD_KEY_AUDIO_SAMPLE_FORMAT, in DoDemuxer() 112 int32_t SoundParser::DoDecode(MediaAVCodec::Format trackFormat) in DoDecode() argument 115 trackFormat.GetIntValue(MediaDescriptionKey::MD_KEY_TRACK_TYPE, trackTypeInfo); in DoDecode() [all …]
|
D | sound_parser.h | 158 int32_t DoDemuxer(MediaAVCodec::Format *trackFormat); 159 int32_t DoDecode(MediaAVCodec::Format trackFormat);
|
D | cache_buffer.h | 46 CacheBuffer(const MediaAVCodec::Format &trackFormat,
|
D | cache_buffer.cpp | 23 CacheBuffer::CacheBuffer(const MediaAVCodec::Format &trackFormat, in CacheBuffer() argument 25 … &cacheDataTotalSize, const int32_t &soundID, const int32_t &streamID) : trackFormat_(trackFormat), in CacheBuffer()
|
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/ |
D | func_test.cpp | 49 static OH_AVFormat *trackFormat = nullptr; variable 63 if (trackFormat != nullptr) { in TearDown() 64 OH_AVFormat_Destroy(trackFormat); in TearDown() 65 trackFormat = nullptr; in TearDown() 197 trackFormat = OH_AVSource_GetTrackFormat(source, index); 198 ASSERT_NE(trackFormat, nullptr); 199 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_TRACK_TYPE, &tarckType)); 262 trackFormat = OH_AVSource_GetTrackFormat(source, index); 263 ASSERT_NE(trackFormat, nullptr); 264 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_TRACK_TYPE, &tarckType)); [all …]
|
D | reli_test.cpp | 48 static OH_AVFormat *trackFormat = nullptr; variable 70 if (trackFormat != nullptr) { in TearDown() 71 OH_AVFormat_Destroy(trackFormat); in TearDown() 72 trackFormat = nullptr; in TearDown() 480 trackFormat = OH_AVSource_GetTrackFormat(source, index); 481 ASSERT_NE(trackFormat, nullptr); 482 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_TRACK_TYPE, &tarckType)); 883 trackFormat = OH_AVSource_GetTrackFormat(source, index); 884 ASSERT_NE(trackFormat, nullptr); 885 ASSERT_TRUE(OH_AVFormat_GetIntValue(trackFormat, OH_MD_KEY_TRACK_TYPE, &tarckType)); [all …]
|
/foundation/multimedia/av_codec/frameworks/native/capi/avmuxer/ |
D | native_avmuxer.cpp | 59 OH_AVErrCode OH_AVMuxer_AddTrack(OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat) in OH_AVMuxer_AddTrack() argument 64 …CHECK_AND_RETURN_RET_LOG(trackFormat != nullptr, AV_ERR_INVALID_VAL, "input track format is nullpt… in OH_AVMuxer_AddTrack() 65 …CHECK_AND_RETURN_RET_LOG(trackFormat->magic_ == AVMagic::AVCODEC_MAGIC_FORMAT, AV_ERR_INVALID_VAL,… in OH_AVMuxer_AddTrack() 70 int32_t ret = object->muxer_->AddTrack(*trackIndex, trackFormat->format_); in OH_AVMuxer_AddTrack()
|
/foundation/multimedia/av_codec/test/unittest/avmuxer_test/ |
D | avmuxer_sample.cpp | 60 int32_t AVMuxerSample::AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) in AddTrack() argument 65 return muxer_->AddTrack(trackIndex, trackFormat); in AddTrack()
|
D | avmuxer_sample.h | 32 int32_t AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat);
|
D | avmuxer_mock.h | 35 virtual int32_t AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) = 0;
|
/foundation/multimedia/av_codec/test/unittest/avmuxer_test/capi/ |
D | avmuxer_capi_mock.cpp | 42 int32_t AVMuxerCapiMock::AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) in AddTrack() argument 44 auto formatMock = std::static_pointer_cast<AVFormatCapiMock>(trackFormat); in AddTrack()
|
D | avmuxer_capi_mock.h | 33 int32_t AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) override;
|
/foundation/multimedia/av_codec/test/unittest/avmuxer_test/inner/ |
D | avmuxer_inner_mock.cpp | 47 int32_t AVMuxerInnerMock::AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) in AddTrack() argument 50 auto formatMock = std::static_pointer_cast<AVFormatInnerMock>(trackFormat); in AddTrack()
|
D | avmuxer_inner_mock.h | 33 int32_t AddTrack(int32_t &trackIndex, std::shared_ptr<FormatMock> &trackFormat) override;
|
/foundation/multimedia/av_codec/interfaces/kits/c/ |
D | native_avmuxer.h | 68 OH_AVErrCode OH_AVMuxer_AddTrack(OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat);
|
/foundation/multimedia/av_codec/test/moduletest/muxer/Common/include/ |
D | AVMuxerDemo.h | 69 … OH_AVErrCode NativeAddTrack(OH_AVMuxer* muxer, int32_t* trackIndex, OH_AVFormat* trackFormat);
|
/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/ |
D | AVMuxerDemo.cpp | 160 …rCode AVMuxerDemo::NativeAddTrack(OH_AVMuxer* muxer, int32_t* trackIndex, OH_AVFormat* trackFormat) in NativeAddTrack() argument 162 return OH_AVMuxer_AddTrack(muxer, trackIndex, trackFormat); in NativeAddTrack()
|