Home
last modified time | relevance | path

Searched refs:coverFormat (Results 1 - 3 of 3) sorted by relevance

/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/
H A DNativeAVMuxerStablityTest.cpp387 OH_AVFormat* coverFormat = OH_AVFormat_Create(); in AddCoverTrack() local
388 if (coverFormat == NULL) { in AddCoverTrack()
394 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_JPG); in AddCoverTrack()
396 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_PNG); in AddCoverTrack()
398 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_BMP); in AddCoverTrack()
401 OH_AVFormat_SetIntValue(coverFormat, OH_MD_KEY_WIDTH, WIDTH); in AddCoverTrack()
402 OH_AVFormat_SetIntValue(coverFormat, OH_MD_KEY_HEIGHT, HEIGHT); in AddCoverTrack()
405 muxerDemo->NativeAddTrack(handle, &trackId, coverFormat); in AddCoverTrack()
406 OH_AVFormat_Destroy(coverFormat); in AddCoverTrack()
H A DNativeAVMuxerFunctionTest.cpp123 OH_AVFormat* coverFormat = OH_AVFormat_Create(); in AddCoverTrack() local
124 if (coverFormat == NULL) { in AddCoverTrack()
130 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_JPG); in AddCoverTrack()
132 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_PNG); in AddCoverTrack()
134 OH_AVFormat_SetStringValue(coverFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_IMAGE_BMP); in AddCoverTrack()
137 OH_AVFormat_SetIntValue(coverFormat, OH_MD_KEY_WIDTH, WIDTH); in AddCoverTrack()
138 OH_AVFormat_SetIntValue(coverFormat, OH_MD_KEY_HEIGHT, HEIGHT); in AddCoverTrack()
141 muxerDemo->NativeAddTrack(handle, &trackId, coverFormat); in AddCoverTrack()
142 OH_AVFormat_Destroy(coverFormat); in AddCoverTrack()
/foundation/multimedia/av_codec/test/moduletest/muxer/InnerAPI/
H A DInnerAVMuxerFunctionTest.cpp118 std::shared_ptr<Meta> coverFormat = std::make_shared<Meta>(); in AddCoverTrack() local
121 coverFormat->Set<Tag::MIME_TYPE>(Plugins::MimeType::IMAGE_JPG); in AddCoverTrack()
123 coverFormat->Set<Tag::MIME_TYPE>(Plugins::MimeType::IMAGE_PNG); in AddCoverTrack()
125 coverFormat->Set<Tag::MIME_TYPE>(Plugins::MimeType::IMAGE_BMP); in AddCoverTrack()
127 coverFormat->Set<Tag::VIDEO_WIDTH>(SAMPLE_RATE_352); in AddCoverTrack()
128 coverFormat->Set<Tag::VIDEO_HEIGHT>(SAMPLE_RATE_288); in AddCoverTrack()
130 int32_t ret = muxerDemo->InnerAddTrack(trackIndex, coverFormat); in AddCoverTrack()

Completed in 6 milliseconds