Searched refs:sampleRate (Results 1 - 25 of 126) sorted by relevance

123456

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioSample.java21 public final int sampleRate; field in class:AudioSample
25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { argument
26 this.sampleRate = sampleRate;
/frameworks/av/media/libeffects/testlibs/
H A DAudioPeakingFilter.cpp44 AudioPeakingFilter::AudioPeakingFilter(int nChannels, int sampleRate) argument
45 : mBiquad(nChannels, sampleRate) {
46 configure(nChannels, sampleRate);
50 void AudioPeakingFilter::configure(int nChannels, int sampleRate) { argument
51 mNiquistFreq = sampleRate * 500;
53 mBiquad.configure(nChannels, sampleRate);
H A DAudioShelvingFilter.cpp50 int sampleRate)
52 mBiquad(nChannels, sampleRate) {
53 configure(nChannels, sampleRate);
56 void AudioShelvingFilter::configure(int nChannels, int sampleRate) { argument
57 mNiquistFreq = sampleRate * 500;
59 mBiquad.configure(nChannels, sampleRate);
49 AudioShelvingFilter(ShelfType type, int nChannels, int sampleRate) argument
H A DAudioShelvingFilter.h50 // sampleRate The input/output sample rate, in Hz.
51 AudioShelvingFilter(ShelfType type, int nChannels, int sampleRate);
56 // sampleRate The input/output sample rate, in Hz.
57 void configure(int nChannels, int sampleRate);
H A DAudioEqualizer.h70 // sampleRate The input/output sample rate, in Hz.
81 int sampleRate,
88 // sampleRate The input/output sample rate, in Hz.
89 void configure(int nChannels, int sampleRate);
232 // sampleRate The input/output sample rate, in Hz.
240 AudioEqualizer(void * pMem, int nBands, int nChannels, int sampleRate,
H A DAudioEqualizer.cpp39 int nChannels, int sampleRate,
43 "sampleRate=%d, nPresets=%d)",
44 pMem, nBands, nChannels, sampleRate, nPresets);
54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate,
58 void AudioEqualizer::configure(int nChannels, int sampleRate) { argument
59 ALOGV("AudioEqualizer::configure(nChannels=%d, sampleRate=%d)", nChannels,
60 sampleRate);
61 mpLowShelf->configure(nChannels, sampleRate);
63 mpPeakingFilters[i].configure(nChannels, sampleRate);
65 mpHighShelf->configure(nChannels, sampleRate);
38 CreateInstance(void * pMem, int nBands, int nChannels, int sampleRate, const PresetConfig * presets, int nPresets) argument
287 AudioEqualizer(void * pMem, int nBands, int nChannels, int sampleRate, bool ownMem, const PresetConfig * presets, int nPresets) argument
[all...]
H A DAudioBiquadFilter.h44 // sampleRate Sample rate, in Hz.
45 AudioBiquadFilter(int nChannels, int sampleRate);
49 // sampleRate Sample rate, in Hz.
50 void configure(int nChannels, int sampleRate);
H A DAudioPeakingFilter.h43 // sampleRate The input/output sample rate, in Hz.
44 AudioPeakingFilter(int nChannels, int sampleRate);
49 // sampleRate The input/output sample rate, in Hz.
50 void configure(int nChannels, int sampleRate);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbitenc.h35 Word32 sampleRate; member in struct:BITSTREAMENCODER_INIT
H A Dpsy_main.h50 Word32 sampleRate,
67 Word32 sampleRate);
/frameworks/av/media/libstagefright/codecs/common/include/
H A DvoAAC.h45 int sampleRate; /*! audio file sample rate */ member in struct:__anon459
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAudioConfig.java35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { argument
36 mSampleRate = sampleRate;
70 int sampleRate = in.readInt();
73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioCodec.h29 virtual int set(int sampleRate, const char *fmtp) = 0;
H A DGsmCodec.cpp42 int set(int sampleRate, const char */* fmtp */) { argument
43 return (sampleRate == 8000 && mEncode && mDecode) ? 160 : -1;
H A DG711Codec.cpp37 int set(int sampleRate, const char */* fmtp */) { argument
38 mSampleCount = sampleRate / 50;
88 int set(int sampleRate, const char */* fmtp */) { argument
89 mSampleCount = sampleRate / 50;
H A DAmrCodec.cpp53 int set(int sampleRate, const char *fmtp);
67 int AmrCodec::set(int sampleRate, const char *fmtp) argument
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
211 int set(int sampleRate, const char */* fmtp */) { argument
212 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1;
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Daacenc_core.c89 config.sampleRate,
110 qcInit.averageBits = (Word16) ((config.bitRate * FRAME_LEN_LONG) / config.sampleRate);
112 qcInit.padding.paddingRest = config.sampleRate;
115 (config.sampleRate>>1));
129 hAacEnc->bseInit.sampleRate = config.sampleRate;
171 aacEnc->config.sampleRate);
176 aacEnc->config.sampleRate);
H A Daacenc.c148 config.sampleRate = 44100;
280 pOutInfo->Format.SampleRate = hAacEnc->config.sampleRate;
340 config.sampleRate = pAAC_param->sampleRate;
351 if(config.sampleRate == sampRateTab[i])
363 if(config.sampleRate%8000 == 0)
368 (config.bitRate > config.sampleRate*6*config.nChannelsOut)))
370 config.bitRate = 640*config.sampleRate/tmp*config.nChannelsOut;
374 else if(config.bitRate > config.sampleRate*6*config.nChannelsOut)
375 config.bitRate = config.sampleRate*
[all...]
H A Dpsy_configuration.c39 Word32 sampleRate; member in struct:__anon379
69 Word32 GetSRIndex(Word32 sampleRate) argument
71 if (92017 <= sampleRate) return 0;
72 if (75132 <= sampleRate) return 1;
73 if (55426 <= sampleRate) return 2;
74 if (46009 <= sampleRate) return 3;
75 if (37566 <= sampleRate) return 4;
76 if (27713 <= sampleRate) return 5;
77 if (23004 <= sampleRate) return 6;
78 if (18783 <= sampleRate) retur
[all...]
/frameworks/av/services/audioflinger/tests/
H A Dtest_utils.h188 size_t channels, double sampleRate, double freq)
190 double tscale = 1. / sampleRate;
212 size_t channels, double sampleRate, double minfreq, double maxfreq)
214 double tscale = 1. / sampleRate;
250 void setChirp(size_t channels, double minfreq, double maxfreq, double sampleRate, double time) argument
252 createBufferByFrames<T>(channels, sampleRate, sampleRate*time);
258 double freq, double sampleRate, double time)
260 createBufferByFrames<T>(channels, sampleRate, sampleRate*tim
187 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument
211 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument
257 setSine(size_t channels, double freq, double sampleRate, double time) argument
284 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioResampler.cpp42 AudioResamplerOrder1(int inChannelCount, int32_t sampleRate) : argument
43 AudioResampler(inChannelCount, sampleRate, LOW_QUALITY), mX0L(0), mX0R(0) {
148 int32_t sampleRate, src_quality quality) {
219 resampler = new AudioResamplerOrder1(inChannelCount, sampleRate);
224 resampler = new AudioResamplerCubic(inChannelCount, sampleRate);
229 resampler = new AudioResamplerSinc(inChannelCount, sampleRate);
234 resampler = new AudioResamplerSinc(inChannelCount, sampleRate, quality);
242 sampleRate, quality);
247 sampleRate, quality);
250 sampleRate, qualit
147 create(audio_format_t format, int inChannelCount, int32_t sampleRate, src_quality quality) argument
261 AudioResampler(int inChannelCount, int32_t sampleRate, src_quality quality) argument
[all...]
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp46 uint32_t sampleRate = mStream->common.get_sample_rate(&mStream->common); local
49 mFormat = Format_from_SR_C(sampleRate,
/frameworks/av/media/libstagefright/rtsp/
H A DARawAudioAssembler.cpp136 int32_t sampleRate, numChannels; local
138 desc, &sampleRate, &numChannels);
140 format->setInt32(kKeySampleRate, sampleRate);
/frameworks/av/cmds/stagefright/
H A DSineSource.h13 SineSource(int32_t sampleRate, int32_t numChannels);
/frameworks/av/media/libstagefright/
H A DVBRISeeker.cpp52 int sampleRate; local
53 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) {
73 numFrames * 1000000ll * (sampleRate >= 32000 ? 1152 : 576) / sampleRate;

Completed in 621 milliseconds

123456