Lines Matching refs:quality
86 bool AudioResampler::qualityIsSupported(src_quality quality) in qualityIsSupported() argument
88 switch (quality) { in qualityIsSupported()
124 uint32_t AudioResampler::qualityMHz(src_quality quality) in qualityMHz() argument
126 switch (quality) { in qualityMHz()
151 int32_t sampleRate, src_quality quality) { in create() argument
154 if (quality == DEFAULT_QUALITY) { in create()
160 quality = defaultQuality; in create()
172 if (quality == DEFAULT_QUALITY) { in create()
173 quality = DYN_MED_QUALITY; in create()
179 uint32_t deltaMHz = qualityMHz(quality); in create()
181 if ((qualityIsSupported(quality) && newMHz <= maxMHz) || atFinalQuality) { in create()
183 currentMHz, newMHz, deltaMHz, quality); in create()
188 switch (quality) { in create()
194 quality = LOW_QUALITY; in create()
197 quality = MED_QUALITY; in create()
200 quality = HIGH_QUALITY; in create()
206 quality = DYN_LOW_QUALITY; in create()
209 quality = DYN_MED_QUALITY; in create()
217 switch (quality) { in create()
235 ALOGV("Create VERY_HIGH_QUALITY sinc Resampler = %d", quality); in create()
237 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality); in create()
242 ALOGV("Create dynamic Resampler = %d", quality); in create()
245 sampleRate, quality); in create()
248 if (quality == DYN_HIGH_QUALITY) { in create()
250 sampleRate, quality); in create()
253 sampleRate, quality); in create()
265 int32_t sampleRate, src_quality quality) : in AudioResampler() argument
269 mQuality(quality) { in AudioResampler()
271 const int maxChannels = quality < DYN_LOW_QUALITY ? FCC_2 : FCC_LIMIT; in AudioResampler()
275 quality, inChannelCount); in AudioResampler()
288 src_quality quality = getQuality(); in ~AudioResampler() local
289 uint32_t deltaMHz = qualityMHz(quality); in ~AudioResampler()
292 currentMHz, newMHz, deltaMHz, quality); in ~AudioResampler()