Home
last modified time | relevance | path

Searched refs:sampleBytesRead (Results 1 – 3 of 3) sorted by relevance

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DId3Reader.java49 private int sampleBytesRead; field in Id3Reader
79 sampleBytesRead = 0; in packetStarted()
89 if (sampleBytesRead < ID3_HEADER_LENGTH) { in consume()
91 int headerBytesAvailable = Math.min(bytesAvailable, ID3_HEADER_LENGTH - sampleBytesRead); in consume()
92 System.arraycopy(data.data, data.getPosition(), id3Header.data, sampleBytesRead, in consume()
94 if (sampleBytesRead + headerBytesAvailable == ID3_HEADER_LENGTH) { in consume()
108 int bytesToWrite = Math.min(bytesAvailable, sampleSize - sampleBytesRead); in consume()
110 sampleBytesRead += bytesToWrite; in consume()
116 if (!writingSample || sampleSize == 0 || sampleBytesRead != sampleSize) { in packetFinished()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DMp4Extractor.java113 private int sampleBytesRead; field in Mp4Extractor
163 sampleBytesRead = 0; in seek()
513 long skipAmount = position - inputPosition + sampleBytesRead; in readSample()
541 sampleBytesRead += nalUnitLengthFieldLength; in readSample()
556 sampleBytesRead += writtenBytes; in readSample()
572 sampleBytesRead += writtenBytes; in readSample()
581 sampleBytesRead = 0; in readSample()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/
DMatroskaExtractor.java396 private int sampleBytesRead; field in MatroskaExtractor
1336 sampleBytesRead++; in writeSampleData()
1349 sampleBytesRead += ENCRYPTION_IV_SIZE; in writeSampleData()
1367 sampleBytesRead++; in writeSampleData()
1375 sampleBytesRead += samplePartitionDataSize; in writeSampleData()
1401 int finalPartitionSize = size - sampleBytesRead - partitionOffset; in writeSampleData()
1453 while (sampleBytesRead < size) { in writeSampleData()
1458 sampleBytesRead += nalUnitLengthFieldLength; in writeSampleData()
1468 sampleBytesRead += bytesWritten; in writeSampleData()
1478 while (sampleBytesRead < size) { in writeSampleData()
[all …]