Home
last modified time | relevance | path

Searched refs:bytesPerFrame (Results 1 – 19 of 19) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessor.java71 private int bytesPerFrame; field in SilenceSkippingAudioProcessor
161 skippedFrames += paddingSize / bytesPerFrame; in onQueueEndOfStream()
168 bytesPerFrame = inputAudioFormat.bytesPerFrame; in onFlush()
169 int maybeSilenceBufferSize = durationUsToFrames(MINIMUM_SILENCE_DURATION_US) * bytesPerFrame; in onFlush()
173 paddingSize = durationUsToFrames(PADDING_SILENCE_US) * bytesPerFrame; in onFlush()
241 skippedFrames += (maybeSilenceBufferSize - paddingSize * 2) / bytesPerFrame; in processMaybeSilence()
243 skippedFrames += (maybeSilenceBufferSize - paddingSize) / bytesPerFrame; in processMaybeSilence()
263 skippedFrames += inputBuffer.remaining() / bytesPerFrame; in processSilence()
332 return bytesPerFrame * (i / bytesPerFrame); in findNoisePosition()
347 return bytesPerFrame * (i / bytesPerFrame) + bytesPerFrame; in findNoiseLimit()
DTrimmingAudioProcessor.java90 trimmedFrameCount += trimBytes / inputAudioFormat.bytesPerFrame; in queueInput()
149 trimmedFrameCount += endBufferSize / inputAudioFormat.bytesPerFrame; in onQueueEndOfStream()
160 endBuffer = new byte[trimEndFrames * inputAudioFormat.bytesPerFrame]; in onFlush()
161 pendingTrimStartBytes = trimStartFrames * inputAudioFormat.bytesPerFrame; in onFlush()
DChannelMappingAudioProcessor.java74 int frameCount = (limit - position) / inputAudioFormat.bytesPerFrame; in queueInput()
75 int outputSize = frameCount * outputAudioFormat.bytesPerFrame; in queueInput()
81 position += inputAudioFormat.bytesPerFrame; in queueInput()
DAudioProcessor.java48 public final int bytesPerFrame; field in AudioProcessor.AudioFormat
54 bytesPerFrame = in AudioFormat()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DAudioSampleEntry.java61 private long bytesPerFrame; field in AudioSampleEntry
106 return bytesPerFrame; in getBytesPerFrame()
157 public void setBytesPerFrame(long bytesPerFrame) { in setBytesPerFrame() argument
158 this.bytesPerFrame = bytesPerFrame; in setBytesPerFrame()
208 bytesPerFrame = IsoTypeReader.readUInt32(content); in _parseDetails()
236 ", bytesPerFrame=" + bytesPerFrame + in toString()
269 IsoTypeWriter.writeUInt32(byteBuffer, bytesPerFrame); in getContent()
/external/oboe/src/fifo/
DFifoBuffer.cpp28 FifoBuffer::FifoBuffer(uint32_t bytesPerFrame, uint32_t capacityInFrames) in FifoBuffer() argument
29 : mBytesPerFrame(bytesPerFrame) in FifoBuffer()
36 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames; in FifoBuffer()
41 FifoBuffer::FifoBuffer( uint32_t bytesPerFrame, in FifoBuffer() argument
47 : mBytesPerFrame(bytesPerFrame) in FifoBuffer()
DFifoBuffer.h31 FifoBuffer(uint32_t bytesPerFrame, uint32_t capacityInFrames);
33 FifoBuffer(uint32_t bytesPerFrame,
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioManager.java109 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinOutputFrameSize() local
114 / bytesPerFrame; in getMinOutputFrameSize()
121 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinInputFrameSize() local
126 / bytesPerFrame; in getMinInputFrameSize()
DWebRtcAudioTrack.java191 final int bytesPerFrame = channels * (BITS_PER_SAMPLE / 8); in initPlayout() local
192 byteBuffer = ByteBuffer.allocateDirect(bytesPerFrame * (sampleRate / BUFFERS_PER_SECOND)); in initPlayout()
DWebRtcAudioRecord.java265 final int bytesPerFrame = channels * getBytesPerSample(audioFormat); in initRecording() local
267 byteBuffer = ByteBuffer.allocateDirect(bytesPerFrame * framesPerBuffer); in initRecording()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java216 int bytesPerFrame = header.numChannels * header.bitsPerSample / 8; in PassthroughOutputWriter() local
218 if (header.blockSize != bytesPerFrame) { in PassthroughOutputWriter()
220 "Expected block size: " + bytesPerFrame + "; got: " + header.blockSize); in PassthroughOutputWriter()
223 int constantBitrate = header.frameRateHz * bytesPerFrame * 8; in PassthroughOutputWriter()
225 Math.max(bytesPerFrame, header.frameRateHz * bytesPerFrame / TARGET_SAMPLES_PER_SECOND); in PassthroughOutputWriter()
269 int bytesPerFrame = header.blockSize; in sampleData() local
270 int pendingFrames = pendingOutputBytes / bytesPerFrame; in sampleData()
276 int size = pendingFrames * bytesPerFrame; in sampleData()
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java340 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinOutputFrameSize() local
345 / bytesPerFrame; in getMinOutputFrameSize()
358 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinInputFrameSize() local
363 / bytesPerFrame; in getMinInputFrameSize()
DWebRtcAudioRecord.java241 final int bytesPerFrame = channels * (BITS_PER_SAMPLE / 8); in initRecording() local
243 byteBuffer = ByteBuffer.allocateDirect(bytesPerFrame * framesPerBuffer); in initRecording()
DWebRtcAudioTrack.java223 final int bytesPerFrame = channels * (BITS_PER_SAMPLE / 8); in initPlayout() local
224 byteBuffer = ByteBuffer.allocateDirect(bytesPerFrame * (sampleRate / BUFFERS_PER_SECOND)); in initPlayout()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessorTest.java236 int bytesPerFrame = AUDIO_FORMAT.bytesPerFrame; in process() local
244 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
251 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
DTrimmingAudioProcessorTest.java42 AUDIO_FORMAT.bytesPerFrame * TRACK_ONE_UNTRIMMED_FRAME_COUNT;
45 - AUDIO_FORMAT.bytesPerFrame
/external/drrickorang/LoopbackApp/app/src/main/cpp/
Djni_native.c39 (JNIEnv *env, jobject obj __unused, jint bytesPerFrame, jint threadType, jint performanceMode) { in Java_org_drrickorang_loopback_NativeAudioThread_nativeComputeDefaultSettings() argument
49 playerBufferFrameCount * bytesPerFrame, in Java_org_drrickorang_loopback_NativeAudioThread_nativeComputeDefaultSettings()
50 recorderBufferFrameCount * bytesPerFrame); in Java_org_drrickorang_loopback_NativeAudioThread_nativeComputeDefaultSettings()
Djni_native.h30 (JNIEnv *, jobject, jint bytesPerFrame, jint threadType, jint performanceMode);
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DNativeAudioThread.java165 int bytesPerFrame, int threadType, int performanceMode); in nativeComputeDefaultSettings() argument