public class DSMediaType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AST_AAC
Audio subtypes
|
static int |
AST_AC3
Audio subtypes
|
static int |
AST_AMR
Audio subtypes
|
static int |
AST_ASF
Audio subtypes
|
static int |
AST_DOLBY_AC3
Audio subtypes
|
static int |
AST_DOLBY_AC3_SPDIF
Audio subtypes
|
static int |
AST_DRM_Audio
Audio subtypes
|
static int |
AST_DVD_LPCM_AUDIO
Audio subtypes
|
static int |
AST_GSM
Audio subtypes
|
static int |
AST_IEEE_FLOAT
Audio subtypes
|
static int |
AST_MP2A
Audio subtypes
|
static int |
AST_MP3
Audio subtypes
|
static int |
AST_MP4A
Audio subtypes
|
static int |
AST_MPEG1
Audio subtypes
|
static int |
AST_MPEG1_AUDIO_PAYLOAD
Audio subtypes
|
static int |
AST_MPEG1Packet
Audio subtypes
|
static int |
AST_MPEG1Payload
Audio subtypes
|
static int |
AST_MPEG2
Audio subtypes
|
static int |
AST_MPEG2_AUDIO
Audio subtypes
|
static int |
AST_PCM
Audio subtypes
|
static int |
AST_RAW_SPORT
Audio subtypes
|
static int |
AST_REAL
Audio subtypes
|
static int |
AST_SPDIF_TAG_241h
Audio subtypes
|
static int |
AST_VORBIS
Audio subtypes
|
static int |
AST_VORBIS_ENC
Audio subtypes
|
static int |
AST_VORBIS_LEAD
Audio subtypes
|
static int |
AST_WF_MPEG1
Audio subtypes
|
static int |
ATSC_SI
Video subtypes
|
static int |
AX_BLOCK_ALIGN
Extended fields, may be empty
|
static int |
AX_CH_MASK
Extended fields, may be empty
|
static int |
AX_FORMAT_TAG
Extended fields, may be empty
|
static int |
AX_SPB
Extended fields, may be empty
|
static int |
AX_SUBFORMAT
Extended fields, may be empty
|
static int |
AX_VBPS
Extended fields, may be empty
|
static int |
DVB_SI
Video subtypes
|
static int |
GUID_NULL |
static int |
MPEG_VIDEO_INFO
Video formattypes
|
static int |
MPEG1Audio
Video subtypes
|
static int |
MPEG1AudioPayload
Video subtypes
|
static int |
MPEG1Payload
Video subtypes
|
static int |
MPEG1Video
Video subtypes
|
static int |
MPEG1WAVEFORMAT
Audio formattypes
|
static int |
MPEG2_VIDEO_INFO
Video formattypes
|
static int |
MT_ANALOG_AUDIO
Major media types
|
static int |
MT_ANALOG_VIDEO
Major media types
|
static int |
MT_AUDIO
Major media types
|
static int |
MT_INTERLEAVED
Major media types
|
static int |
MT_LINE21
Major media types
|
static int |
MT_MIDI
Major media types
|
static int |
MT_STREAM
Major media types
|
static int |
MT_SUBS
Major media types
|
static int |
MT_TEXT
Major media types
|
static int |
MT_TIMECODE
Major media types
|
static int |
MT_VIDEO
Major media types
|
static int |
NONE
Other format types
|
static int |
QTA
Audio subtypes
|
static int |
QTV
Video subtypes
|
static int |
SST_ASF
Stream subtypes
|
static int |
SST_AVI
Stream subtypes
|
static int |
SST_DV
Stream subtypes
|
static int |
SST_FLV
Stream subtypes
|
static int |
SST_HIK
Stream subtypes
|
static int |
SST_MKV
Stream subtypes
|
static int |
SST_MP4
Stream subtypes
|
static int |
SST_MPEG_PS
Stream subtypes
|
static int |
SST_MPEG_TS
Stream subtypes
|
static int |
SST_MPEG1_SYSTEM
Stream subtypes
|
static int |
SST_WAVE
Stream subtypes
|
static int |
SST_WEBM
Stream subtypes
|
static int |
VIDEO_INFO
Video formattypes
|
static int |
VIDEO_INFO2
Video formattypes
|
static int |
VORBISFORMAT
Audio formattypes
|
static int |
VST_3IVX
Video subtypes
|
static int |
VST_ARGB32
Video subtypes
|
static int |
VST_ASF
Video subtypes
|
static int |
VST_AYUV
Video subtypes
|
static int |
VST_DV25
Video subtypes
|
static int |
VST_DV50
Video subtypes
|
static int |
VST_DVH1
Video subtypes
|
static int |
VST_DVHD
Video subtypes
|
static int |
VST_DVSD
Video subtypes
|
static int |
VST_DVSL
Video subtypes
|
static int |
VST_FLV
Video subtypes
|
static int |
VST_FORMAT_MPEG2Video
Video subtypes
|
static int |
VST_I420
Video subtypes
|
static int |
VST_IMP2
Video subtypes
|
static int |
VST_MP4V
Video subtypes
|
static int |
VST_MPEG1
Video subtypes
|
static int |
VST_MPEG1Packet
Video subtypes
|
static int |
VST_MPEG1System
Video subtypes
|
static int |
VST_MPEG1VideoCD
Video subtypes
|
static int |
VST_MPEG2
Video subtypes
|
static int |
VST_MPEG2_PES
Video subtypes
|
static int |
VST_MPEG2_PROGRAM
Video subtypes
|
static int |
VST_MPEG2_SECTIONS
Video subtypes
|
static int |
VST_MPEG2_TRANSPORT
Video subtypes
|
static int |
VST_MPEG2_VIDEO
Video subtypes
|
static int |
VST_OGG
Video subtypes
|
static int |
VST_RGB24
Video subtypes
|
static int |
VST_RGB32
Video subtypes
|
static int |
VST_RGB4
Video subtypes
|
static int |
VST_RGB555
Video subtypes
|
static int |
VST_RGB565
Video subtypes
|
static int |
VST_RGB8
Video subtypes
|
static int |
VST_RV40
Video subtypes
|
static int |
VST_THEORA
Video subtypes
|
static int |
VST_UYVY
Video subtypes
|
static int |
VST_VP8
Video subtypes
|
static int |
VST_XVIDMKV
Video subtypes
|
static int |
VST_Y211
Video subtypes
|
static int |
VST_Y411
Video subtypes
|
static int |
VST_Y41P
Video subtypes
|
static int |
VST_YUY2
Video subtypes
|
static int |
VST_YUYV
Video subtypes
|
static int |
VST_YVYU
Video subtypes
|
static int |
VX_ASPECT_X
Extended fields, may be empty
|
static int |
VX_ASPECT_Y
Extended fields, may be empty
|
static int |
VX_BIT_ERROR_RATE
Extended fields, may be empty
|
static int |
VX_COPY_PROTECT
Extended fields, may be empty
|
static int |
VX_CTRL
Extended fields, may be empty
|
static int |
VX_FLAGS
Extended fields, may be empty
|
static int |
VX_INTERLACE
Extended fields, may be empty
|
static int |
VX_LEVEL
Extended fields, may be empty
|
static int |
VX_PROFILE
Extended fields, may be empty
|
static int |
WAVEFORMAT
Audio formattypes
|
static int |
WMFORMAT_MPEG2Video
WM types
|
static int |
WMFORMAT_Script
WM types
|
static int |
WMFORMAT_VideoInfo
WM types
|
static int |
WMFORMAT_WaveFormatEx
WM types
|
static int |
WMFORMAT_WebStream
WM types
|
static int |
WMMEDIASUBTYPE_ACELPnet
WM types
|
static int |
WMMEDIASUBTYPE_Base
WM types
|
static int |
WMMEDIASUBTYPE_DRM
WM types
|
static int |
WMMEDIASUBTYPE_M4S2
WM types
|
static int |
WMMEDIASUBTYPE_MP3
WM types
|
static int |
WMMEDIASUBTYPE_MP43
WM types
|
static int |
WMMEDIASUBTYPE_MP4S
WM types
|
static int |
WMMEDIASUBTYPE_MPEG2_VIDEO
WM types
|
static int |
WMMEDIASUBTYPE_MSS1
WM types
|
static int |
WMMEDIASUBTYPE_MSS2
WM types
|
static int |
WMMEDIASUBTYPE_P422
WM types
|
static int |
WMMEDIASUBTYPE_PCM
WM types
|
static int |
WMMEDIASUBTYPE_WebStream
WM types
|
static int |
WMMEDIASUBTYPE_WMAudio_Lossless
WM types
|
static int |
WMMEDIASUBTYPE_WMAudioV2
WM types
|
static int |
WMMEDIASUBTYPE_WMAudioV7
WM types
|
static int |
WMMEDIASUBTYPE_WMAudioV8
WM types
|
static int |
WMMEDIASUBTYPE_WMAudioV9
WM types
|
static int |
WMMEDIASUBTYPE_WMSP1
WM types
|
static int |
WMMEDIASUBTYPE_WMV1
WM types
|
static int |
WMMEDIASUBTYPE_WMV2
WM types
|
static int |
WMMEDIASUBTYPE_WMV3
WM types
|
static int |
WMMEDIASUBTYPE_WMVA
WM types
|
static int |
WMMEDIASUBTYPE_WMVP
WM types
|
static int |
WMMEDIASUBTYPE_WVP2
WM types
|
static int |
WMMEDIATYPE_Audio
WM types
|
static int |
WMMEDIATYPE_FileTransfer
WM types
|
static int |
WMMEDIATYPE_Image
WM types
|
static int |
WMMEDIATYPE_Script
WM types
|
static int |
WMMEDIATYPE_Text
WM types
|
static int |
WMMEDIATYPE_Video
WM types
|
static int |
WMSCRIPTTYPE_TwoStrings
WM types
|
Constructor and Description |
---|
DSMediaType() |
DSMediaType(int majorType,
int subType,
int formatType)
Creates a basic media type object.
|
DSMediaType(java.lang.String majorTypeUUID,
java.lang.String subTypeUUID,
java.lang.String formatTypeUUID,
byte[] pbFormat) |
Modifier and Type | Method and Description |
---|---|
boolean |
compare(DSMediaType toCompare,
int level)
Checks for basic (0) or extended (1) match between two media types
|
void |
configureAudioType(int sampleRate,
int sampleSize,
int channels,
int bitRate)
Sets basic parameters for an audio type
|
void |
configureVideoType(int w,
int h,
int depth,
float frameRate)
Sets basic parameters for a video type
|
DSMediaType |
copy()
Returns a clone copy of a DSMediaType instance
|
java.lang.String |
dump()
Returns a String containing all set fields in this DSMediaType instance, including an evtl.
|
void |
dumpFormatBlock(boolean hex) |
int |
getBitDepth()
video & audio formats
|
int |
getBitRate()
video & audio formats
|
int |
getDataSize() |
java.lang.String |
getDisplayString()
Returns a shortend version of the info string returned by toString()
|
int |
getExtendedField(int fieldID)
Returns the value of a field that not all native media types have and which may therefore not be set.
|
int |
getFlags() |
byte[] |
getFormatBlock() |
int |
getFormatBlockSize() |
int |
getFormatType() |
java.lang.String |
getFormatTypeGUID() |
float |
getFrameRate()
video formats only
|
int |
getFrameTime()
msec per frame(video) or block of sampled data(audio)
|
int |
getHeight()
video formats only
|
int |
getMajorType() |
java.lang.String |
getMajorTypeGUID() |
java.lang.String |
getMajorTypeString() |
int |
getNumChannels()
audio formats only
|
int |
getSampleRate()
audio formats only
|
int |
getSampleSize() |
int |
getSubType() |
java.lang.String |
getSubTypeGUID()
Returns the native subtype GUID for mediatypes that originate from queries in the dll
|
java.lang.String |
getSubTypeString() |
int |
getWidth()
video formats only
|
void |
setBitDepth(int bd) |
void |
setBitRate(int dr) |
void |
setDataSize(int size) |
void |
setExtendedField(int fieldID,
int value) |
void |
setFlags(int f) |
void |
setFormatBlock(byte[] fb)
DSMediaType's format block is a variable size byte array, which for video and
stream types consists of a 16 byte block used internally plus a variable size
block used for codec specific data, such as sequence headers, SPS/PPS etc.
|
void |
setFormatType(int ft) |
void |
setFrameRate(float fps) |
void |
setFrameTime(int ft) |
void |
setHeight(int h) |
void |
setMajorType(int mt) |
void |
setNumChannels(int ch) |
void |
setSampleRate(int sr) |
void |
setSampleSize(int size) |
void |
setSubType(int st) |
void |
setWidth(int w) |
java.lang.String |
toString()
Returns a summary of information held in a DSMediaType instance
|
public static final int MT_VIDEO
public static final int MT_AUDIO
public static final int MT_STREAM
public static final int MT_INTERLEAVED
public static final int MT_LINE21
public static final int MT_MIDI
public static final int MT_ANALOG_VIDEO
public static final int MT_ANALOG_AUDIO
public static final int MT_TIMECODE
public static final int MT_TEXT
public static final int MT_SUBS
public static final int SST_ASF
public static final int SST_AVI
public static final int SST_MPEG1_SYSTEM
public static final int SST_MPEG_PS
public static final int SST_MPEG_TS
public static final int SST_DV
public static final int SST_FLV
public static final int SST_MKV
public static final int SST_WEBM
public static final int SST_MP4
public static final int SST_HIK
public static final int SST_WAVE
public static final int VST_RGB4
public static final int VST_RGB8
public static final int VST_RGB565
public static final int VST_RGB555
public static final int VST_RGB24
public static final int VST_RGB32
public static final int VST_ARGB32
public static final int VST_AYUV
public static final int VST_UYVY
public static final int VST_Y411
public static final int VST_Y41P
public static final int VST_Y211
public static final int VST_YUY2
public static final int VST_YVYU
public static final int VST_YUYV
public static final int VST_DVSL
public static final int VST_DVSD
public static final int VST_DVHD
public static final int VST_DV25
public static final int VST_DV50
public static final int VST_DVH1
public static final int VST_I420
public static final int VST_MPEG1
public static final int VST_MPEG2
public static final int VST_MPEG1System
public static final int VST_MPEG1VideoCD
public static final int VST_MPEG1Packet
public static final int MPEG1Payload
public static final int MPEG1Video
public static final int MPEG1Audio
public static final int MPEG1AudioPayload
public static final int VST_MPEG2_VIDEO
public static final int VST_IMP2
public static final int VST_FORMAT_MPEG2Video
public static final int ATSC_SI
public static final int DVB_SI
public static final int VST_MPEG2_PROGRAM
public static final int VST_MPEG2_TRANSPORT
public static final int VST_MPEG2_SECTIONS
public static final int VST_MPEG2_PES
public static final int VST_MP4V
public static final int VST_ASF
public static final int VST_OGG
public static final int VST_THEORA
public static final int VST_3IVX
public static final int VST_RV40
public static final int VST_XVIDMKV
public static final int VST_FLV
public static final int VST_VP8
public static final int QTV
public static final int AST_PCM
public static final int AST_MP2A
public static final int AST_MPEG1_AUDIO_PAYLOAD
public static final int AST_MP3
public static final int AST_GSM
public static final int AST_MPEG1Packet
public static final int AST_MPEG1Payload
public static final int AST_MPEG2_AUDIO
public static final int AST_DVD_LPCM_AUDIO
public static final int AST_DRM_Audio
public static final int AST_IEEE_FLOAT
public static final int AST_DOLBY_AC3
public static final int AST_DOLBY_AC3_SPDIF
public static final int AST_RAW_SPORT
public static final int AST_SPDIF_TAG_241h
public static final int AST_MPEG1
public static final int AST_WF_MPEG1
public static final int AST_MPEG2
public static final int AST_AAC
public static final int AST_MP4A
public static final int AST_AMR
public static final int AST_ASF
public static final int AST_REAL
public static final int AST_AC3
public static final int AST_VORBIS
public static final int AST_VORBIS_ENC
public static final int AST_VORBIS_LEAD
public static final int QTA
public static final int VIDEO_INFO
public static final int VIDEO_INFO2
public static final int MPEG_VIDEO_INFO
public static final int MPEG2_VIDEO_INFO
public static final int WAVEFORMAT
public static final int MPEG1WAVEFORMAT
public static final int VORBISFORMAT
public static final int NONE
public static final int WMFORMAT_MPEG2Video
public static final int WMFORMAT_Script
public static final int WMFORMAT_VideoInfo
public static final int WMFORMAT_WaveFormatEx
public static final int WMFORMAT_WebStream
public static final int WMMEDIASUBTYPE_ACELPnet
public static final int WMMEDIASUBTYPE_Base
public static final int WMMEDIASUBTYPE_DRM
public static final int WMMEDIASUBTYPE_MP3
public static final int WMMEDIASUBTYPE_MP43
public static final int WMMEDIASUBTYPE_MP4S
public static final int WMMEDIASUBTYPE_M4S2
public static final int WMMEDIASUBTYPE_P422
public static final int WMMEDIASUBTYPE_MPEG2_VIDEO
public static final int WMMEDIASUBTYPE_MSS1
public static final int WMMEDIASUBTYPE_MSS2
public static final int WMMEDIASUBTYPE_PCM
public static final int WMMEDIASUBTYPE_WebStream
public static final int WMMEDIASUBTYPE_WMAudio_Lossless
public static final int WMMEDIASUBTYPE_WMAudioV2
public static final int WMMEDIASUBTYPE_WMAudioV7
public static final int WMMEDIASUBTYPE_WMAudioV8
public static final int WMMEDIASUBTYPE_WMAudioV9
public static final int WMMEDIASUBTYPE_WMSP1
public static final int WMMEDIASUBTYPE_WMV1
public static final int WMMEDIASUBTYPE_WMV2
public static final int WMMEDIASUBTYPE_WMV3
public static final int WMMEDIASUBTYPE_WMVA
public static final int WMMEDIASUBTYPE_WMVP
public static final int WMMEDIASUBTYPE_WVP2
public static final int WMMEDIATYPE_Audio
public static final int WMMEDIATYPE_FileTransfer
public static final int WMMEDIATYPE_Image
public static final int WMMEDIATYPE_Script
public static final int WMMEDIATYPE_Text
public static final int WMMEDIATYPE_Video
public static final int WMSCRIPTTYPE_TwoStrings
public static final int GUID_NULL
public static final int VX_BIT_ERROR_RATE
public static final int VX_INTERLACE
public static final int VX_COPY_PROTECT
public static final int VX_ASPECT_X
public static final int VX_ASPECT_Y
public static final int VX_CTRL
public static final int VX_PROFILE
public static final int VX_LEVEL
public static final int VX_FLAGS
public static final int AX_FORMAT_TAG
public static final int AX_BLOCK_ALIGN
public static final int AX_CH_MASK
public static final int AX_SUBFORMAT
public static final int AX_SPB
public static final int AX_VBPS
public DSMediaType()
public DSMediaType(java.lang.String majorTypeUUID, java.lang.String subTypeUUID, java.lang.String formatTypeUUID, byte[] pbFormat)
public DSMediaType(int majorType, int subType, int formatType)
public DSMediaType copy()
public boolean compare(DSMediaType toCompare, int level)
public java.lang.String getMajorTypeString()
public java.lang.String getSubTypeString()
public int getMajorType()
public int getSubType()
public int getFormatType()
public void setMajorType(int mt)
public void setSubType(int st)
public void setFormatType(int ft)
public int getWidth()
public void setWidth(int w)
public int getHeight()
public void setHeight(int h)
public int getBitDepth()
public void setBitDepth(int bd)
public int getSampleSize()
public void setSampleSize(int size)
public int getBitRate()
public void setBitRate(int dr)
public float getFrameRate()
public void setFrameRate(float fps)
public int getFrameTime()
public void setFrameTime(int ft)
public int getNumChannels()
public void setNumChannels(int ch)
public int getSampleRate()
public void setSampleRate(int sr)
public void setFlags(int f)
public int getFlags()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayString()
public java.lang.String dump()
public void configureVideoType(int w, int h, int depth, float frameRate)
public void configureAudioType(int sampleRate, int sampleSize, int channels, int bitRate)
public void setDataSize(int size)
public int getDataSize()
public void setFormatBlock(byte[] fb)
public int getFormatBlockSize()
public byte[] getFormatBlock()
public void setExtendedField(int fieldID, int value)
public int getExtendedField(int fieldID)
public java.lang.String getSubTypeGUID()
public java.lang.String getMajorTypeGUID()
public java.lang.String getFormatTypeGUID()
public void dumpFormatBlock(boolean hex)