Java Code Examples for com.google.android.exoplayer2.audio.Ac3Util#TRUEHD_RECHUNK_SAMPLE_COUNT
The following examples show how to use
com.google.android.exoplayer2.audio.Ac3Util#TRUEHD_RECHUNK_SAMPLE_COUNT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MatroskaExtractor.java From MediaSDK with Apache License 2.0 | 6 votes |
public void sampleMetadata( Track track, long timeUs, @C.BufferFlags int flags, int size, int offset) { if (!foundSyncframe) { return; } if (chunkSampleCount++ == 0) { // This is the first sample in the chunk. chunkTimeUs = timeUs; chunkFlags = flags; chunkSize = 0; } chunkSize += size; chunkOffset = offset; // The offset is to the end of the sample. if (chunkSampleCount >= Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) { // We haven't read enough samples to output a chunk. return; } outputPendingSampleMetadata(track); }
Example 2
Source File: MatroskaExtractor.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void sampleMetadata(Track track, long timeUs) { if (!foundSyncframe) { return; } if (sampleCount++ == 0) { // This is the first sample in the chunk, so update the timestamp. this.timeUs = timeUs; } if (sampleCount < Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) { // We haven't read enough samples to output a chunk. return; } track.output.sampleMetadata(this.timeUs, blockFlags, chunkSize, 0, track.cryptoData); sampleCount = 0; }
Example 3
Source File: MatroskaExtractor.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
public void sampleMetadata(Track track, long timeUs) { if (!foundSyncframe) { return; } if (sampleCount++ == 0) { // This is the first sample in the chunk, so update the timestamp. this.timeUs = timeUs; } if (sampleCount < Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) { // We haven't read enough samples to output a chunk. return; } track.output.sampleMetadata(this.timeUs, blockFlags, chunkSize, 0, track.cryptoData); sampleCount = 0; }
Example 4
Source File: MatroskaExtractor.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public void sampleMetadata(Track track, long timeUs) { if (!foundSyncframe) { return; } if (sampleCount++ == 0) { // This is the first sample in the chunk, so update the timestamp. this.timeUs = timeUs; } if (sampleCount < Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) { // We haven't read enough samples to output a chunk. return; } track.output.sampleMetadata(this.timeUs, blockFlags, chunkSize, 0, track.cryptoData); sampleCount = 0; }
Example 5
Source File: MatroskaExtractor.java From Telegram with GNU General Public License v2.0 | 5 votes |
public void sampleMetadata(Track track, long timeUs) { if (!foundSyncframe) { return; } if (sampleCount++ == 0) { // This is the first sample in the chunk, so update the timestamp. this.timeUs = timeUs; } if (sampleCount < Ac3Util.TRUEHD_RECHUNK_SAMPLE_COUNT) { // We haven't read enough samples to output a chunk. return; } track.output.sampleMetadata(this.timeUs, blockFlags, chunkSize, 0, track.cryptoData); sampleCount = 0; }