Home
last modified time | relevance | path

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

12

/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessor.java70 private int bytesPerFrame; field in SilenceSkippingAudioProcessor
182 skippedFrames += paddingSize / bytesPerFrame; in onQueueEndOfStream()
189 bytesPerFrame = inputAudioFormat.bytesPerFrame; in onFlush()
190 int maybeSilenceBufferSize = durationUsToFrames(minimumSilenceDurationUs) * bytesPerFrame; in onFlush()
194 paddingSize = durationUsToFrames(paddingSilenceUs) * bytesPerFrame; in onFlush()
262 skippedFrames += (maybeSilenceBufferSize - paddingSize * 2) / bytesPerFrame; in processMaybeSilence()
264 skippedFrames += (maybeSilenceBufferSize - paddingSize) / bytesPerFrame; in processMaybeSilence()
284 skippedFrames += inputBuffer.remaining() / bytesPerFrame; in processSilence()
353 return bytesPerFrame * (i / bytesPerFrame); in findNoisePosition()
368 return bytesPerFrame * (i / bytesPerFrame) + bytesPerFrame; in findNoiseLimit()
DTrimmingAudioProcessor.java94 trimmedFrameCount += trimBytes / inputAudioFormat.bytesPerFrame; in queueInput()
153 trimmedFrameCount += endBufferSize / inputAudioFormat.bytesPerFrame; in onQueueEndOfStream()
164 endBuffer = new byte[trimEndFrames * inputAudioFormat.bytesPerFrame]; in onFlush()
165 pendingTrimStartBytes = trimStartFrames * inputAudioFormat.bytesPerFrame; in onFlush()
DChannelMappingAudioProcessor.java76 int frameCount = (limit - position) / inputAudioFormat.bytesPerFrame; in queueInput()
77 int outputSize = frameCount * outputAudioFormat.bytesPerFrame; in queueInput()
83 position += inputAudioFormat.bytesPerFrame; in queueInput()
DAudioProcessor.java48 public final int bytesPerFrame; field in AudioProcessor.AudioFormat
54 bytesPerFrame = in AudioFormat()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessor.java73 private int bytesPerFrame; field in SilenceSkippingAudioProcessor
185 skippedFrames += paddingSize / bytesPerFrame; in onQueueEndOfStream()
192 bytesPerFrame = inputAudioFormat.bytesPerFrame; in onFlush()
193 int maybeSilenceBufferSize = durationUsToFrames(minimumSilenceDurationUs) * bytesPerFrame; in onFlush()
197 paddingSize = durationUsToFrames(paddingSilenceUs) * bytesPerFrame; in onFlush()
265 skippedFrames += (maybeSilenceBufferSize - paddingSize * 2) / bytesPerFrame; in processMaybeSilence()
267 skippedFrames += (maybeSilenceBufferSize - paddingSize) / bytesPerFrame; in processMaybeSilence()
287 skippedFrames += inputBuffer.remaining() / bytesPerFrame; in processSilence()
356 return bytesPerFrame * (i / bytesPerFrame); in findNoisePosition()
371 return bytesPerFrame * (i / bytesPerFrame) + bytesPerFrame; in findNoiseLimit()
DTrimmingAudioProcessor.java94 trimmedFrameCount += trimBytes / inputAudioFormat.bytesPerFrame; in queueInput()
153 trimmedFrameCount += endBufferSize / inputAudioFormat.bytesPerFrame; in onQueueEndOfStream()
164 endBuffer = new byte[trimEndFrames * inputAudioFormat.bytesPerFrame]; in onFlush()
165 pendingTrimStartBytes = trimStartFrames * inputAudioFormat.bytesPerFrame; in onFlush()
DChannelMappingAudioProcessor.java76 int frameCount = (limit - position) / inputAudioFormat.bytesPerFrame; in queueInput()
77 int outputSize = frameCount * outputAudioFormat.bytesPerFrame; in queueInput()
83 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/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/
DSpeedChangingAudioProcessor.java66 /* divisor= */ (long) inputAudioFormat.sampleRate * inputAudioFormat.bytesPerFrame); in queueInput()
86 * inputAudioFormat.bytesPerFrame, in queueInput()
89 inputAudioFormat.bytesPerFrame - bytesToNextSpeedChange % inputAudioFormat.bytesPerFrame; in queueInput()
90 if (bytesToNextFrame != inputAudioFormat.bytesPerFrame) { in queueInput()
DAudioTranscodingSamplePipeline.java263 encoderInputAudioFormat.bytesPerFrame, in feedEncoder()
281 long bytesWritten, int bytesPerFrame, int sampleRate) { in computeNextEncoderInputBufferTimeUs() argument
288 long denominator = (long) bytesPerFrame * sampleRate; in computeNextEncoderInputBufferTimeUs()
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioManager.java103 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinOutputFrameSize() local
108 / bytesPerFrame; in getMinOutputFrameSize()
115 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinInputFrameSize() local
120 / bytesPerFrame; in getMinInputFrameSize()
/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()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java305 int bytesPerFrame = wavFormat.numChannels * wavFormat.bitsPerSample / 8; in PassthroughOutputWriter() local
307 if (wavFormat.blockSize != bytesPerFrame) { in PassthroughOutputWriter()
309 "Expected block size: " + bytesPerFrame + "; got: " + wavFormat.blockSize, in PassthroughOutputWriter()
313 int constantBitrate = wavFormat.frameRateHz * bytesPerFrame * 8; in PassthroughOutputWriter()
315 max(bytesPerFrame, wavFormat.frameRateHz * bytesPerFrame / TARGET_SAMPLES_PER_SECOND); in PassthroughOutputWriter()
359 int bytesPerFrame = wavFormat.blockSize; in sampleData() local
360 int pendingFrames = pendingOutputBytes / bytesPerFrame; in sampleData()
366 int size = pendingFrames * bytesPerFrame; in sampleData()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java306 int bytesPerFrame = wavFormat.numChannels * wavFormat.bitsPerSample / 8; in PassthroughOutputWriter() local
308 if (wavFormat.blockSize != bytesPerFrame) { in PassthroughOutputWriter()
310 "Expected block size: " + bytesPerFrame + "; got: " + wavFormat.blockSize, in PassthroughOutputWriter()
314 int constantBitrate = wavFormat.frameRateHz * bytesPerFrame * 8; in PassthroughOutputWriter()
316 max(bytesPerFrame, wavFormat.frameRateHz * bytesPerFrame / TARGET_SAMPLES_PER_SECOND); in PassthroughOutputWriter()
360 int bytesPerFrame = wavFormat.blockSize; in sampleData() local
361 int pendingFrames = pendingOutputBytes / bytesPerFrame; in sampleData()
367 int size = pendingFrames * bytesPerFrame; in sampleData()
/external/oboe/include/oboe/
DFifoBuffer.h37 FifoBuffer(uint32_t bytesPerFrame, uint32_t capacityInFrames);
49 FifoBuffer(uint32_t bytesPerFrame,
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java334 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinOutputFrameSize() local
339 / bytesPerFrame; in getMinOutputFrameSize()
352 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinInputFrameSize() local
357 / bytesPerFrame; in getMinInputFrameSize()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/e2etest/
DEndToEndGaplessTest.java105 int bytesPerFrame = audioTrackListener.getAudioTrackOutputFormat().getFrameSizeInBytes(); in testPlayback_twoIdenticalMp3Files() local
106 int paddingBytes = max(0, playerAudioFormat.encoderPadding) * bytesPerFrame; in testPlayback_twoIdenticalMp3Files()
107 int delayBytes = max(0, playerAudioFormat.encoderDelay) * bytesPerFrame; in testPlayback_twoIdenticalMp3Files()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/e2etest/
DEndToEndGaplessTest.java105 int bytesPerFrame = audioTrackListener.getAudioTrackOutputFormat().getFrameSizeInBytes(); in testPlayback_twoIdenticalMp3Files() local
106 int paddingBytes = max(0, playerAudioFormat.encoderPadding) * bytesPerFrame; in testPlayback_twoIdenticalMp3Files()
107 int delayBytes = max(0, playerAudioFormat.encoderDelay) * bytesPerFrame; in testPlayback_twoIdenticalMp3Files()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessorTest.java260 int bytesPerFrame = AUDIO_FORMAT.bytesPerFrame; in process() local
268 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
275 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
DTrimmingAudioProcessorTest.java42 AUDIO_FORMAT.bytesPerFrame * TRACK_ONE_UNTRIMMED_FRAME_COUNT;
45 - AUDIO_FORMAT.bytesPerFrame
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/audio/
DSilenceSkippingAudioProcessorTest.java260 int bytesPerFrame = AUDIO_FORMAT.bytesPerFrame; in process() local
268 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
275 totalOutputFrames += outputBuffer.remaining() / bytesPerFrame; in process()
DTrimmingAudioProcessorTest.java42 AUDIO_FORMAT.bytesPerFrame * TRACK_ONE_UNTRIMMED_FRAME_COUNT;
45 - AUDIO_FORMAT.bytesPerFrame
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/transformer/src/main/java/com/google/android/exoplayer2/transformer/
DAudioSamplePipeline.java278 encoderInputAudioFormat.bytesPerFrame, in feedEncoder()
312 long bytesWritten, int bytesPerFrame, int sampleRate) { in computeNextEncoderInputBufferTimeUs() argument
319 long denominator = (long) bytesPerFrame * sampleRate; in computeNextEncoderInputBufferTimeUs()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/test/java/com/google/android/exoplayer2/transformer/
DSpeedChangingAudioProcessorTest.java218 assertThat(inputBuffer.position()).isEqualTo(4 * AUDIO_FORMAT.bytesPerFrame); in queueInput_multipleSpeedsInBufferWithLimitAtFrameBoundary_readsDataUntilSpeedLimit()
237 assertThat(inputBuffer.position()).isEqualTo(4 * AUDIO_FORMAT.bytesPerFrame); in queueInput_multipleSpeedsInBufferWithLimitInsideFrame_readsDataUntilSpeedLimit()
364 int bufferSize = frameCount * AUDIO_FORMAT.bytesPerFrame; in getInputBuffer()

12