Searched defs:sample (Results 26 - 31 of 31) sorted by relevance

12

/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp53 static inline int16_t clamp16(int32_t sample) argument
57 if ((sample>>15) ^ (sample>>31))
58 sample = 0x7FFF ^ (sample>>31);
59 return sample;
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp386 static inline int16_t clamp16(int32_t sample) argument
388 if ((sample>>15) ^ (sample>>31))
389 sample = 0x7FFF ^ (sample>>31);
390 return sample;
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp109 MediaBuffer *readBuffer(FLAC__uint64 sample) { argument
110 return readBuffer(true, sample);
148 MediaBuffer *readBuffer(bool doSeek, FLAC__uint64 sample);
548 ALOGE("unsupported bits per sample %u", getBitsPerSample());
551 // check sample rate
566 ALOGE("unsupported sample rate %u", getSampleRate());
597 // sample rate is non-zero, so division by zero not possible
626 MediaBuffer *FLACParser::readBuffer(bool doSeek, FLAC__uint64 sample) argument
632 if (!FLAC__stream_decoder_seek_absolute(mDecoder, sample)) {
633 ALOGE("FLACParser::readBuffer seek to sample
738 FLAC__uint64 sample; local
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp320 int32_t sample = buffer[i]; local
321 if (sample < -32768) {
322 sample = -32768;
324 if (sample > 32767) {
325 sample = 32767;
327 samples[i] = sample;
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp778 const SampleInfo &sample, const MediaDataInfo &mdatInfo) {
779 if (sample.mOffset + sample.mSize < mdatInfo.mOffset) {
783 if (sample.mOffset >= mdatInfo.mOffset + mdatInfo.mBuffer->size()) {
787 // Otherwise make sure the sample is completely contained within this
790 CHECK_GE(sample.mOffset, mdatInfo.mOffset);
792 CHECK_LE(sample.mOffset + sample.mSize,
946 const SampleInfo &sample,
949 if (sample
777 CompareSampleLocation( const SampleInfo &sample, const MediaDataInfo &mdatInfo) argument
944 makeAccessUnit( TrackInfo *info, const SampleInfo &sample, const MediaDataInfo &mdatInfo, sp<ABuffer> *accessUnit) argument
[all...]
/frameworks/av/services/audioflinger/
H A DThreads.cpp127 // and another HAL implementation corrupts memory, possibly in the sample rate converter.
168 void sample(const String8 &title);
188 void CpuStats::sample(const String8 &title) { function in class:android::CpuStats
194 // record sample for wall clock statistics
196 mWcStats.sample(wcNs);
209 // ignore sample for purposes of cycles
213 // if no change in CPU number or frequency, then record sample for cycle statistics
216 mHzStats.sample(cycles);
1222 // hardware sample rate
1970 - maxPeriod from frame count and sample rat
[all...]

Completed in 291 milliseconds

12