fm.liveswitch.matroska.TrackEntry Class Reference

A Matroska track entry element. More...

Public Member Functions

long[] getAttachmentLinks ()
 Gets the attachment links. More...
 
fm.liveswitch.matroska.Audio getAudio ()
 Gets the audio element. More...
 
fm.liveswitch.NullableLong getCodecDelay ()
 Gets the codec delay. More...
 
String getCodecId ()
 Gets the codec identifier. More...
 
String getCodecName ()
 Gets the codec name. More...
 
byte[] getCodecPrivate ()
 Gets the codec private. More...
 
fm.liveswitch.matroska.ContentEncodings getContentEncodings ()
 Gets the content encoding elements. More...
 
fm.liveswitch.NullableLong getDefaultDuration ()
 Gets the default duration. More...
 
boolean getFlagDefault ()
 Gets the default flag. More...
 
boolean getFlagEnabled ()
 Gets the enabled flag. More...
 
boolean getFlagForced ()
 Gets the forced flag. More...
 
boolean getFlagLacing ()
 Gets the lacing flag. More...
 
byte[] getId ()
 Gets the EBML ID. More...
 
String getLanguage ()
 Gets the language. More...
 
fm.liveswitch.NullableLong getMaxCache ()
 Gets the maximum cache. More...
 
long getMinCache ()
 Gets the minimum cache. More...
 
String getName ()
 Gets the name. More...
 
fm.liveswitch.NullableLong getSeekPreRoll ()
 Gets the seek pre-roll. More...
 
long getTrackNumber ()
 Gets the track number. More...
 
fm.liveswitch.NullableFloat getTrackTimecodeScale ()
 Gets the track timecode scale. More...
 
long getTrackType ()
 Gets the track type. More...
 
long getTrackUid ()
 Gets the track UID. More...
 
fm.liveswitch.matroska.Video getVideo ()
 Gets the video element. More...
 
void setAttachmentLinks (long[] value)
 Sets the attachment links. More...
 
void setAudio (fm.liveswitch.matroska.Audio value)
 Sets the audio element. More...
 
void setCodecDelay (fm.liveswitch.NullableLong value)
 Sets the codec delay. More...
 
void setCodecId (String value)
 Sets the codec identifier. More...
 
void setCodecName (String value)
 Sets the codec name. More...
 
void setCodecPrivate (byte[] value)
 Sets the codec private. More...
 
void setContentEncodings (fm.liveswitch.matroska.ContentEncodings value)
 Sets the content encoding elements. More...
 
void setDefaultDuration (fm.liveswitch.NullableLong value)
 Sets the default duration. More...
 
void setFlagDefault (boolean value)
 Sets the default flag. More...
 
void setFlagEnabled (boolean value)
 Sets the enabled flag. More...
 
void setFlagForced (boolean value)
 Sets the forced flag. More...
 
void setFlagLacing (boolean value)
 Sets the lacing flag. More...
 
void setLanguage (String value)
 Sets the language. More...
 
void setMaxCache (fm.liveswitch.NullableLong value)
 Sets the maximum cache. More...
 
void setMinCache (long value)
 Sets the minimum cache. More...
 
void setName (String value)
 Sets the name. More...
 
void setSeekPreRoll (fm.liveswitch.NullableLong value)
 Sets the seek pre-roll. More...
 
void setTrackNumber (long value)
 Sets the track number. More...
 
void setTrackTimecodeScale (fm.liveswitch.NullableFloat value)
 Sets the track timecode scale. More...
 
void setTrackType (long value)
 Sets the track type. More...
 
void setTrackUid (long value)
 Sets the track UID. More...
 
void setVideo (fm.liveswitch.matroska.Video value)
 Sets the video element. More...
 
 TrackEntry ()
 Initializes a new instance of the fm.liveswitch.matroska.TrackEntry class. More...
 
 TrackEntry (byte[] bytes)
 Initializes a new instance of the fm.liveswitch.matroska.TrackEntry class. More...
 
