/external/chromium_org/third_party/webrtc/examples/android/opensl_loopback/ |
fake_audio_device_buffer.cc | 58 uint32_t nSamples) { 61 assert(nSamples == kDefaultBufSizeInSamples); 64 memcpy(buffer, audioBuffer, nSamples * sizeof(int16_t)); 69 int32_t FakeAudioDeviceBuffer::RequestPlayoutData(uint32_t nSamples) { 70 assert(nSamples == kDefaultBufSizeInSamples);
|
fake_audio_device_buffer.h | 33 uint32_t nSamples); 38 virtual int32_t RequestPlayoutData(uint32_t nSamples);
|
/external/opencv/ml/src/ |
mlrtrees.cpp | 319 nsamples = data->sample_count; 327 CV_CALL(oob_sample_votes = cvCreateMat( nsamples, nclasses, CV_32SC1 )); 336 CV_CALL(oob_responses = cvCreateMat( 2, nsamples, CV_32FC1 )); 341 CV_CALL(sample_idx_mask_for_tree = cvCreateMat( 1, nsamples, CV_8UC1 )); 342 CV_CALL(sample_idx_for_tree = cvCreateMat( 1, nsamples, CV_32SC1 )); 343 CV_CALL(oob_samples_perm_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); 344 CV_CALL(samples_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); 345 CV_CALL(missing_ptr = (uchar*)cvAlloc( sizeof(uchar)*nsamples*dims )); 346 CV_CALL(true_resp_ptr = (float*)cvAlloc( sizeof(float)*nsamples )); 351 CvMat responses = cvMat(1, nsamples, CV_32FC1, true_resp_ptr) [all...] |
mlem.cpp | 163 "floating-point matrix (CvMat) of 'nsamples' x 'nclusters' size" ); 175 "floating-point matrix (CvMat) of 'nsamples' x 'dims' size" ); 317 int i, nsamples, nclusters, dims; local 328 nsamples = train_data.count; 333 labels->cols != 1 && labels->rows != 1 || labels->cols + labels->rows - 1 != nsamples )) 337 if( nsamples <= nclusters ) 342 CV_CALL( probs = cvCreateMat( nsamples, nclusters, CV_64FC1 )); 372 for( i = 0; i < nsamples; i++ ) 406 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims; local 408 if( params.start_step == START_AUTO_STEP || nclusters == 1 || nclusters == nsamples ) 494 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims; local 585 int i, j, k, nsamples, dims; local 789 int nsamples = train_data.count, dims = train_data.dims, nclusters = params.nclusters; local [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_device/ |
mock_audio_device_buffer.h | 24 MOCK_METHOD1(RequestPlayoutData, int32_t(uint32_t nSamples));
|
audio_device_buffer.h | 54 uint32_t nSamples); 62 virtual int32_t RequestPlayoutData(uint32_t nSamples);
|
audio_device_buffer.cc | 387 // 16-bit,48kHz mono, 10ms => nSamples=480 => _recSize=2*480=960 bytes 388 // 16-bit,48kHz stereo,10ms => nSamples=480 => _recSize=4*480=1920 bytes 392 uint32_t nSamples) 402 _recSamples = nSamples; 403 _recSize = _recBytesPerSample*nSamples; // {2,4}*nSamples 410 if (nSamples != _recSamples) 412 WEBRTC_TRACE(kTraceWarning, kTraceAudioDevice, _id, "invalid number of recorded samples (%d)", nSamples); 500 int32_t AudioDeviceBuffer::RequestPlayoutData(uint32_t nSamples) 523 _playSamples = nSamples; [all...] |
/external/srec/audio/test/AudioInRecord/src/ |
AudioInRecord.c | 55 unsigned int nSamples; 89 nSamples = 0; 90 while (nSamples <= N_SAMPLES_TO_RECORD - N_SAMPLES_PER_BUFFER) 95 lhsErr = lhs_audioinGetSamples(hAudioIn, &u32NbrOfSamples, &(recordedSamples[nSamples]), &AudioInInfo); 97 nSamples += u32NbrOfSamples; 139 fwrite(recordedSamples, sizeof(typeSample), nSamples, fpOutput);
|
/external/chromium_org/third_party/opus/src/silk/ |
resampler.c | 181 opus_int nSamples; 188 nSamples = S->Fs_in_kHz - S->inputDelay; 191 silk_memcpy( &S->delayBuf[ S->inputDelay ], in, nSamples * sizeof( opus_int16 ) ); 196 silk_resampler_private_up2_HQ_wrapper( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 200 silk_resampler_private_IIR_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 204 silk_resampler_private_down_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 208 silk_memcpy( &out[ S->Fs_out_kHz ], &in[ nSamples ], ( inLen - S->Fs_in_kHz ) * sizeof( opus_int16 ) );
|
/external/libopus/silk/ |
resampler.c | 181 opus_int nSamples; 188 nSamples = S->Fs_in_kHz - S->inputDelay; 191 silk_memcpy( &S->delayBuf[ S->inputDelay ], in, nSamples * sizeof( opus_int16 ) ); 196 silk_resampler_private_up2_HQ_wrapper( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 200 silk_resampler_private_IIR_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 204 silk_resampler_private_down_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); 208 silk_memcpy( &out[ S->Fs_out_kHz ], &in[ nSamples ], ( inLen - S->Fs_in_kHz ) * sizeof( opus_int16 ) );
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
AACEncoder.cpp | 242 const int32_t nSamples = mChannels * kNumSamplesPerFrame; 243 while (mNumInputSamples < nSamples) { 252 sizeof(int16_t) * (nSamples - mNumInputSamples)); 271 size_t copy = (nSamples - mNumInputSamples) * sizeof(int16_t); 291 if (mNumInputSamples >= nSamples) { 292 mNumInputSamples %= nSamples; 300 inputData.Length = nSamples * sizeof(int16_t);
|
/frameworks/av/media/libstagefright/ |
FLACExtractor.cpp | 125 void (*mCopy)(short *dst, const int *const *src, unsigned nSamples, unsigned nChannels); 386 unsigned nSamples, 388 for (unsigned i = 0; i < nSamples; ++i) { 396 unsigned nSamples, 398 for (unsigned i = 0; i < nSamples; ++i) { 404 static void copyMultiCh8(short *dst, const int *const *src, unsigned nSamples, unsigned nChannels) 406 for (unsigned i = 0; i < nSamples; ++i) { 416 unsigned nSamples, 418 for (unsigned i = 0; i < nSamples; ++i) { 426 unsigned nSamples, [all...] |
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/test/ |
fakeaudiocapturemodule_unittest.cc | 59 const uint32_t nSamples, 68 rec_buffer_bytes_ = nSamples * nBytesPerSample; 82 virtual int32_t NeedMorePlayData(const uint32_t nSamples, 95 const uint32_t audio_buffer_size = nSamples * nBytesPerSample;
|
/external/chromium_org/third_party/opus/src/src/ |
opus_compare.c | 57 size_t nsamples; local 62 nsamples=csamples=0; 66 if(nsamples+nread>csamples){ 68 while(nsamples+nread>csamples); 78 samples[(nsamples+xi)*_nchannels+ci]=s; 81 nsamples+=nread; 84 _nchannels*nsamples*sizeof(*samples)); 85 return nsamples;
|
/external/chromium_org/third_party/webrtc/voice_engine/ |
transmit_mixer.h | 54 uint32_t nSamples, 176 int nSamples,
|
voe_base_impl.h | 67 uint32_t nSamples, 77 virtual int32_t NeedMorePlayData(uint32_t nSamples,
|
voe_base_impl.cc | 122 uint32_t nSamples, 133 "VoEBaseImpl::RecordedDataIsAvailable(nSamples=%u, " 136 nSamples, nBytesPerSample, nChannels, samplesPerSec, 139 NULL, 0, audioSamples, samplesPerSec, nChannels, nSamples, 146 uint32_t nSamples, 156 "VoEBaseImpl::NeedMorePlayData(nSamples=%u, " 158 nSamples, nBytesPerSample, nChannels, samplesPerSec); 162 static_cast<int>(nSamples), true, audioSamples, [all...] |
/external/libopus/src/ |
opus_compare.c | 57 size_t nsamples; local 62 nsamples=csamples=0; 66 if(nsamples+nread>csamples){ 68 while(nsamples+nread>csamples); 78 samples[(nsamples+xi)*_nchannels+ci]=s; 81 nsamples+=nread; 84 _nchannels*nsamples*sizeof(*samples)); 85 return nsamples;
|
/frameworks/base/media/java/android/media/ |
ResampleInputStream.java | 122 int nsamples = (mIn - mOut + mInputStream.available()) / 2; 123 return ((nsamples - mFirLength) * mRateOut / mRateIn) * 2;
|
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
cmscgats.c | 123 int nSamples, nPatches; // Cols, Rows [all...] |
cmslut.c | 514 Data ->Params ->nSamples, 754 cmsUInt32Number* nSamples; 764 nSamples = clut->Params ->nSamples; 773 nTotalPoints = CubeSize(nSamples, nInputs); 782 cmsUInt32Number Colorant = rest % nSamples[t]; 784 rest /= nSamples[t]; 786 In[t] = _cmsQuantizeVal(Colorant, nSamples[t]); 816 cmsUInt32Number* nSamples; 820 nSamples = clut->Params ->nSamples [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_device/test/ |
func_test_manager.h | 66 uint16_t nSamples; 106 const uint32_t nSamples, 116 virtual int32_t NeedMorePlayData(const uint32_t nSamples,
|
/frameworks/av/include/media/stagefright/ |
AudioSource.h | 91 void trackMaxAmplitude(int16_t *data, int nSamples);
|
/external/chromium_org/third_party/webrtc/modules/audio_device/include/ |
audio_device_defines.h | 58 const uint32_t nSamples, 68 virtual int32_t NeedMorePlayData(const uint32_t nSamples,
|
/external/openfst/src/include/fst/ |
randgen.h | 144 size_t nsamples; // # of samples to be sampled at this state member in struct:fst::RandState 150 : state_id(s), nsamples(n), length(l), select(k), parent(p) {} 153 : state_id(kNoStateId), nsamples(0), length(0), select(0), parent(0) {} 183 // Samples 'rstate.nsamples' from state 'state_id'. The 'rstate.length' is 198 for (size_t i = 0; i < rstate.nsamples; ++i) 210 // Returns a pair (N, K) where 0 <= N <= NumArcs(s) and 0 < K <= nsamples. 277 for (size_t i = 0; i < rstate.nsamples; ++i) 459 double prob = static_cast<double>(count)/rstate.nsamples;
|