Home
last modified time | relevance | path

Searched refs:FCC_2 (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/media/libeffects/lvm/wrapper/Reverb/aidl/
DReverbContext.cpp367 std::vector<float> outputSamples(frameCount * FCC_2); in process()
378 inputSamples.resize(frameCount * FCC_2); in process()
379 if (channels >= FCC_2) { in process()
381 inputSamples[FCC_2 * i] = in[channels * i] * kSendLevel; in process()
382 inputSamples[FCC_2 * i + 1] = in[channels * i + 1] * kSendLevel; in process()
386 inputSamples[FCC_2 * i] = inputSamples[FCC_2 * i + 1] = in[i] * kSendLevel; in process()
428 if (channels >= FCC_2) { in process()
431 outputSamples[FCC_2 * i] += in[channels * i]; in process()
432 outputSamples[FCC_2 * i + 1] += in[channels * i + 1]; in process()
437 outputSamples[FCC_2 * i] += in[i]; in process()
[all …]
/frameworks/av/media/libeffects/lvm/tests/
DEffectReverbTest.cpp167 std::vector<float> stereoInput(mTotalFrameCount * FCC_2); in TEST_P()
168 adjust_channels(monoInput.data(), FCC_1, stereoInput.data(), FCC_2, sizeof(float), in TEST_P()
180 std::vector<float> stereoOutput(mTotalFrameCount * FCC_2); in TEST_P()
190 std::vector<int16_t> stereoRefI16(mTotalFrameCount * FCC_2); in TEST_P()
191 memcpy_to_i16_from_float(stereoRefI16.data(), stereoOutput.data(), mTotalFrameCount * FCC_2); in TEST_P()
227 ASSERT_EQ(0, memcmp(monoRefI16.data(), monoTestI16.data(), mTotalFrameCount * FCC_2)) in TEST_P()
231 std::vector<float> stereoTestOutput(mTotalFrameCount * FCC_2); in TEST_P()
232 adjust_channels(testOutput.data(), outChannelCount, stereoTestOutput.data(), FCC_2, in TEST_P()
236 std::vector<int16_t> stereoTestI16(mTotalFrameCount * FCC_2); in TEST_P()
238 mTotalFrameCount * FCC_2); in TEST_P()
[all …]
DEffectBundleTest.cpp138 std::vector<float> stereoInput(mTotalFrameCount * FCC_2); in TEST_P()
139 adjust_channels(monoInput.data(), FCC_1, stereoInput.data(), FCC_2, sizeof(float), in TEST_P()
149 std::vector<float> stereoOutput(mTotalFrameCount * FCC_2); in TEST_P()
154 std::vector<int16_t> stereoRefI16(mTotalFrameCount * FCC_2); in TEST_P()
155 memcpy_to_i16_from_float(stereoRefI16.data(), stereoOutput.data(), mTotalFrameCount * FCC_2); in TEST_P()
178 std::vector<float> stereoTestOutput(mTotalFrameCount * FCC_2); in TEST_P()
179 adjust_channels(testOutput.data(), channelCount, stereoTestOutput.data(), FCC_2, in TEST_P()
183 std::vector<int16_t> stereoTestI16(mTotalFrameCount * FCC_2); in TEST_P()
185 mTotalFrameCount * FCC_2); in TEST_P()
190 mTotalFrameCount * FCC_2); in TEST_P()
[all …]
Dlvmtest.cpp410 } else if (params->NrChannels > FCC_2 && params->NrChannels <= FCC_24) { in lvmControl()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp257 channels = (pContext->auxiliary == true) ? channels : FCC_2; in EffectCreate()
260 pContext->bufferSizeOut = LVREV_MAX_FRAME_SIZE * sizeof(process_buffer_t) * FCC_2; in EffectCreate()
346 size_t outSize = frameCount * sizeof(process_buffer_t) * FCC_2; in process()
374 if (channels >= FCC_2) { in process()
376 pContext->InFrames[FCC_2 * i] = in process()
378 pContext->InFrames[FCC_2 * i + 1] = in process()
383 pContext->InFrames[FCC_2 * i] = pContext->InFrames[FCC_2 * i + 1] = in process()
391 frameCount * sizeof(*pContext->OutFrames) * FCC_2); // always stereo here in process()
412 if (channels >= FCC_2) { in process()
415 pContext->OutFrames[FCC_2 * i] += pIn[channels * i]; in process()
[all …]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_Process.cpp98 Copy_Float((LVM_FLOAT*)pInput, (LVM_FLOAT*)pStIn, (LVM_INT16)(FCC_2 * NrFrames)); in LVCS_Process_CS()
170 LVM_UINT16 destNumSamples = (channels == FCC_1) ? NumSamples : FCC_2 * NumSamples; in LVCS_Process()
172 (channels == FCC_1) ? LVCS_COMPGAINFRAME : FCC_2 * LVCS_COMPGAINFRAME; in LVCS_Process()
272 : (LVM_INT32)(FCC_2 * SampleToProcess)); in LVCS_Process()
DLVCS_ReverbGenerator.cpp82 (pParams->NrChannels == FCC_1) ? (LVM_INT16)Delay : (LVM_INT16)(FCC_2 * Delay); in LVCS_ReverbGeneratorInit()
96 (pParams->NrChannels == FCC_1) ? FCC_1 : FCC_2, coefs)); in LVCS_ReverbGeneratorInit()
157 (pInstance->Params.NrChannels == FCC_1) ? NumSamples : FCC_2 * NumSamples; in LVCS_ReverbGenerator()
DLVCS_Equaliser.cpp78 (pParams->NrChannels == FCC_1) ? FCC_1 : FCC_2, coefs)); in LVCS_EqualiserInit()
DLVCS_StereoEnhancer.cpp132 LVM_UINT16 destNumSamples = (NumChannels == FCC_1) ? NumSamples : FCC_2 * NumSamples; in LVCS_StereoEnhancer()
DLVCS_BypassMix.cpp204 (pInstance->Params.NrChannels == FCC_1) ? NumSamples : FCC_2 * NumSamples; in LVCS_BypassMixer()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DCopy_16.cpp59 if (NrChannels >= FCC_2) { in Copy_Float_Stereo_Mc()
69 for (jj = FCC_2; jj < NrChannels; jj++) { in Copy_Float_Stereo_Mc()
DLVC_MixSoft_1St_2i_D16C31_SAT.cpp59 int loopLimit = (NrChannels == FCC_1) ? NrChannels : FCC_2; in LVC_MixSoft_1St_MC_float_SAT()
/frameworks/av/services/audioflinger/fastpath/
DFastMixer.h82 uint32_t mSinkChannelCount = FCC_2;
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
DLVDBE_Init.cpp82 pInstance->Params.NrChannels = FCC_2; in LVDBE_Init()
/frameworks/av/media/libeffects/downmix/benchmark/
Ddownmix_benchmark.cpp103 std::vector<float> output(kFrameCount * FCC_2); in BM_Downmix()
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp40 #ifndef FCC_2
41 #define FCC_2 2 macro
DAudioMixerBase.cpp33 #ifndef FCC_2
34 #define FCC_2 2 macro
1319 if (channels <= FCC_2) { in MIXTYPE_MONOVOL()
1599 if (!kUseNewMixer && channelCount == FCC_2 && mixerInFormat == AUDIO_FORMAT_PCM_16_BIT) { in getTrackHook()
1728 if (!kUseNewMixer && channelCount == FCC_2 && mixerInFormat == AUDIO_FORMAT_PCM_16_BIT) { in getProcessHook()
DRecordBufferConverter.cpp194 mBufFrameSize = max(mSrcChannelCount, (uint32_t)FCC_2) in updateParameters()
DAudioResampler.cpp271 const int maxChannels = quality < DYN_LOW_QUALITY ? FCC_2 : FCC_LIMIT; in AudioResampler()
/frameworks/av/media/libaudioprocessing/include/media/
DAudioMixerBase.h49 static constexpr uint32_t MAX_NUM_VOLUMES = FCC_2; // stereo volume only
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
DLVREV_GetInstanceHandle.cpp111 pLVREV_Private->pInputSave = (LVM_FLOAT*)calloc(FCC_2 * MaxBlockSize, sizeof(LVM_FLOAT)); in LVREV_GetInstanceHandle()
/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizerContext.cpp56 if (channelCount != FCC_2) return RetCode::ERROR_ILLEGAL_PARAMETER; in initParams()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp162 if (channelCount != FCC_2) return -EINVAL; in Visualizer_setConfig()
445 inIdx += FCC_2; // integer supports stereo only. in Visualizer_process()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp297 if (supportedChannelCount <= FCC_2) { in checkCompatibleChannelMask()
/frameworks/av/media/module/extractors/wav/
DWAVExtractor.cpp228 if (mNumChannels != 1 && mNumChannels != FCC_2) { in init()

12