- Public Member Functions inherited from fm.liveswitch.matroska.Element
byte[] getBytes ()
 Serializes to a byte array. More...
 
int getLength ()
 Gets the total length of the element (including ID/size field), set after calling fm.liveswitch.matroska.Element#getBytes. More...
 
int getSize ()
 Gets the size of the element (excluding ID/size field), set after calling fm.liveswitch.matroska.Element#getBytes. More...
 
int getSizeLength ()
 Gets the length of the size field, in bytes. More...
 
boolean getWriteDefaultValues ()
 Gets whether to include default values when serializing. More...
 
void setSizeLength (int value)
 Sets the length of the size field, in bytes. More...
 
void setWriteDefaultValues (boolean value)
 Sets whether to include default values when serializing. More...
 

Static Public Member Functions

static String getAacCodecId ()
 Gets the AAC codec ID. More...
 
static boolean getDefaultFlagDefault ()
 Gets the default default flag. More...
 
static boolean getDefaultFlagEnabled ()
 Gets the default enabled flag. More...
 
static boolean getDefaultFlagForced ()
 Gets the default forced flag. More...
 
static boolean getDefaultFlagLacing ()
 Gets the default lacing flag. More...
 
static String getDefaultLanguage ()
 Gets the default language. More...
 
static long getDefaultMinCache ()
 Gets the default minimum cache. More...
 
static byte[] getEbmlId ()
 Gets the EBML ID. More...
 
static int getG722FormatTag ()
 Gets the G722 format tag. More...
 
static String getH264CodecId ()
 Gets the H.264 codec ID. More...
 
static String getH265CodecId ()
 Gets the H.265 codec ID. More...
 
static int getL16FormatTag ()
 Gets the L16 format tag. More...
 
static String getOpusCodecId ()
 Gets the Opus codec ID. More...
 
static int getPcmaFormatTag ()
 Gets the PCMA format tag. More...
 
static String getPcmCodecId ()
 Gets the PCM codec ID. More...
 
static int getPcmuFormatTag ()
 Gets the PCMU format tag. More...
 
static String getVp8CodecId ()
 Gets the VP8 codec ID. More...
 
static String getVp9CodecId ()
 Gets the VP8 codec ID. More...
 
- Static Public Member Functions inherited from fm.liveswitch.matroska.Element
static boolean compare (byte[] bytes1, byte[] bytes2)
 Compares two byte arrays for equality. More...
 
static boolean readBool (byte[] value)
 Reads a boolean element from the stream. More...
 
static java.util.Date readDate (byte[] value)
 Reads a date string element from the stream. More...
 
static double readDouble (byte[] value)
 Reads a double element from the stream. More...
 
static float readFloat (byte[] value)
 Reads a float element from the stream. More...
 
static fm.liveswitch.Guid readGuid (byte[] value)
 Reads a GUID element from the stream. More...
 
static byte[] readId (byte[] bytes, int offset, fm.liveswitch.IntegerHolder offsetPlus)
 Reads a binary ID from the stream. More...
 
static long readSignedInteger (byte[] value)
 Reads a signed integer element from the byte array. More...
 
static String readString (byte[] value)
 Reads an ASCII string element from the stream. More...
 
static long readUnsignedInteger (byte[] value)
 Reads an unsigned integer element from the byte array. More...
 
static String readUtf8 (byte[] value)
 Reads a UTF-8 string element from the stream. More...
 
static byte[] readValue (byte[] bytes, int offset, fm.liveswitch.IntegerHolder offsetPlus)
 Reads a binary value from the stream. More...
 
static long readVariableInteger (byte[] bytes, int offset, fm.liveswitch.IntegerHolder offsetPlus)
 Reads a variable integer ("vint") from the byte array. More...
 
static byte[] serializeVariableInteger (long value)
 Serializes a variable integer. More...
 
static byte[] serializeVariableInteger (long value, int length)
 Serializes a variable integer using a fixed length. More...
 

