Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/aac/
H A Dffmpeg_aac_encoder_plugin.cpp363 if (fifoSize >= avCodecContext_->frame_size) { in SendOutputBuffer()
517 MEDIA_LOG_I("frame size: %{public}d", avCodecContext_->frame_size); in OpenContext()
519 …int32_t destSamplesPerFrame = (avCodecContext_->frame_size > (avCodecContext_->sample_rate / FRAME… in OpenContext()
520 avCodecContext_->frame_size : (avCodecContext_->sample_rate / FRAMES_PER_SECOND); in OpenContext()
635 cachedFrame_->nb_samples = avCodecContext_->frame_size; in InitFrame()
696 if (fifoSize < avCodecContext_->frame_size) { in SendFrameToFfmpeg()
700 cachedFrame_->nb_samples = avCodecContext_->frame_size; in SendFrameToFfmpeg()
708 …audio_fifo_read(fifo_, reinterpret_cast<void **>(cachedFrame_->data), avCodecContext_->frame_size); in SendFrameToFfmpeg()
745 …inputBuffer->flag_ & BUFFER_FLAG_EOS) && cachedFrame_->nb_samples != avCodecContext_->frame_size) { in PcmFillFrame()
748 cachedFrame_->nb_samples, avCodecContext_->frame_size); in PcmFillFrame()
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/
H A Daudio_ffmpeg_aac_encoder_plugin.cpp183 …mat_.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLES_PER_FRAME, avCodecContext_->frame_size); in SetFormat()
345 if (avCodecContext_->frame_size <= 0) { in OpenContext()
356 .destSamplesPerFrame = avCodecContext_->frame_size, in OpenContext()
384 cachedFrame_->nb_samples = avCodecContext_->frame_size; in InitFrame()
463 if (cachedFrame_->nb_samples > avCodecContext_->frame_size) { in PcmFillFrame()
465 cachedFrame_->nb_samples, avCodecContext_->frame_size); in PcmFillFrame()
468 if (!inputBuffer->CheckIsEos() && cachedFrame_->nb_samples != avCodecContext_->frame_size) { in PcmFillFrame()
470 cachedFrame_->nb_samples, avCodecContext_->frame_size); in PcmFillFrame()
H A Daudio_ffmpeg_encoder_plugin.cpp59 auto frameSize = avCodecContext_->frame_size; in PcmFillFrame()
270 if (avCodecContext_->frame_size <= 0) { in OpenContext()
312 cachedFrame_->nb_samples = avCodecContext_->frame_size; in InitFrame()
H A Daudio_ffmpeg_flac_encoder_plugin.cpp176 format_.PutIntValue(MediaDescriptionKey::MD_KEY_AUDIO_SAMPLES_PER_FRAME, context->frame_size); in SetFormat()
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/
H A DTestFFmpegDemuxer.cpp50 avCodecContextPtr->frame_size = frameSize; in propagateFrameSize()
51 avStream.codecpar->frame_size = frameSize; in propagateFrameSize()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/lite_aac_decoder/
H A Daac_wrapper.h21 int frame_size; member
H A Dlite_aac_decoder_plugin.cpp310 unsigned int packet_length = static_cast<unsigned int>(aacInfo_->frame_size) * in AudioDecoderAACMp4Process()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/
H A Daudio_ffmpeg_encoder_plugin.cpp268 …FALSE_RETURN_V_MSG_E(avCodecContext_->frame_size > 0, Status::ERROR_UNKNOWN, "frame_size unknown"); in Start()
270 avCodecContext_->frame_size, srcFmt_, 1); in Start()
279 static_cast<uint32_t>(avCodecContext_->frame_size), in Start()
285 SetParameter(Tag::AUDIO_SAMPLE_PER_FRAME, static_cast<uint32_t>(avCodecContext_->frame_size)); in Start()
H A Dffmpeg_au_enc_config.cpp90 outVal = static_cast<uint32_t>(codecContext.frame_size); in GetAudioCommonAttr()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/
H A Dffmpeg_base_encoder.cpp83 auto frameSize = avCodecContext_->frame_size; in PcmFillFrame()
308 if (avCodecContext_->frame_size <= 0) { in OpenContext()
349 cachedFrame_->nb_samples = avCodecContext_->frame_size; in InitFrame()
/ohos5.0/drivers/peripheral/camera/vdi_base/common/utils/exif/
H A Dexif_utils.h28 int32_t frame_size; member
H A Dexif_utils.cpp282 int32_t dataBufferSize = info.frame_size; in AddCustomExifInfo()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_track_meta.cpp125 if (!IsPcmStream(avStream) && avCodecContext->frame_size != 0) { in ConvertCommonAudioStreamToMetaInfo()
126 samplesPerFrame = static_cast<uint32_t>(avCodecContext->frame_size); in ConvertCommonAudioStreamToMetaInfo()
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/pipeline_core/src/node/
H A Dexif_node.cpp69 exifInfo.frame_size = info.size; in DeliverBuffer()
/ohos5.0/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dmedia_audio_encoder.cpp389 avFrame_->nb_samples = audioCodecContext_->frame_size; in InitFrame()
547 size = static_cast<size_t>(audioCodecContext_->frame_size in PcmDataSize()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/
H A Dffmpeg_base_decoder.cpp348 AVCODEC_LOGI("frameSize :%{public}" PRId32, avCodecContext_->frame_size); in InitResample()
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp168 stream->codecpar->frame_size = ui2iFunc(perFrame); in SetParameterOfAuTrack()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_format_helper.cpp678 int frameSize = avStream.codecpar->frame_size; in ParseAudioTrackInfo()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp638 st->codecpar->frame_size = frameSize; in AddAudioTrack()
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-dayu200-on_standard-demo.md1673 buf_size = ((MpiEncTestData *)halCtx_)->frame_size;
/ohos5.0/docs/en/device-dev/porting/
H A Dporting-dayu200-on_standard-demo.md1686 buf_size = ((MpiEncTestData *)halCtx_)->frame_size;