fm.liveswitch.matroska.Video Class Reference

A Matroska video element. More...

Public Member Functions

long getAlphaMode ()
 Gets the alpha mode. More...
 
fm.liveswitch.NullableLong getDisplayHeight ()
 Gets the display height. More...
 
long getDisplayUnit ()
 Gets the display unit. More...
 
fm.liveswitch.NullableLong getDisplayWidth ()
 Gets the display width. More...
 
long getFlagInterlaced ()
 Gets a flag indicating whether the video is interlaced. More...
 
byte[] getId ()
 Gets the EBML ID. More...
 
long getPixelCropBottom ()
 Gets the pixel crop bottom. More...
 
long getPixelCropLeft ()
 Gets the pixel crop left. More...
 
long getPixelCropRight ()
 Gets the pixel crop right. More...
 
long getPixelCropTop ()
 Gets the pixel crop top. More...
 
long getPixelHeight ()
 Gets the pixel height. More...
 
long getPixelWidth ()
 Gets the pixel width. More...
 
void setAlphaMode (long value)
 Sets the alpha mode. More...
 
void setDisplayHeight (fm.liveswitch.NullableLong value)
 Sets the display height. More...
 
void setDisplayUnit (long value)
 Sets the display unit. More...
 
void setDisplayWidth (fm.liveswitch.NullableLong value)
 Sets the display width. More...
 
void setFlagInterlaced (long value)
 Sets a flag indicating whether the video is interlaced. More...
 
void setPixelCropBottom (long value)
 Sets the pixel crop bottom. More...
 
void setPixelCropLeft (long value)
 Sets the pixel crop left. More...
 
void setPixelCropRight (long value)
 Sets the pixel crop right. More...
 
void setPixelCropTop (long value)
 Sets the pixel crop top. More...
 
void setPixelHeight (long value)
 Sets the pixel height. More...
 
void setPixelWidth (long value)
 Sets the pixel width. More...
 
 Video ()
 Initializes a new instance of the fm.liveswitch.matroska.Video class. More...
 
 Video (byte[] bytes)
 Initializes a new instance of the fm.liveswitch.matroska.Video 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 long getDefaultAlphaMode ()
 Gets the default alpha mode. More...
 
static long getDefaultDisplayUnit ()
 Gets the default display unit. More...
 
static long getDefaultFlagInterlaced ()
 Gets the default flag interlaced. More...
 
static long getDefaultPixelCropBottom ()
 Gets the default pixel crop bottom. More...
 
static long getDefaultPixelCropLeft ()
 Gets the default pixel crop left. More...
 
static long getDefaultPixelCropRight ()
 Gets the default pixel crop right. More...
 
static long getDefaultPixelCropTop ()
 Gets the default pixel crop top. More...
 
static byte[] getEbmlId ()
 Gets the EBML 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 video element.

Constructor & Destructor Documentation

◆ Video() [1/2]

fm.liveswitch.matroska.Video.Video ( )

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

◆ Video() [2/2]

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

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

Parameters
bytesThe bytes.

Member Function Documentation

◆ getAlphaMode()

long fm.liveswitch.matroska.Video.getAlphaMode ( )

Gets the alpha mode.

◆ getDefaultAlphaMode()

static long fm.liveswitch.matroska.Video.getDefaultAlphaMode ( )
static

Gets the default alpha mode.

◆ getDefaultDisplayUnit()

static long fm.liveswitch.matroska.Video.getDefaultDisplayUnit ( )
static

Gets the default display unit.

◆ getDefaultFlagInterlaced()

static long fm.liveswitch.matroska.Video.getDefaultFlagInterlaced ( )
static

Gets the default flag interlaced.

◆ getDefaultPixelCropBottom()

static long fm.liveswitch.matroska.Video.getDefaultPixelCropBottom ( )
static

Gets the default pixel crop bottom.

◆ getDefaultPixelCropLeft()

static long fm.liveswitch.matroska.Video.getDefaultPixelCropLeft ( )
static

Gets the default pixel crop left.

◆ getDefaultPixelCropRight()

static long fm.liveswitch.matroska.Video.getDefaultPixelCropRight ( )
static

Gets the default pixel crop right.

◆ getDefaultPixelCropTop()

static long fm.liveswitch.matroska.Video.getDefaultPixelCropTop ( )
static

Gets the default pixel crop top.

◆ getDisplayHeight()

fm.liveswitch.NullableLong fm.liveswitch.matroska.Video.getDisplayHeight ( )

Gets the display height.

◆ getDisplayUnit()

long fm.liveswitch.matroska.Video.getDisplayUnit ( )

Gets the display unit.

◆ getDisplayWidth()

fm.liveswitch.NullableLong fm.liveswitch.matroska.Video.getDisplayWidth ( )

Gets the display width.

◆ getEbmlId()

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

Gets the EBML ID.

◆ getFlagInterlaced()

long fm.liveswitch.matroska.Video.getFlagInterlaced ( )

Gets a flag indicating whether the video is interlaced.

◆ getId()

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

Gets the EBML ID.

Reimplemented from fm.liveswitch.matroska.Element.

◆ getInnerBytes()

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

Gets the inner bytes.

Reimplemented from fm.liveswitch.matroska.Element.

◆ getPixelCropBottom()

long fm.liveswitch.matroska.Video.getPixelCropBottom ( )

Gets the pixel crop bottom.

◆ getPixelCropLeft()

long fm.liveswitch.matroska.Video.getPixelCropLeft ( )

Gets the pixel crop left.

◆ getPixelCropRight()

long fm.liveswitch.matroska.Video.getPixelCropRight ( )

Gets the pixel crop right.

◆ getPixelCropTop()

long fm.liveswitch.matroska.Video.getPixelCropTop ( )

Gets the pixel crop top.

◆ getPixelHeight()

long fm.liveswitch.matroska.Video.getPixelHeight ( )

Gets the pixel height.

◆ getPixelWidth()

long fm.liveswitch.matroska.Video.getPixelWidth ( )

Gets the pixel width.

◆ setAlphaMode()

void fm.liveswitch.matroska.Video.setAlphaMode ( long  value)

Sets the alpha mode.

◆ setDisplayHeight()

void fm.liveswitch.matroska.Video.setDisplayHeight ( fm.liveswitch.NullableLong  value)

Sets the display height.

◆ setDisplayUnit()

void fm.liveswitch.matroska.Video.setDisplayUnit ( long  value)

Sets the display unit.

◆ setDisplayWidth()

void fm.liveswitch.matroska.Video.setDisplayWidth ( fm.liveswitch.NullableLong  value)

Sets the display width.

◆ setFlagInterlaced()

void fm.liveswitch.matroska.Video.setFlagInterlaced ( long  value)

Sets a flag indicating whether the video is interlaced.

◆ setPixelCropBottom()

void fm.liveswitch.matroska.Video.setPixelCropBottom ( long  value)

Sets the pixel crop bottom.

◆ setPixelCropLeft()

void fm.liveswitch.matroska.Video.setPixelCropLeft ( long  value)

Sets the pixel crop left.

◆ setPixelCropRight()

void fm.liveswitch.matroska.Video.setPixelCropRight ( long  value)

Sets the pixel crop right.

◆ setPixelCropTop()

void fm.liveswitch.matroska.Video.setPixelCropTop ( long  value)

Sets the pixel crop top.

◆ setPixelHeight()

void fm.liveswitch.matroska.Video.setPixelHeight ( long  value)

Sets the pixel height.

◆ setPixelWidth()

void fm.liveswitch.matroska.Video.setPixelWidth ( long  value)

Sets the pixel width.