Home
last modified time | relevance | path

Searched refs:channelCnt (Results 1 - 11 of 11) sorted by relevance

/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/
H A Dwakeup_source_process.cpp36 void WakeupSourceProcess::Init(uint32_t channelCnt) in Init() argument
42 for (uint32_t i = 0; i < channelCnt; i++) { in Init()
51 channelCnt_ = channelCnt; in Init()
52 InitDebugFile(channelCnt); in Init()
143 void WakeupSourceProcess::InitDebugFile(uint32_t channelCnt) in InitDebugFile() argument
145 for (uint32_t i = 0; i < channelCnt; i++) { in InitDebugFile()
H A Dwakeup_source_process.h34 void Init(uint32_t channelCnt);
42 void InitDebugFile(uint32_t channelCnt);
H A Dwakeup_engine_impl.cpp142 int32_t channelCnt = 0; in GetWakeupSourceChannel() local
143 if (!StringUtil::StringToInt(channel, channelCnt)) { in GetWakeupSourceChannel()
148 if ((channelCnt < AudioChannel::MONO) || (channelCnt > AudioChannel::CHANNEL_4)) { in GetWakeupSourceChannel()
149 INTELL_VOICE_LOG_INFO("invalid channel cnt:%{public}d", channelCnt); in GetWakeupSourceChannel()
153 INTELL_VOICE_LOG_INFO("channel cnt:%{public}d", static_cast<int32_t>(channelCnt)); in GetWakeupSourceChannel()
154 return static_cast<OHOS::AudioStandard::AudioChannel>(channelCnt); in GetWakeupSourceChannel()
/foundation/ai/intelligent_voice_framework/utils/
H A Dintell_voice_util.cpp46 bool IntellVoiceUtil::DeinterleaveAudioData(const int16_t *buffer, uint32_t size, int32_t channelCnt, in DeinterleaveAudioData() argument
49 if (channelCnt == 0) { in DeinterleaveAudioData()
53 uint32_t channelLen = size / channelCnt; in DeinterleaveAudioData()
59 for (int32_t i = 0; i < channelCnt; i++) { in DeinterleaveAudioData()
61 channelData[j] = buffer[i + j * channelCnt]; in DeinterleaveAudioData()
H A Dintell_voice_util.h35 static bool DeinterleaveAudioData(const int16_t *buffer, uint32_t size, int32_t channelCnt,
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/utils/
H A Daac_audio_config_parser.cpp224 * @param channelCnt number of channels
229 bool AACAudioConfigParser::CalculateProfile(int channelCnt, int pcu, int rcu) in CalculateProfile() argument
232 channelCnt <= (maxChannelCnt) && audioConfig_.sampleRate <= (maxSampleRate) && pcu <= (maxPcu) && rcu <= (maxRcu) in CalculateProfile()
309 int channelCnt = sceCnt + (2 * cpeCnt); // 2 in ParseLevel() local
310 return CalculateProfile(channelCnt, pcu, rcu); in ParseLevel()
H A Daac_audio_config_parser.h63 bool CalculateProfile(int channelCnt, int pcu, int rcu);
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/decoder/
H A Ddecoder.h43 int32_t channelCnt; /* for pcm frame */ member
H A Ddecoder.cpp64 param[index].val = (void *)&attr.adecAttr.channelCnt; in ConvertAdecAttributToParams()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_encoder.cpp1703 toneMapMetadata.channelCnt = (isoMeta.gainmapChannelNum == 0) ? GAINMAP_CHANNEL_SINGLE : GAINMAP_CHANNEL_MULTI; in GetToneMapMetadata()
1717 if (toneMapMetadata.channelCnt == GAINMAP_CHANNEL_MULTI) { in GetToneMapMetadata()
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/
H A Dliteplayer.cpp724 attr.adecAttr.channelCnt = (mime == MEDIA_MIMETYPE_AUDIO_PCM) ? fmtFileInfo_.u32AudioChannelCnt : 0; in AudioDecoderStart()

Completed in 11 milliseconds