Home
last modified time | relevance | path

Searched refs:sectionData (Results 1 – 25 of 30) sorted by relevance

12

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/metadata/dvbsi/
DAppInfoTableDecoder.java58 private static Metadata parseAit(ParsableBitArray sectionData) { in parseAit() argument
60 sectionData.skipBits(12); in parseAit()
61 int sectionLength = sectionData.readBits(12); in parseAit()
62 int endOfSection = sectionData.getBytePosition() + sectionLength - 4 /* Ignore leading CRC */; in parseAit()
66 sectionData.skipBits(44); in parseAit()
68 int commonDescriptorsLength = sectionData.readBits(12); in parseAit()
72 sectionData.skipBytes(commonDescriptorsLength); in parseAit()
75 sectionData.skipBits(16); in parseAit()
78 while (sectionData.getBytePosition() < endOfSection) { in parseAit()
83 sectionData.skipBits(48); in parseAit()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/metadata/dvbsi/
DAppInfoTableDecoder.java58 private static Metadata parseAit(ParsableBitArray sectionData) { in parseAit() argument
60 sectionData.skipBits(12); in parseAit()
61 int sectionLength = sectionData.readBits(12); in parseAit()
62 int endOfSection = sectionData.getBytePosition() + sectionLength - 4 /* Ignore leading CRC */; in parseAit()
66 sectionData.skipBits(44); in parseAit()
68 int commonDescriptorsLength = sectionData.readBits(12); in parseAit()
72 sectionData.skipBytes(commonDescriptorsLength); in parseAit()
75 sectionData.skipBits(16); in parseAit()
78 while (sectionData.getBytePosition() < endOfSection) { in parseAit()
83 sectionData.skipBits(48); in parseAit()
[all …]
/external/aac/libAACenc/src/
Ddyn_bits.cpp344 SECTION_DATA* const RESTRICT sectionData, INT mergeGainLookUp[MAX_SFB_LONG], in FDKaacEnc_noiselessCounter() argument
366 sectionData->noOfSections = 0; in FDKaacEnc_noiselessCounter()
367 sectionData->huffmanBits = 0; in FDKaacEnc_noiselessCounter()
368 sectionData->sideInfoBits = 0; in FDKaacEnc_noiselessCounter()
370 if (sectionData->maxSfbPerGroup == 0) return; in FDKaacEnc_noiselessCounter()
373 for (grpNdx = 0; grpNdx < sectionData->sfbCnt; in FDKaacEnc_noiselessCounter()
374 grpNdx += sectionData->sfbPerGroup) { in FDKaacEnc_noiselessCounter()
375 huffsection = sectionData->huffsection + sectionData->noOfSections; in FDKaacEnc_noiselessCounter()
378 FDKaacEnc_buildBitLookUp(quantSpectrum, sectionData->maxSfbPerGroup, in FDKaacEnc_noiselessCounter()
383 FDKaacEnc_gmStage0(huffsection, bitLookUp, sectionData->maxSfbPerGroup, in FDKaacEnc_noiselessCounter()
[all …]
Dbitenc.cpp128 SECTION_DATA *sectionData, in FDKaacEnc_encodeSpectralData() argument
134 for (i = 0; i < sectionData->noOfSections; i++) { in FDKaacEnc_encodeSpectralData()
135 if (sectionData->huffsection[i].codeBook != CODE_BOOK_PNS_NO) { in FDKaacEnc_encodeSpectralData()
137 INT tmp = sectionData->huffsection[i].sfbStart + in FDKaacEnc_encodeSpectralData()
138 sectionData->huffsection[i].sfbCnt; in FDKaacEnc_encodeSpectralData()
139 for (sfb = sectionData->huffsection[i].sfbStart; sfb < tmp; sfb++) { in FDKaacEnc_encodeSpectralData()
142 sectionData->huffsection[i].codeBook, hBitStream); in FDKaacEnc_encodeSpectralData()
239 static INT FDKaacEnc_encodeSectionData(SECTION_DATA *sectionData, in FDKaacEnc_encodeSectionData() argument
249 switch (sectionData->blockType) { in FDKaacEnc_encodeSectionData()
263 for (i = 0; i < sectionData->noOfSections; i++) { in FDKaacEnc_encodeSectionData()
[all …]
Dqc_main.cpp998 psyOutCh->sfbOffsets, &qcOutCh->sectionData, psyOutCh->noiseNrg, in FDKaacEnc_QCMain()
1415 for (sect = 0; sect < qcChannel[ch]->sectionData.noOfSections; sect++) { in FDKaacEnc_crashRecovery()
1416 INT codeBook = qcChannel[ch]->sectionData.huffsection[sect].codeBook; in FDKaacEnc_crashRecovery()
1418 for (sfb = qcChannel[ch]->sectionData.huffsection[sect].sfbStart; in FDKaacEnc_crashRecovery()
1419 sfb < qcChannel[ch]->sectionData.huffsection[sect].sfbStart + in FDKaacEnc_crashRecovery()
1420 qcChannel[ch]->sectionData.huffsection[sect].sfbCnt; in FDKaacEnc_crashRecovery()
1439 for (sfb = qcChannel[0]->sectionData.maxSfbPerGroup - 1; sfb >= 0; sfb--) { in FDKaacEnc_crashRecovery()
1444 qcChannel[ch]->sectionData.huffsection[sect].sfbCnt--; in FDKaacEnc_crashRecovery()
1447 if (qcChannel[ch]->sectionData.huffsection[sect].sfbCnt == 0) { in FDKaacEnc_crashRecovery()
1467 qcChannel[ch]->sectionData.maxSfbPerGroup = sfb; in FDKaacEnc_crashRecovery()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DSectionReader.java38 private final ParsableByteArray sectionData; field in SectionReader
47 sectionData = new ParsableByteArray(DEFAULT_SECTION_BUFFER_LENGTH); in SectionReader()
98 data.readBytes(sectionData.getData(), bytesRead, headerBytesToRead); in consume()
101 sectionData.setPosition(0); in consume()
102 sectionData.setLimit(SECTION_HEADER_LENGTH); in consume()
103 sectionData.skipBytes(1); // Skip table id (8). in consume()
104 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
105 int thirdHeaderByte = sectionData.readUnsignedByte(); in consume()
109 if (sectionData.capacity() < totalSectionLength) { in consume()
112 min(MAX_SECTION_LENGTH, max(totalSectionLength, sectionData.capacity() * 2)); in consume()
[all …]
DTsExtractor.java504 public void consume(ParsableByteArray sectionData) { in consume() argument
505 int tableId = sectionData.readUnsignedByte(); in consume()
511 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
518 sectionData.skipBytes(6); in consume()
520 int programCount = sectionData.bytesLeft() / 4; in consume()
522 sectionData.readBytes(patScratch, 4); in consume()
576 public void consume(ParsableByteArray sectionData) { in consume() argument
577 int tableId = sectionData.readUnsignedByte(); in consume()
593 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
599 sectionData.skipBytes(1); in consume()
[all …]
DPassthroughSectionPayloadReader.java63 public void consume(ParsableByteArray sectionData) { in consume() argument
75 int sampleSize = sectionData.bytesLeft(); in consume()
76 output.sampleData(sectionData, sampleSize); in consume()
DSectionPayloadReader.java47 void consume(ParsableByteArray sectionData); in consume() argument
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DSectionReader.java38 private final ParsableByteArray sectionData; field in SectionReader
47 sectionData = new ParsableByteArray(DEFAULT_SECTION_BUFFER_LENGTH); in SectionReader()
98 data.readBytes(sectionData.getData(), bytesRead, headerBytesToRead); in consume()
101 sectionData.setPosition(0); in consume()
102 sectionData.setLimit(SECTION_HEADER_LENGTH); in consume()
103 sectionData.skipBytes(1); // Skip table id (8). in consume()
104 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
105 int thirdHeaderByte = sectionData.readUnsignedByte(); in consume()
109 if (sectionData.capacity() < totalSectionLength) { in consume()
112 min(MAX_SECTION_LENGTH, max(totalSectionLength, sectionData.capacity() * 2)); in consume()
[all …]
DTsExtractor.java507 public void consume(ParsableByteArray sectionData) { in consume() argument
508 int tableId = sectionData.readUnsignedByte(); in consume()
514 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
521 sectionData.skipBytes(6); in consume()
523 int programCount = sectionData.bytesLeft() / 4; in consume()
525 sectionData.readBytes(patScratch, 4); in consume()
579 public void consume(ParsableByteArray sectionData) { in consume() argument
580 int tableId = sectionData.readUnsignedByte(); in consume()
596 int secondHeaderByte = sectionData.readUnsignedByte(); in consume()
602 sectionData.skipBytes(1); in consume()
[all …]
DPassthroughSectionPayloadReader.java63 public void consume(ParsableByteArray sectionData) { in consume() argument
75 int sampleSize = sectionData.bytesLeft(); in consume()
76 output.sampleData(sectionData, sampleSize); in consume()
DSectionPayloadReader.java47 void consume(ParsableByteArray sectionData); in consume() argument
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/metadata/scte35/
DSpliceScheduleCommand.java118 private static Event parseFromSection(ParsableByteArray sectionData) { in parseFromSection() argument
119 long spliceEventId = sectionData.readUnsignedInt(); in parseFromSection()
121 boolean spliceEventCancelIndicator = (sectionData.readUnsignedByte() & 0x80) != 0; in parseFromSection()
132 int headerByte = sectionData.readUnsignedByte(); in parseFromSection()
137 utcSpliceTime = sectionData.readUnsignedInt(); in parseFromSection()
140 int componentCount = sectionData.readUnsignedByte(); in parseFromSection()
143 int componentTag = sectionData.readUnsignedByte(); in parseFromSection()
144 long componentUtcSpliceTime = sectionData.readUnsignedInt(); in parseFromSection()
149 long firstByte = sectionData.readUnsignedByte(); in parseFromSection()
151 long breakDuration90khz = ((firstByte & 0x01) << 32) | sectionData.readUnsignedInt(); in parseFromSection()
[all …]
DSpliceInsertCommand.java130 ParsableByteArray sectionData, long ptsAdjustment, TimestampAdjuster timestampAdjuster) { in parseFromSection() argument
131 long spliceEventId = sectionData.readUnsignedInt(); in parseFromSection()
133 boolean spliceEventCancelIndicator = (sectionData.readUnsignedByte() & 0x80) != 0; in parseFromSection()
145 int headerByte = sectionData.readUnsignedByte(); in parseFromSection()
151 programSplicePts = TimeSignalCommand.parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
154 int componentCount = sectionData.readUnsignedByte(); in parseFromSection()
157 int componentTag = sectionData.readUnsignedByte(); in parseFromSection()
160 componentSplicePts = TimeSignalCommand.parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
170 long firstByte = sectionData.readUnsignedByte(); in parseFromSection()
172 long breakDuration90khz = ((firstByte & 0x01) << 32) | sectionData.readUnsignedInt(); in parseFromSection()
[all …]
DSpliceInfoDecoder.java37 private final ParsableByteArray sectionData; field in SpliceInfoDecoder
43 sectionData = new ParsableByteArray(); in SpliceInfoDecoder()
59 sectionData.reset(data, size); in decode()
72 sectionData.skipBytes(14); in decode()
78 command = SpliceScheduleCommand.parseFromSection(sectionData); in decode()
82 SpliceInsertCommand.parseFromSection(sectionData, ptsAdjustment, timestampAdjuster); in decode()
85 command = TimeSignalCommand.parseFromSection(sectionData, ptsAdjustment, timestampAdjuster); in decode()
88 command = PrivateCommand.parseFromSection(sectionData, spliceCommandLength, ptsAdjustment); in decode()
DTimeSignalCommand.java37 ParsableByteArray sectionData, long ptsAdjustment, TimestampAdjuster timestampAdjuster) { in parseFromSection() argument
38 long ptsTime = parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
52 /* package */ static long parseSpliceTime(ParsableByteArray sectionData, long ptsAdjustment) { in parseSpliceTime() argument
53 long firstByte = sectionData.readUnsignedByte(); in parseSpliceTime()
57 ptsTime = (firstByte & 0x01) << 32 | sectionData.readUnsignedInt(); in parseSpliceTime()
DPrivateCommand.java46 ParsableByteArray sectionData, int commandLength, long ptsAdjustment) { in parseFromSection() argument
47 long identifier = sectionData.readUnsignedInt(); in parseFromSection()
49 sectionData.readBytes(privateBytes, 0, privateBytes.length); in parseFromSection()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/metadata/scte35/
DSpliceScheduleCommand.java118 private static Event parseFromSection(ParsableByteArray sectionData) { in parseFromSection() argument
119 long spliceEventId = sectionData.readUnsignedInt(); in parseFromSection()
121 boolean spliceEventCancelIndicator = (sectionData.readUnsignedByte() & 0x80) != 0; in parseFromSection()
132 int headerByte = sectionData.readUnsignedByte(); in parseFromSection()
137 utcSpliceTime = sectionData.readUnsignedInt(); in parseFromSection()
140 int componentCount = sectionData.readUnsignedByte(); in parseFromSection()
143 int componentTag = sectionData.readUnsignedByte(); in parseFromSection()
144 long componentUtcSpliceTime = sectionData.readUnsignedInt(); in parseFromSection()
149 long firstByte = sectionData.readUnsignedByte(); in parseFromSection()
151 long breakDuration90khz = ((firstByte & 0x01) << 32) | sectionData.readUnsignedInt(); in parseFromSection()
[all …]
DSpliceInsertCommand.java130 ParsableByteArray sectionData, long ptsAdjustment, TimestampAdjuster timestampAdjuster) { in parseFromSection() argument
131 long spliceEventId = sectionData.readUnsignedInt(); in parseFromSection()
133 boolean spliceEventCancelIndicator = (sectionData.readUnsignedByte() & 0x80) != 0; in parseFromSection()
145 int headerByte = sectionData.readUnsignedByte(); in parseFromSection()
151 programSplicePts = TimeSignalCommand.parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
154 int componentCount = sectionData.readUnsignedByte(); in parseFromSection()
157 int componentTag = sectionData.readUnsignedByte(); in parseFromSection()
160 componentSplicePts = TimeSignalCommand.parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
170 long firstByte = sectionData.readUnsignedByte(); in parseFromSection()
172 long breakDuration90khz = ((firstByte & 0x01) << 32) | sectionData.readUnsignedInt(); in parseFromSection()
[all …]
DSpliceInfoDecoder.java37 private final ParsableByteArray sectionData; field in SpliceInfoDecoder
43 sectionData = new ParsableByteArray(); in SpliceInfoDecoder()
59 sectionData.reset(data, size); in decode()
72 sectionData.skipBytes(14); in decode()
78 command = SpliceScheduleCommand.parseFromSection(sectionData); in decode()
82 SpliceInsertCommand.parseFromSection(sectionData, ptsAdjustment, timestampAdjuster); in decode()
85 command = TimeSignalCommand.parseFromSection(sectionData, ptsAdjustment, timestampAdjuster); in decode()
88 command = PrivateCommand.parseFromSection(sectionData, spliceCommandLength, ptsAdjustment); in decode()
DTimeSignalCommand.java37 ParsableByteArray sectionData, long ptsAdjustment, TimestampAdjuster timestampAdjuster) { in parseFromSection() argument
38 long ptsTime = parseSpliceTime(sectionData, ptsAdjustment); in parseFromSection()
52 /* package */ static long parseSpliceTime(ParsableByteArray sectionData, long ptsAdjustment) { in parseSpliceTime() argument
53 long firstByte = sectionData.readUnsignedByte(); in parseSpliceTime()
57 ptsTime = (firstByte & 0x01) << 32 | sectionData.readUnsignedInt(); in parseSpliceTime()
DPrivateCommand.java46 ParsableByteArray sectionData, int commandLength, long ptsAdjustment) { in parseFromSection() argument
47 long identifier = sectionData.readUnsignedInt(); in parseFromSection()
49 sectionData.readBytes(privateBytes, 0, privateBytes.length); in parseFromSection()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorTest.java306 public void consume(ParsableByteArray sectionData) { in consume() argument
311 sectionData.skipBytes(11); in consume()
313 assertThat(sectionData.readUnsignedShort()).isEqualTo(0x5566 /* arbitrary service id */); in consume()
315 sectionData.skipBytes(1); in consume()
318 assertThat(sectionData.readUnsignedShort() & 0xFFF).isEqualTo(sectionData.bytesLeft()); in consume()
319 while (sectionData.bytesLeft() > 0) { in consume()
320 int descriptorTag = sectionData.readUnsignedByte(); in consume()
321 int descriptorLength = sectionData.readUnsignedByte(); in consume()
323 assertThat(sectionData.readUnsignedByte()).isEqualTo(1); // Service type: Digital TV. in consume()
324 int serviceProviderNameLength = sectionData.readUnsignedByte(); in consume()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorTest.java306 public void consume(ParsableByteArray sectionData) { in consume() argument
311 sectionData.skipBytes(11); in consume()
313 assertThat(sectionData.readUnsignedShort()).isEqualTo(0x5566 /* arbitrary service id */); in consume()
315 sectionData.skipBytes(1); in consume()
318 assertThat(sectionData.readUnsignedShort() & 0xFFF).isEqualTo(sectionData.bytesLeft()); in consume()
319 while (sectionData.bytesLeft() > 0) { in consume()
320 int descriptorTag = sectionData.readUnsignedByte(); in consume()
321 int descriptorLength = sectionData.readUnsignedByte(); in consume()
323 assertThat(sectionData.readUnsignedByte()).isEqualTo(1); // Service type: Digital TV. in consume()
324 int serviceProviderNameLength = sectionData.readUnsignedByte(); in consume()
[all …]

12