Home
last modified time | relevance | path

Searched refs:peekFully (Results 1 – 25 of 32) sorted by relevance

12

/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/
DDefaultExtractorInputTest.java473 public void peekFully() throws Exception { in peekFully() method in DefaultExtractorInputTest
476 input.peekFully(target, 0, TEST_DATA.length); in peekFully()
492 input.peekFully(target, 0, 1); in peekFully()
505 input.peekFully(target, /* offset= */ 0, target.length); in peekFullyAfterEofExceptionPeeksAsExpected()
510 input.peekFully(target, /* offset= */ 0, /* length= */ TEST_DATA.length); in peekFullyAfterEofExceptionPeeksAsExpected()
520 input.peekFully(target, 0, TEST_DATA.length); in resetPeekPosition()
529 input.peekFully(target2, 0, TEST_DATA.length); in resetPeekPosition()
534 input.peekFully(target, 0, 1); in resetPeekPosition()
547 assertThat(input.peekFully(target, 0, TEST_DATA.length, true)).isTrue(); in peekFullyAtEndOfStreamWithAllowEndOfInputSucceeds()
550 assertThat(input.peekFully(target, 0, 1, true)).isFalse(); in peekFullyAtEndOfStreamWithAllowEndOfInputSucceeds()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DSniffer.java48 input.peekFully(scratch.data, 0, 4); in sniff()
55 input.peekFully(scratch.data, 0, 1); in sniff()
89 input.peekFully(scratch.data, 0, 1); in readUint()
101 input.peekFully(scratch.data, 1, length); in readUint()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavHeaderReader.java57 input.peekFully(scratch.data, 0, 4); in peek()
73 input.peekFully(scratch.data, 0, 16); in peek()
86 input.peekFully(extraData, 0, bytesLeft); in peek()
178 input.peekFully(scratch.data, /* offset= */ 0, /* length= */ SIZE_IN_BYTES); in peek()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DPsExtractor.java94 input.peekFully(scratch, 0, 14); in sniff()
125 input.peekFully(scratch, 0, 3); in sniff()
185 if (!input.peekFully(psPacketBuffer.data, 0, 4, true)) { in read()
195 input.peekFully(psPacketBuffer.data, 0, 10); in read()
208 input.peekFully(psPacketBuffer.data, 0, 2); in read()
263 input.peekFully(psPacketBuffer.data, 0, 2); in read()
DAdtsExtractor.java132 input.peekFully(scratch.data, 0, 2); in sniff()
149 input.peekFully(scratch.data, 0, 4); in sniff()
217 input.peekFully(scratch.data, /* offset= */ 0, ID3_HEADER_LENGTH); in peekId3Header()
272 while (input.peekFully( in calculateAverageFrameSize()
283 if (!input.peekFully( in calculateAverageFrameSize()
DAc3Extractor.java69 input.peekFully(scratch.data, /* offset= */ 0, ID3_HEADER_LENGTH); in sniff()
85 input.peekFully(scratch.data, 0, 6); in sniff()
DAc4Extractor.java76 input.peekFully(scratch.data, /* offset= */ 0, ID3_HEADER_LENGTH); in sniff()
92 input.peekFully(scratch.data, /* offset= */ 0, /* length= */ FRAME_HEADER_SIZE); in sniff()
DTsDurationReader.java135 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in readFirstPcrValue()
171 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in readLastPcrValue()
DPsDurationReader.java148 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in readFirstScrValue()
185 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in readLastScrValue()
DTsBinarySearchSeeker.java82 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in searchForTimestamp()
DPsBinarySearchSeeker.java78 input.peekFully(packetBuffer.data, /* offset= */ 0, bytesToSearch); in searchForTimestamp()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DSniffer.java100 input.peekFully(buffer.data, 0, headerSize); in sniffInternal()
106 input.peekFully(buffer.data, Atom.HEADER_SIZE, Atom.LONG_HEADER_SIZE - Atom.HEADER_SIZE); in sniffInternal()
154 input.peekFully(buffer.data, 0, atomDataSize); in sniffInternal()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DExtractorInput.java190 boolean peekFully(byte[] target, int offset, int length, boolean allowEndOfInput) in peekFully() method
203 void peekFully(byte[] target, int offset, int length) throws IOException; in peekFully() method
DId3Peeker.java55 input.peekFully(scratch.data, /* offset= */ 0, Id3Decoder.ID3_HEADER_LENGTH); in peekId3Data()
72 input.peekFully(id3Data, Id3Decoder.ID3_HEADER_LENGTH, framesLength); in peekId3Data()
DDefaultExtractorInput.java138 public boolean peekFully(byte[] target, int offset, int length, boolean allowEndOfInput) in peekFully() method in DefaultExtractorInput
148 public void peekFully(byte[] target, int offset, int length) throws IOException { in peekFully() method in DefaultExtractorInput
149 peekFully(target, offset, length, false); in peekFully()
DFlacMetadataReader.java83 input.peekFully(scratch.data, 0, FlacConstants.STREAM_MARKER_SIZE); in checkAndPeekStreamMarker()
151 input.peekFully(scratch.data, 0, FlacConstants.METADATA_BLOCK_HEADER_SIZE); in readMetadataBlock()
232 input.peekFully(scratch.data, 0, 2); in getFrameStartMarker()
DFlacFrameReader.java100 input.peekFully(frameStartBytes, 0, 2); in checkFrameHeaderFromPeek()
141 input.peekFully(blockingStrategyByte, 0, 1); in getFirstSampleNumber()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/
DFlvExtractor.java101 input.peekFully(scratch.data, 0, 3); in sniff()
108 input.peekFully(scratch.data, 0, 2); in sniff()
115 input.peekFully(scratch.data, 0, 4); in sniff()
123 input.peekFully(scratch.data, 0, 4); in sniff()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPageHeader.java91 if (!hasEnoughBytes || !input.peekFully(scratch.data, 0, EMPTY_PAGE_HEADER_SIZE, true)) { in populate()
125 input.peekFully(scratch.data, 0, pageSegmentCount); in populate()
DOggExtractor.java99 input.peekFully(scratch.data, 0, length); in sniffInternal()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeExtractorInput.java152 public boolean peekFully(byte[] target, int offset, int length, boolean allowEndOfInput) in peekFully() method in FakeExtractorInput
159 public void peekFully(byte[] target, int offset, int length) throws IOException { in peekFully() method in FakeExtractorInput
160 peekFully(target, offset, length, false); in peekFully()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DMp3Extractor.java416 return !extractorInput.peekFully( in peekEndOfStreamOrHeader()
474 input.peekFully(frame.data, 0, synchronizedHeader.frameSize); in maybeReadSeekFrame()
486 input.peekFully(scratch.data, 0, 3); in maybeReadSeekFrame()
508 input.peekFully(scratch.data, 0, 4); in getConstantBitrateSeeker()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DWebvttExtractor.java77 input.peekFully( in sniff()
84 input.peekFully( in sniff()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractor.java247 input.peekFully(header, 0, amrSignature.length); in peekAmrSignature()
308 extractorInput.peekFully(scratch, /* offset= */ 0, /* length= */ 1); in peekNextSampleSize()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/rawcc/
DRawCcExtractor.java76 input.peekFully(dataScratch.data, 0, HEADER_SIZE); in sniff()

12