Package com.wowza.wms.transport.mpeg2
Class Descriptor
- Object
-
- com.wowza.wms.transport.mpeg2.Descriptor
-
- Direct Known Subclasses:
AACDVBDescriptor
,AACSCTEDescriptor
,AC3Descriptor
,AncillaryDataDescriptor
,CUEIdentifierDescriptor
,ExtensionDVBDescriptor
,LanguageDescriptor
,MetadataDescriptor
,MetaDataPointerDescriptor
,MetadataSTDDescriptor
,MP4AudioDescriptor
,MP4AudioExtensionLOAS
,RegistrationDescriptor
,SpliceAvailDescriptor
,SpliceDTMFDescriptor
,SpliceSegmentationDescriptor
,StreamIdentifierDescriptor
,VideoStreamDescriptor
public class Descriptor extends Object
The Class Descriptor.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
data
The data.static int
DESCRIPTOR_TAG_AAC_DVB
The Constant DESCRIPTOR_TAG_AAC_DVBstatic int
DESCRIPTOR_TAG_AAC_SCTE
The Constant DESCRIPTOR_TAG_AAC_SCTE.static int
DESCRIPTOR_TAG_AC3
The Constant DESCRIPTOR_TAG_AC3.static int
DESCRIPTOR_TAG_ANCILLARY
The Constant DESCRIPTOR_TAG_ANCILLARYstatic int
DESCRIPTOR_TAG_AUDIO
The Constant DESCRIPTOR_TAG_AUDIO.static int
DESCRIPTOR_TAG_CA
The Constant DESCRIPTOR_TAG_CA.static int
DESCRIPTOR_TAG_COPYRIGHT
The Constant DESCRIPTOR_TAG_COPYRIGHT.static int
DESCRIPTOR_TAG_CUE_IDENTIFIER
The Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.static int
DESCRIPTOR_TAG_DATA_STREAM_ALIGN
The Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.static int
DESCRIPTOR_TAG_DVBTELETEXT
The Constant DESCRIPTOR_TAG_DVBTELETEXT.static int
DESCRIPTOR_TAG_ENHANCED_AC3
The Constant DESCRIPTOR_TAG_ENHANCED_AC3.static int
DESCRIPTOR_TAG_EXT_ES_ID
The Constant DESCRIPTOR_TAG_EXT_ES_ID.static int
DESCRIPTOR_TAG_EXTENSION_DVB
The Constant DESCRIPTOR_TAG_EXTENSION_DVBstatic int
DESCRIPTOR_TAG_EXTENSION_MP4_LOAS
The Constant DESCRIPTOR_TAG_MP4_LOASstatic int
DESCRIPTOR_TAG_FLEX_MUX_TIMING
The Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.static int
DESCRIPTOR_TAG_FMC
The Constant DESCRIPTOR_TAG_FMC.static int
DESCRIPTOR_TAG_FMX_BUFSIZE
The Constant DESCRIPTOR_TAG_FMX_BUFSIZE.static int
DESCRIPTOR_TAG_HIERARCHY
The Constant DESCRIPTOR_TAG_HIERARCHY.static int
DESCRIPTOR_TAG_IBP
The Constant DESCRIPTOR_TAG_IBP.static int
DESCRIPTOR_TAG_IOD
The Constant DESCRIPTOR_TAG_IOD.static int
DESCRIPTOR_TAG_ISO_639_LANG
The Constant DESCRIPTOR_TAG_ISO_639_LANG.static int
DESCRIPTOR_TAG_MAX_BITRATE
The Constant DESCRIPTOR_TAG_MAX_BITRATE.static int
DESCRIPTOR_TAG_METADATA
The Constant DESCRIPTOR_TAG_METADATA.static int
DESCRIPTOR_TAG_METADATA_POINTER
The Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTORstatic int
DESCRIPTOR_TAG_METADATA_STD
The Constant DESCRIPTOR_TAG_METADATA_STD.static int
DESCRIPTOR_TAG_MP4_AUDIO
The Constant DESCRIPTOR_TAG_MP4_AUDIO.static int
DESCRIPTOR_TAG_MP4_VIDEO
The Constant DESCRIPTOR_TAG_MP4_VIDEO.static int
DESCRIPTOR_TAG_MULTIPLE_BUF
The Constant DESCRIPTOR_TAG_MULTIPLE_BUF.static int
DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL
The Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.static int
DESCRIPTOR_TAG_MUXCODE
The Constant DESCRIPTOR_TAG_MUXCODE.static int
DESCRIPTOR_TAG_PRIVATE_DATA
The Constant DESCRIPTOR_TAG_PRIVATE_DATA.static int
DESCRIPTOR_TAG_REGISTRATION
The Constant DESCRIPTOR_TAG_REGISTRATION.static int
DESCRIPTOR_TAG_SL
The Constant DESCRIPTOR_TAG_SL.static int
DESCRIPTOR_TAG_SMOOTHING_BUF
The Constant DESCRIPTOR_TAG_SMOOTHING_BUF.static int
DESCRIPTOR_TAG_STD
The Constant DESCRIPTOR_TAG_STD.static int
DESCRIPTOR_TAG_STREAM_IDENTIFIER
The Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.static int
DESCRIPTOR_TAG_SYSTEM_CLOCK
The Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.static int
DESCRIPTOR_TAG_TGT_BACKGRD_GRID
The Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.static int
DESCRIPTOR_TAG_VIDEO
The Constant DESCRIPTOR_TAG_VIDEO.static int
DESCRIPTOR_TAG_VIDEO_WINDOWS
The Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.int
length
The length.int
tag
The tag.
-
Constructor Summary
Constructors Constructor Description Descriptor()
Instantiates a new descriptor.Descriptor(java.nio.ByteBuffer descriptorData)
Instantiates a new descriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
binarySize()
How big is the descriptor in binary.static Descriptor
decodeDescriptor(java.nio.ByteBuffer descriptorData)
Decode descriptor.void
decodeDescriptorData(java.nio.ByteBuffer descriptorData)
Decode descriptor data.String
getDataAsBase64()
static String
getDescriptorName(int tag)
String
getShortClassName()
getShortClassName returns just the class name instead of the com.wms.xxx.xx.classNameAMFDataObj
serializeAMF(SpliceInformationTableSerializeAMFContext context)
void
toBin(java.nio.ByteBuffer buffer)
Encodes the descriptor into binary format for use in a transportString
toDebugString()
String
toString()
-
-
-
Field Detail
-
DESCRIPTOR_TAG_VIDEO
public static final int DESCRIPTOR_TAG_VIDEO
The Constant DESCRIPTOR_TAG_VIDEO.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_AUDIO
public static final int DESCRIPTOR_TAG_AUDIO
The Constant DESCRIPTOR_TAG_AUDIO.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_HIERARCHY
public static final int DESCRIPTOR_TAG_HIERARCHY
The Constant DESCRIPTOR_TAG_HIERARCHY.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_REGISTRATION
public static final int DESCRIPTOR_TAG_REGISTRATION
The Constant DESCRIPTOR_TAG_REGISTRATION.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_DATA_STREAM_ALIGN
public static final int DESCRIPTOR_TAG_DATA_STREAM_ALIGN
The Constant DESCRIPTOR_TAG_DATA_STREAM_ALIGN.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_TGT_BACKGRD_GRID
public static final int DESCRIPTOR_TAG_TGT_BACKGRD_GRID
The Constant DESCRIPTOR_TAG_TGT_BACKGRD_GRID.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_VIDEO_WINDOWS
public static final int DESCRIPTOR_TAG_VIDEO_WINDOWS
The Constant DESCRIPTOR_TAG_VIDEO_WINDOWS.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_CA
public static final int DESCRIPTOR_TAG_CA
The Constant DESCRIPTOR_TAG_CA.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_ISO_639_LANG
public static final int DESCRIPTOR_TAG_ISO_639_LANG
The Constant DESCRIPTOR_TAG_ISO_639_LANG.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_SYSTEM_CLOCK
public static final int DESCRIPTOR_TAG_SYSTEM_CLOCK
The Constant DESCRIPTOR_TAG_SYSTEM_CLOCK.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL
public static final int DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL
The Constant DESCRIPTOR_TAG_MULTIPLEX_BUF_UTIL.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_COPYRIGHT
public static final int DESCRIPTOR_TAG_COPYRIGHT
The Constant DESCRIPTOR_TAG_COPYRIGHT.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MAX_BITRATE
public static final int DESCRIPTOR_TAG_MAX_BITRATE
The Constant DESCRIPTOR_TAG_MAX_BITRATE.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_PRIVATE_DATA
public static final int DESCRIPTOR_TAG_PRIVATE_DATA
The Constant DESCRIPTOR_TAG_PRIVATE_DATA.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_SMOOTHING_BUF
public static final int DESCRIPTOR_TAG_SMOOTHING_BUF
The Constant DESCRIPTOR_TAG_SMOOTHING_BUF.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_STD
public static final int DESCRIPTOR_TAG_STD
The Constant DESCRIPTOR_TAG_STD.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_IBP
public static final int DESCRIPTOR_TAG_IBP
The Constant DESCRIPTOR_TAG_IBP.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MP4_VIDEO
public static final int DESCRIPTOR_TAG_MP4_VIDEO
The Constant DESCRIPTOR_TAG_MP4_VIDEO.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MP4_AUDIO
public static final int DESCRIPTOR_TAG_MP4_AUDIO
The Constant DESCRIPTOR_TAG_MP4_AUDIO.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_IOD
public static final int DESCRIPTOR_TAG_IOD
The Constant DESCRIPTOR_TAG_IOD.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_SL
public static final int DESCRIPTOR_TAG_SL
The Constant DESCRIPTOR_TAG_SL.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_FMC
public static final int DESCRIPTOR_TAG_FMC
The Constant DESCRIPTOR_TAG_FMC.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_EXT_ES_ID
public static final int DESCRIPTOR_TAG_EXT_ES_ID
The Constant DESCRIPTOR_TAG_EXT_ES_ID.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MUXCODE
public static final int DESCRIPTOR_TAG_MUXCODE
The Constant DESCRIPTOR_TAG_MUXCODE.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_FMX_BUFSIZE
public static final int DESCRIPTOR_TAG_FMX_BUFSIZE
The Constant DESCRIPTOR_TAG_FMX_BUFSIZE.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_MULTIPLE_BUF
public static final int DESCRIPTOR_TAG_MULTIPLE_BUF
The Constant DESCRIPTOR_TAG_MULTIPLE_BUF.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_FLEX_MUX_TIMING
public static final int DESCRIPTOR_TAG_FLEX_MUX_TIMING
The Constant DESCRIPTOR_TAG_FLEX_MUX_TIMING.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_METADATA_POINTER
public static final int DESCRIPTOR_TAG_METADATA_POINTER
The Constant DESCRIPTOR_TAG_METADATA_POINTER_DESCRIPTOR- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_METADATA
public static final int DESCRIPTOR_TAG_METADATA
The Constant DESCRIPTOR_TAG_METADATA.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_METADATA_STD
public static final int DESCRIPTOR_TAG_METADATA_STD
The Constant DESCRIPTOR_TAG_METADATA_STD.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_EXTENSION_MP4_LOAS
public static final int DESCRIPTOR_TAG_EXTENSION_MP4_LOAS
The Constant DESCRIPTOR_TAG_MP4_LOAS- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_STREAM_IDENTIFIER
public static final int DESCRIPTOR_TAG_STREAM_IDENTIFIER
The Constant DESCRIPTOR_TAG_STREAM_IDENTIFIER.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_DVBTELETEXT
public static final int DESCRIPTOR_TAG_DVBTELETEXT
The Constant DESCRIPTOR_TAG_DVBTELETEXT.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_AC3
public static final int DESCRIPTOR_TAG_AC3
The Constant DESCRIPTOR_TAG_AC3.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_ANCILLARY
public static final int DESCRIPTOR_TAG_ANCILLARY
The Constant DESCRIPTOR_TAG_ANCILLARY- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_ENHANCED_AC3
public static final int DESCRIPTOR_TAG_ENHANCED_AC3
The Constant DESCRIPTOR_TAG_ENHANCED_AC3.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_AAC_DVB
public static final int DESCRIPTOR_TAG_AAC_DVB
The Constant DESCRIPTOR_TAG_AAC_DVB- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_EXTENSION_DVB
public static final int DESCRIPTOR_TAG_EXTENSION_DVB
The Constant DESCRIPTOR_TAG_EXTENSION_DVB- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_CUE_IDENTIFIER
public static final int DESCRIPTOR_TAG_CUE_IDENTIFIER
The Constant DESCRIPTOR_TAG_CUE_IDENTIFIER.- See Also:
- Constant Field Values
-
DESCRIPTOR_TAG_AAC_SCTE
public static final int DESCRIPTOR_TAG_AAC_SCTE
The Constant DESCRIPTOR_TAG_AAC_SCTE.- See Also:
- Constant Field Values
-
tag
public int tag
The tag.
-
length
public int length
The length.
-
data
public byte[] data
The data.
-
-
Method Detail
-
decodeDescriptorData
public void decodeDescriptorData(java.nio.ByteBuffer descriptorData)
Decode descriptor data.- Parameters:
descriptorData
- the descriptor data
-
toBin
public void toBin(java.nio.ByteBuffer buffer)
Encodes the descriptor into binary format for use in a transport- Parameters:
buffer
- a ByteBuffer to put the descriptor binary data into
-
binarySize
public int binarySize()
How big is the descriptor in binary.- Returns:
- the total size of the descriptor in binary form, includes tag and length fields
-
decodeDescriptor
public static Descriptor decodeDescriptor(java.nio.ByteBuffer descriptorData)
Decode descriptor.- Parameters:
descriptorData
- the descriptor data- Returns:
- the descriptor
-
getShortClassName
public String getShortClassName()
getShortClassName returns just the class name instead of the com.wms.xxx.xx.className
-
getDescriptorName
public static String getDescriptorName(int tag)
-
serializeAMF
public AMFDataObj serializeAMF(SpliceInformationTableSerializeAMFContext context)
-
getDataAsBase64
public String getDataAsBase64()
-
toDebugString
public String toDebugString()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-