com.teamdev.jxcapture.video.win.directshow.wrappers
Class MediaType

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.teamdev.jxcapture.video.win.directshow.wrappers.MediaType
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class MediaType
extends com.jniwrapper.Structure

Represents AM_MEDIA_TYPE COM type.


Field Summary
static int[] bits555
           
static int[] bits565
           
static int[] bits888
           
static java.lang.String MEDIASUBTYPE_RGB1
           
static java.lang.String MEDIASUBTYPE_RGB24
           
static java.lang.String MEDIASUBTYPE_RGB32
           
static java.lang.String MEDIASUBTYPE_RGB4
           
static java.lang.String MEDIASUBTYPE_RGB555
           
static java.lang.String MEDIASUBTYPE_RGB565
           
static java.lang.String MEDIASUBTYPE_RGB8
           
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
MediaType()
           
MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType)
           
MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType, com.teamdev.jxdesktop.win32.ole.GUID subtype)
           
MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType, com.teamdev.jxdesktop.win32.ole.GUID subtype, com.teamdev.jxdesktop.win32.ole.GUID formatType)
           
MediaType(MediaType that)
           
 
Method Summary
 com.jniwrapper.Pointer.Void allocFormatBuffer(long length)
           
 VideoInfo allocFormatBufferAsVideoInfo(long length)
           
 java.lang.Object clone()
           
static int copyMediaType(MediaType target, MediaType source)
           
 void deleteMediaType()
           
 int getBFixedSizeSamples()
           
static long getBitmapSize(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header)
           
static com.teamdev.jxdesktop.win32.ole.GUID getBitmapSubtype(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header, TrueColorInfo info)
           
 int getBTemporalCompression()
           
 long getCbFormat()
           
 com.teamdev.jxdesktop.win32.ole.GUID getFormattype()
           
 long getLSampleSize()
           
 com.teamdev.jxdesktop.win32.ole.GUID getMajortype()
           
 com.jniwrapper.Pointer.Void getPbFormat()
           
 com.teamdev.jxdesktop.win32.com.IUnknown getPunk()
           
 com.teamdev.jxdesktop.win32.ole.GUID getSubtype()
           
static com.teamdev.jxdesktop.win32.ole.GUID getTrueColorType(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header, TrueColorInfo info)
           
 com.teamdev.jxdesktop.win32.ole.GUID getType()
           
 VideoInfo getVideoInfo()
           
 VideoInfoHeader getVideoInfoHeader()
           
 boolean isFixedSize()
           
 boolean isPartiallySpecified()
           
 boolean matchesPartial(MediaType partial)
           
 void set(MediaType mediaType)
           
 void setBFixedSizeSamples(int value)
           
 void setBTemporalCompression(int value)
           
 void setCbFormat(long value)
           
 void setFormatType(com.teamdev.jxdesktop.win32.ole.GUID type)
           
 void setLSampleSize(long value)
           
 void setSubtype(com.teamdev.jxdesktop.win32.ole.GUID type)
           
 void setType(com.teamdev.jxdesktop.win32.ole.GUID type)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bits555

public static int[] bits555

bits565

public static int[] bits565

bits888

public static int[] bits888

MEDIASUBTYPE_RGB1

public static final java.lang.String MEDIASUBTYPE_RGB1
See Also:
Constant Field Values

MEDIASUBTYPE_RGB4

public static final java.lang.String MEDIASUBTYPE_RGB4
See Also:
Constant Field Values

MEDIASUBTYPE_RGB8

public static final java.lang.String MEDIASUBTYPE_RGB8
See Also:
Constant Field Values

MEDIASUBTYPE_RGB565

public static final java.lang.String MEDIASUBTYPE_RGB565
See Also:
Constant Field Values

MEDIASUBTYPE_RGB555

public static final java.lang.String MEDIASUBTYPE_RGB555
See Also:
Constant Field Values

MEDIASUBTYPE_RGB24

public static final java.lang.String MEDIASUBTYPE_RGB24
See Also:
Constant Field Values

MEDIASUBTYPE_RGB32

public static final java.lang.String MEDIASUBTYPE_RGB32
See Also:
Constant Field Values
Constructor Detail

MediaType

public MediaType()

MediaType

public MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType,
                 com.teamdev.jxdesktop.win32.ole.GUID subtype)

MediaType

public MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType,
                 com.teamdev.jxdesktop.win32.ole.GUID subtype,
                 com.teamdev.jxdesktop.win32.ole.GUID formatType)

MediaType

public MediaType(com.teamdev.jxdesktop.win32.ole.GUID majorType)

MediaType

public MediaType(MediaType that)
Method Detail

getMajortype

public com.teamdev.jxdesktop.win32.ole.GUID getMajortype()

getSubtype

public com.teamdev.jxdesktop.win32.ole.GUID getSubtype()

getBFixedSizeSamples

public int getBFixedSizeSamples()

setBFixedSizeSamples

public void setBFixedSizeSamples(int value)

getBTemporalCompression

public int getBTemporalCompression()

setBTemporalCompression

public void setBTemporalCompression(int value)

getLSampleSize

public long getLSampleSize()

setLSampleSize

public void setLSampleSize(long value)

getFormattype

public com.teamdev.jxdesktop.win32.ole.GUID getFormattype()

getPunk

public com.teamdev.jxdesktop.win32.com.IUnknown getPunk()

getCbFormat

public long getCbFormat()

setCbFormat

public void setCbFormat(long value)

getPbFormat

public com.jniwrapper.Pointer.Void getPbFormat()

getVideoInfo

public VideoInfo getVideoInfo()

getVideoInfoHeader

public VideoInfoHeader getVideoInfoHeader()

isPartiallySpecified

public boolean isPartiallySpecified()

matchesPartial

public boolean matchesPartial(MediaType partial)

getType

public com.teamdev.jxdesktop.win32.ole.GUID getType()

isFixedSize

public boolean isFixedSize()

deleteMediaType

public void deleteMediaType()

copyMediaType

public static int copyMediaType(MediaType target,
                                MediaType source)

set

public void set(MediaType mediaType)

allocFormatBuffer

public com.jniwrapper.Pointer.Void allocFormatBuffer(long length)

allocFormatBufferAsVideoInfo

public VideoInfo allocFormatBufferAsVideoInfo(long length)

setType

public void setType(com.teamdev.jxdesktop.win32.ole.GUID type)

setFormatType

public void setFormatType(com.teamdev.jxdesktop.win32.ole.GUID type)

setSubtype

public void setSubtype(com.teamdev.jxdesktop.win32.ole.GUID type)

getBitmapSize

public static long getBitmapSize(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header)

getTrueColorType

public static com.teamdev.jxdesktop.win32.ole.GUID getTrueColorType(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header,
                                                                    TrueColorInfo info)

getBitmapSubtype

public static com.teamdev.jxdesktop.win32.ole.GUID getBitmapSubtype(com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader header,
                                                                    TrueColorInfo info)

clone

public java.lang.Object clone()
Overrides:
clone in class com.jniwrapper.Structure

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object