Protected Member Functions

byte[] getInnerBytes ()
 Gets the inner bytes. More...
 
- Protected Member Functions inherited from fm.liveswitch.matroska.Element
 Element ()
 
void write (byte[] value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a binary element to the stream. More...
 
void writeBool (boolean value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a boolean element to the stream. More...
 
void writeDate (java.util.Date value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a date element to the stream. More...
 
void writeDouble (double value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a double element to the stream. More...
 
void writeFloat (float value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a float element to the stream. More...
 
void writeGuid (fm.liveswitch.Guid value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a GUID element to the stream. More...
 
void writeSignedInteger (long value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes an signed integer element to the stream. More...
 
void writeString (String value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes an ASCII string element to the stream. More...
 
void writeUnsignedInteger (long value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes an unsigned integer element to the stream. More...
 
void writeUtf8 (String value, byte[] idValue, fm.liveswitch.ByteOutputStream stream)
 Writes a UTF-8 string element to the stream. More...
 
void writeVariableInteger (long value, fm.liveswitch.ByteOutputStream stream)
 Writes a variable integer ("vint") to the stream. More...
 
void writeVariableInteger (long value, fm.liveswitch.ByteOutputStream stream, int length)
 Writes a variable integer ("vint") to the stream using a fixed length. More...
 

Detailed Description

A Matroska track entry element.

Constructor & Destructor Documentation

◆ TrackEntry() [1/2]

fm.liveswitch.matroska.TrackEntry.TrackEntry ( )

Initializes a new instance of the fm.liveswitch.matroska.TrackEntry class.

◆ TrackEntry() [2/2]

fm.liveswitch.matroska.TrackEntry.TrackEntry ( byte[]  bytes)

Initializes a new instance of the fm.liveswitch.matroska.TrackEntry class.

Parameters
bytesThe bytes.

Member Function Documentation

◆ getAacCodecId()

static String fm.liveswitch.matroska.TrackEntry.getAacCodecId ( )
static

Gets the AAC codec ID.

◆ getAttachmentLinks()

long [] fm.liveswitch.matroska.TrackEntry.getAttachmentLinks ( )

Gets the attachment links.

◆ getAudio()

fm.liveswitch.matroska.Audio fm.liveswitch.matroska.TrackEntry.getAudio ( )

Gets the audio element.

◆ getCodecDelay()

fm.liveswitch.NullableLong fm.liveswitch.matroska.TrackEntry.getCodecDelay ( )

Gets the codec delay.

◆ getCodecId()

String fm.liveswitch.matroska.TrackEntry.getCodecId ( )

Gets the codec identifier.

◆ getCodecName()

String fm.liveswitch.matroska.TrackEntry.getCodecName ( )

Gets the codec name.

◆ getCodecPrivate()

byte [] fm.liveswitch.matroska.TrackEntry.getCodecPrivate ( )

Gets the codec private.

◆ getContentEncodings()

fm.liveswitch.matroska.ContentEncodings fm.liveswitch.matroska.TrackEntry.getContentEncodings ( )

Gets the content encoding elements.

◆ getDefaultDuration()

fm.liveswitch.NullableLong fm.liveswitch.matroska.TrackEntry.getDefaultDuration ( )

Gets the default duration.

◆ getDefaultFlagDefault()

static boolean fm.liveswitch.matroska.TrackEntry.getDefaultFlagDefault ( )
static

Gets the default default flag.

◆ getDefaultFlagEnabled()

static boolean fm.liveswitch.matroska.TrackEntry.getDefaultFlagEnabled ( )
static

Gets the default enabled flag.

◆ getDefaultFlagForced()

static boolean fm.liveswitch.matroska.TrackEntry.getDefaultFlagForced ( )
static

Gets the default forced flag.

◆ getDefaultFlagLacing()

static boolean fm.liveswitch.matroska.TrackEntry.getDefaultFlagLacing ( )
static

Gets the default lacing flag.

◆ getDefaultLanguage()

static String fm.liveswitch.matroska.TrackEntry.getDefaultLanguage ( )
static

Gets the default language.

◆ getDefaultMinCache()

static long fm.liveswitch.matroska.TrackEntry.getDefaultMinCache ( )
static

Gets the default minimum cache.

◆ getEbmlId()

static byte [] fm.liveswitch.matroska.TrackEntry.getEbmlId ( )
static

Gets the EBML ID.

◆ getFlagDefault()

boolean fm.liveswitch.matroska.TrackEntry.getFlagDefault ( )

Gets the default flag.

◆ getFlagEnabled()

boolean fm.liveswitch.matroska.TrackEntry.getFlagEnabled ( )

Gets the enabled flag.

◆ getFlagForced()

boolean fm.liveswitch.matroska.TrackEntry.getFlagForced ( )

Gets the forced flag.

◆ getFlagLacing()

boolean fm.liveswitch.matroska.TrackEntry.getFlagLacing ( )

Gets the lacing flag.

◆ getG722FormatTag()

static int fm.liveswitch.matroska.TrackEntry.getG722FormatTag ( )
static

Gets the G722 format tag.

◆ getH264CodecId()

static String fm.liveswitch.matroska.TrackEntry.getH264CodecId ( )
static

Gets the H.264 codec ID.

◆ getH265CodecId()

static String fm.liveswitch.matroska.TrackEntry.getH265CodecId ( )
static

Gets the H.265 codec ID.

◆ getId()

byte [] fm.liveswitch.matroska.TrackEntry.getId ( )

Gets the EBML ID.

Reimplemented from fm.liveswitch.matroska.Element.

◆ getInnerBytes()

byte [] fm.liveswitch.matroska.TrackEntry.getInnerBytes ( )
protected

Gets the inner bytes.

Reimplemented from fm.liveswitch.matroska.Element.

◆ getL16FormatTag()

static int fm.liveswitch.matroska.TrackEntry.getL16FormatTag ( )
static

Gets the L16 format tag.

◆ getLanguage()

String fm.liveswitch.matroska.TrackEntry.getLanguage ( )

Gets the language.

◆ getMaxCache()

fm.liveswitch.NullableLong fm.liveswitch.matroska.TrackEntry.getMaxCache ( )

Gets the maximum cache.

◆ getMinCache()

long fm.liveswitch.matroska.TrackEntry.getMinCache ( )

Gets the minimum cache.

◆ getName()

String fm.liveswitch.matroska.TrackEntry.getName ( )

Gets the name.

◆ getOpusCodecId()

static String fm.liveswitch.matroska.TrackEntry.getOpusCodecId ( )
static

Gets the Opus codec ID.

◆ getPcmaFormatTag()

static int fm.liveswitch.matroska.TrackEntry.getPcmaFormatTag ( )
static

Gets the PCMA format tag.

◆ getPcmCodecId()

static String fm.liveswitch.matroska.TrackEntry.getPcmCodecId ( )
static

Gets the PCM codec ID.

◆ getPcmuFormatTag()

static int fm.liveswitch.matroska.TrackEntry.getPcmuFormatTag ( )
static

Gets the PCMU format tag.

◆ getSeekPreRoll()

fm.liveswitch.NullableLong fm.liveswitch.matroska.TrackEntry.getSeekPreRoll ( )

Gets the seek pre-roll.

◆ getTrackNumber()

long fm.liveswitch.matroska.TrackEntry.getTrackNumber ( )

Gets the track number.

◆ getTrackTimecodeScale()

fm.liveswitch.NullableFloat fm.liveswitch.matroska.TrackEntry.getTrackTimecodeScale ( )

Gets the track timecode scale.

◆ getTrackType()

long fm.liveswitch.matroska.TrackEntry.getTrackType ( )

Gets the track type.

◆ getTrackUid()

long fm.liveswitch.matroska.TrackEntry.getTrackUid ( )

Gets the track UID.

◆ getVideo()

fm.liveswitch.matroska.Video fm.liveswitch.matroska.TrackEntry.getVideo ( )

Gets the video element.

◆ getVp8CodecId()

static String fm.liveswitch.matroska.TrackEntry.getVp8CodecId ( )
static

Gets the VP8 codec ID.

◆ getVp9CodecId()

static String fm.liveswitch.matroska.TrackEntry.getVp9CodecId ( )
static

Gets the VP8 codec ID.

◆ setAttachmentLinks()

void fm.liveswitch.matroska.TrackEntry.setAttachmentLinks ( long[]  value)

Sets the attachment links.

◆ setAudio()

void fm.liveswitch.matroska.TrackEntry.setAudio ( fm.liveswitch.matroska.Audio  value)

Sets the audio element.

◆ setCodecDelay()

void fm.liveswitch.matroska.TrackEntry.setCodecDelay ( fm.liveswitch.NullableLong  value)

Sets the codec delay.

◆ setCodecId()

void fm.liveswitch.matroska.TrackEntry.setCodecId ( String  value)

Sets the codec identifier.

◆ setCodecName()

void fm.liveswitch.matroska.TrackEntry.setCodecName ( String  value)

Sets the codec name.

◆ setCodecPrivate()

void fm.liveswitch.matroska.TrackEntry.setCodecPrivate ( byte[]  value)

Sets the codec private.

◆ setContentEncodings()

void fm.liveswitch.matroska.TrackEntry.setContentEncodings ( fm.liveswitch.matroska.ContentEncodings  value)

Sets the content encoding elements.

◆ setDefaultDuration()

void fm.liveswitch.matroska.TrackEntry.setDefaultDuration ( fm.liveswitch.NullableLong  value)

Sets the default duration.

◆ setFlagDefault()

void fm.liveswitch.matroska.TrackEntry.setFlagDefault ( boolean  value)

Sets the default flag.

◆ setFlagEnabled()

void fm.liveswitch.matroska.TrackEntry.setFlagEnabled ( boolean  value)

Sets the enabled flag.

◆ setFlagForced()

void fm.liveswitch.matroska.TrackEntry.setFlagForced ( boolean  value)

Sets the forced flag.

◆ setFlagLacing()

void fm.liveswitch.matroska.TrackEntry.setFlagLacing ( boolean  value)

Sets the lacing flag.

◆ setLanguage()

void fm.liveswitch.matroska.TrackEntry.setLanguage ( String  value)

Sets the language.

◆ setMaxCache()

void fm.liveswitch.matroska.TrackEntry.setMaxCache ( fm.liveswitch.NullableLong  value)

Sets the maximum cache.

◆ setMinCache()

void fm.liveswitch.matroska.TrackEntry.setMinCache ( long  value)

Sets the minimum cache.

◆ setName()

void fm.liveswitch.matroska.TrackEntry.setName ( String  value)

Sets the name.

◆ setSeekPreRoll()

void fm.liveswitch.matroska.TrackEntry.setSeekPreRoll ( fm.liveswitch.NullableLong  value)

Sets the seek pre-roll.

◆ setTrackNumber()

void fm.liveswitch.matroska.TrackEntry.setTrackNumber ( long  value)

Sets the track number.

◆ setTrackTimecodeScale()

void fm.liveswitch.matroska.TrackEntry.setTrackTimecodeScale ( fm.liveswitch.NullableFloat  value)

Sets the track timecode scale.

◆ setTrackType()

void fm.liveswitch.matroska.TrackEntry.setTrackType ( long  value)

Sets the track type.

◆ setTrackUid()

void fm.liveswitch.matroska.TrackEntry.setTrackUid ( long  value)

Sets the track UID.

◆ setVideo()

void fm.liveswitch.matroska.TrackEntry.setVideo ( fm.liveswitch.matroska.Video  value)

Sets the video element.