public final class DtsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getDtsFrameSize(byte[] data)
Returns the size in bytes of the given DTS frame.
|
static int |
parseDtsAudioSampleCount(byte[] data)
Returns the number of audio samples represented by the given DTS frame.
|
static int |
parseDtsAudioSampleCount(ByteBuffer buffer)
Like
parseDtsAudioSampleCount(byte[]) but reads from a ByteBuffer . |
static Format |
parseDtsFormat(byte[] frame,
String trackId,
String language,
DrmInitData drmInitData)
Returns the DTS format given
data containing the DTS frame according to ETSI TS 102 114
subsections 5.3/5.4. |
public static Format parseDtsFormat(byte[] frame, String trackId, String language, DrmInitData drmInitData)
data
containing the DTS frame according to ETSI TS 102 114
subsections 5.3/5.4.frame
- The DTS frame to parse.trackId
- The track identifier to set on the format, or null.language
- The language to set on the format.drmInitData
- DrmInitData
to be included in the format.public static int parseDtsAudioSampleCount(byte[] data)
data
- The frame to parse.public static int parseDtsAudioSampleCount(ByteBuffer buffer)
parseDtsAudioSampleCount(byte[])
but reads from a ByteBuffer
. The
buffer's position is not modified.buffer
- The ByteBuffer
from which to read.public static int getDtsFrameSize(byte[] data)
data
- The frame to parse.