/external/qemu/audio/ |
audio_win_int.c | 20 wfx->nChannels = as->nchannels; 22 wfx->nAvgBytesPerSec = as->freq << (as->nchannels == 2); 23 wfx->nBlockAlign = 1 << (as->nchannels == 2); 69 switch (wfx->nChannels) { 71 as->nchannels = 1; 75 as->nchannels = 2; 81 wfx->nChannels
|
wavcapture.c | 11 int nchannels; member in struct:__anon9528 75 wav->freq, wav->bits, wav->nchannels, 85 int bits, int nchannels) 105 if (nchannels != 1 && nchannels != 2) { 107 nchannels); 111 stereo = nchannels == 2; 115 as.nchannels = 1 << stereo; 128 le_store (hdr + 22, as.nchannels, 2); 143 wav->nchannels = nchannels [all...] |
wavaudio.c | 128 stereo = wav_as.nchannels == 2; 159 le_store (hdr + 22, hw->info.nchannels, 2); 253 int nchannels, freq, format, bits; local 276 nchannels = le_read( hdr+22, 2 ); 284 switch (nchannels) { 289 nchannels, path); 303 if (format*8/nchannels != bits) { 305 bits, format*8/nchannels, path); 309 wav_as.nchannels = nchannels; [all...] |
ossaudio.c | 87 int nchannels; member in struct:oss_params 235 req->nchannels, obt->nchannels); 274 int fmt, freq, nchannels; local 289 nchannels = req->nchannels; 297 if (ioctl (fd, SNDCTL_DSP_CHANNELS, &nchannels)) { 299 req->nchannels); 357 obt->nchannels = nchannels; [all...] |
alsaaudio.c | 158 int nchannels; member in struct:alsa_params_req 169 int nchannels; member in struct:alsa_params_obt 492 req->nchannels, obt->nchannels); 537 unsigned int freq, nchannels; local 544 nchannels = req->nchannels; 591 &nchannels 595 req->nchannels); 599 if (nchannels != 1 && nchannels != 2) [all...] |
/external/bluetooth/bluez/sbc/ |
sbc_primitives.c | 224 * optimal performance, it is important to have "nsamples", "nchannels" 232 int nsamples, int nchannels, int big_endian) 236 if (nchannels > 0) 239 if (nchannels > 1) 251 if (nchannels > 0) { 253 x[0] = PCM(0 + 7 * nchannels); 254 x[1] = PCM(0 + 3 * nchannels); 255 x[2] = PCM(0 + 6 * nchannels); 256 x[3] = PCM(0 + 4 * nchannels); 257 x[4] = PCM(0 + 0 * nchannels); [all...] |
sbc_primitives.h | 52 int nsamples, int nchannels); 55 int nsamples, int nchannels); 58 int nsamples, int nchannels); 61 int nsamples, int nchannels);
|
/external/opencv/cvaux/src/ |
cvbgfg_gaussmix.cpp | 53 //int nChannels; /* OpenCV functions support 1,2,3 or 4 channels */ 82 static int icvMatchTest( double* src_pixel, int nChannels, int* match, 84 /*static int icvMatchTest2( double* src_pixel, int nChannels, int* match, 94 static void icvUpdateFullWindow( double* src_pixel, int nChannels, 102 static void icvUpdatePartialWindow( double* src_pixel, int nChannels, int* match, 104 static void icvUpdatePartialNoMatch( double* src_pixel, int nChannels, 110 static void icvGetSortKey( const int nChannels, double* sort_key, const CvGaussBGPoint* g_point, 112 static void icvBackgroundTest( const int nChannels, int n, int i, int j, int *match, CvGaussBGModel* bg_model ); 182 first_frame->height), IPL_DEPTH_8U, first_frame->nChannels)); 198 const int p = i*first_frame->widthStep+j*first_frame->nChannels; [all...] |
/frameworks/base/media/libstagefright/codecs/aacenc/src/ |
adj_thr.c | 68 const Word16 nChannels) 72 for (ch=0; ch<nChannels; ch++) { 93 const Word16 nChannels) 101 for (ch=0; ch<nChannels; ch++) { 163 const Word16 nChannels, 170 for (ch=0; ch<nChannels; ch++) { 195 for(ch=0; ch<nChannels; ch++) { 255 if (nChannels == 2) { 295 for(ch=0; ch<nChannels; ch++) { 329 const Word16 nChannels) [all...] |
qc_main.c | 121 Word16 QCOutNew(QC_OUT *hQC, Word16 nChannels, VO_MEM_OPERATOR *pMemOP) 128 quantSpec = (Word16 *)mem_malloc(pMemOP, nChannels * FRAME_LEN_LONG * sizeof(Word16), 32, VO_INDEX_ENC_AAC); 131 scf = (Word16 *)mem_malloc(pMemOP, nChannels * MAX_GROUPED_SFB * sizeof(Word16), 32, VO_INDEX_ENC_AAC); 136 maxValueInSfb = (UWord16 *)mem_malloc(pMemOP, nChannels * MAX_GROUPED_SFB * sizeof(UWord16), 32, VO_INDEX_ENC_AAC); 142 for (i=0; i<nChannels; i++) { 224 hQC->nChannels = init->elInfo->nChannelsInEl; 264 Word16 nChannels, 281 nChannels, 295 CalcFormFactor(hQC->logSfbFormFactor, hQC->sfbNRelevantLines, hQC->logSfbEnergy, psyOutChannel, nChannels); 307 nChannels, [all...] |
channel_map.c | 64 Word16 InitElementInfo (Word16 nChannels, ELEMENT_INFO* elInfo) 69 switch(nChannels) {
|
/frameworks/base/media/libstagefright/codecs/aacenc/inc/ |
qc_main.h | 32 Word16 QCOutNew(QC_OUT *hQC, Word16 nChannels, VO_MEM_OPERATOR *pMemOP); 51 Word16 nChannels,
|
sf_estim.h | 37 const Word16 nChannels); 45 const Word16 nChannels);
|
bitenc.h | 33 Word16 nChannels;
|
channel_map.h | 29 Word16 InitElementInfo (Word16 nChannels, ELEMENT_INFO* elInfo);
|
stat_bits.h | 31 Word16 nChannels,
|
line_pe.h | 61 const Word16 nChannels, 70 const Word16 nChannels);
|
/frameworks/base/media/libeffects/testlibs/ |
AudioEqualizer.cpp | 39 int nChannels, int sampleRate, 42 LOGV("AudioEqualizer::CreateInstance(pMem=%p, nBands=%d, nChannels=%d, " 44 pMem, nBands, nChannels, sampleRate, nPresets); 54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate, 58 void AudioEqualizer::configure(int nChannels, int sampleRate) { 59 LOGV("AudioEqualizer::configure(nChannels=%d, sampleRate=%d)", nChannels, 61 mpLowShelf->configure(nChannels, sampleRate); 63 mpPeakingFilters[i].configure(nChannels, sampleRate); 65 mpHighShelf->configure(nChannels, sampleRate) [all...] |
AudioPeakingFilter.cpp | 46 AudioPeakingFilter::AudioPeakingFilter(int nChannels, int sampleRate) 47 : mBiquad(nChannels, sampleRate) { 48 configure(nChannels, sampleRate); 52 void AudioPeakingFilter::configure(int nChannels, int sampleRate) { 55 mBiquad.configure(nChannels, sampleRate);
|
AudioShelvingFilter.cpp | 51 AudioShelvingFilter::AudioShelvingFilter(ShelfType type, int nChannels, 54 mBiquad(nChannels, sampleRate) { 55 configure(nChannels, sampleRate); 58 void AudioShelvingFilter::configure(int nChannels, int sampleRate) { 61 mBiquad.configure(nChannels, sampleRate);
|
AudioBiquadFilter.cpp | 30 AudioBiquadFilter::AudioBiquadFilter(int nChannels, int sampleRate) { 31 configure(nChannels, sampleRate); 35 void AudioBiquadFilter::configure(int nChannels, int sampleRate) { 36 assert(nChannels > 0 && nChannels <= MAX_CHANNELS); 38 mNumChannels = nChannels;
|
AudioPeakingFilter.h | 42 // nChannels Number of input/output channels (interlaced). 44 AudioPeakingFilter(int nChannels, int sampleRate); 48 // nChannels Number of input/output channels (interlaced). 50 void configure(int nChannels, int sampleRate); 99 // frameCount * nChannels interlaced samples. Processing can be done
|
AudioShelvingFilter.h | 49 // nChannels Number of input/output channels (interlaced). 51 AudioShelvingFilter(ShelfType type, int nChannels, int sampleRate); 55 // nChannels Number of input/output channels (interlaced). 57 void configure(int nChannels, int sampleRate); 93 // frameCount * nChannels interlaced samples. Processing can be done
|
AudioBiquadFilter.h | 43 // nChannels Number of input/output channels. 45 AudioBiquadFilter(int nChannels, int sampleRate); 48 // nChannels Number of input/output channels. 50 void configure(int nChannels, int sampleRate); 75 // in The input buffer. Should be of size frameCount * nChannels. 76 // out The output buffer. Should be of size frameCount * nChannels.
|
/frameworks/base/media/libstagefright/codecs/aacenc/SampleCode/ |
AAC_E_SAMPLES.c | 51 // bitRate/nChannels > 8000 52 // bitRate/nChannels < 160000 53 // bitRate/nChannels < sampleRate*6 56 param->nChannels = 2; 90 param->nChannels = atoi(*argv); 118 param->bitRate = 640*param->nChannels*param->sampleRate/scale;
|