Java Code Examples for com.google.android.exoplayer2.text.SubtitleInputBuffer#isDecodeOnly()
The following examples show how to use
com.google.android.exoplayer2.text.SubtitleInputBuffer#isDecodeOnly() .
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: CeaDecoder.java From MediaSDK with Apache License 2.0 | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(dequeuedInputBuffer); } else { dequeuedInputBuffer.queuedInputBufferCount = queuedInputBufferCount++; queuedInputBuffers.add(dequeuedInputBuffer); } dequeuedInputBuffer = null; }
Example 2
Source File: CeaDecoder.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(dequeuedInputBuffer); } else { dequeuedInputBuffer.queuedInputBufferCount = queuedInputBufferCount++; queuedInputBuffers.add(dequeuedInputBuffer); } dequeuedInputBuffer = null; }
Example 3
Source File: CeaDecoder.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(dequeuedInputBuffer); } else { dequeuedInputBuffer.queuedInputBufferCount = queuedInputBufferCount++; queuedInputBuffers.add(dequeuedInputBuffer); } dequeuedInputBuffer = null; }
Example 4
Source File: CeaDecoder.java From K-Sonic with MIT License | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer != null); Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(inputBuffer); } else { queuedInputBuffers.add(inputBuffer); } dequeuedInputBuffer = null; }
Example 5
Source File: CeaDecoder.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(dequeuedInputBuffer); } else { dequeuedInputBuffer.queuedInputBufferCount = queuedInputBufferCount++; queuedInputBuffers.add(dequeuedInputBuffer); } dequeuedInputBuffer = null; }
Example 6
Source File: CeaDecoder.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException { Assertions.checkArgument(inputBuffer == dequeuedInputBuffer); if (inputBuffer.isDecodeOnly()) { // We can drop this buffer early (i.e. before it would be decoded) as the CEA formats allow // for decoding to begin mid-stream. releaseInputBuffer(dequeuedInputBuffer); } else { dequeuedInputBuffer.queuedInputBufferCount = queuedInputBufferCount++; queuedInputBuffers.add(dequeuedInputBuffer); } dequeuedInputBuffer = null; }