XMT-O Reference Software

xmtutil
Class MediaObjectInformation

java.lang.Object
  |
  +--xmtutil.MediaObjectInformation

public class MediaObjectInformation
extends java.lang.Object


Field Summary
static int AUDIO
           
static int Audio_G711
           
static int Audio_G723
           
static int Audio_Mpeg1
           
static int Audio_Mpeg2
           
static int Audio_Mpeg2_LowComplexity_Profile
           
static int Audio_Mpeg2_Main_Profile
           
static int Audio_Mpeg2_SSR_Profile
           
static int Audio_Mpeg4
           
static int AudioStream
           
static int ClockReferenceStream
           
private static boolean debug_
          Whether debug information is to be printed to the console.
private  java.lang.String fileName_
          media file name
static int IMAGE
           
static int IPMPStream
           
private  int mediaObjectType
          media object type
private  int mediaStreamType
          media stream type
static int MPEG7Stream
           
static int MPEGJStream
           
static int no_profile_specified
           
static int ObjectContentInfoStream
           
static int ObjectDescriptorStream
           
static int SceneDescriptionStream
           
static int UNKNOWN_TYPE
          Generic type of file.
static int VIDEO
           
static int Visual_GIF
           
static int Visual_H263
           
static int Visual_Jpeg
           
static int Visual_Mpeg1
           
static int Visual_Mpeg2_422_Profile
           
static int Visual_Mpeg2_High_Profile
           
static int Visual_Mpeg2_Main_Profile
           
static int Visual_Mpeg2_Simple_profile
           
static int Visual_Mpeg2_SNR_Profile
           
static int Visual_Mpeg2_Spatial_Profile
           
static int Visual_Mpeg4
           
static int VisualStream
           
 
Constructor Summary
MediaObjectInformation(java.lang.String fileName)
           
 
Method Summary
 java.awt.Dimension getDimension()
          Get the dimension of the object.
 long getDuration()
          Get the duration of the media object.
 java.lang.String getFileName()
          Get the name of the file.
 javax.swing.ImageIcon getImage(long time)
          Get the image at the specified time.
 int getMediaObjectType()
          Get the media object type description of the object.
 int getMediaStreamType()
          Get the media stream type of the object.
 int getMediaType()
          Get a generic description of the media type for the authoring tool.
static java.lang.String[] getSupportedMediaFileTypes(int mediaType)
          add a Media Object
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Visual_Mpeg4

public static final int Visual_Mpeg4

Audio_Mpeg4

public static final int Audio_Mpeg4

Visual_Mpeg2_Simple_profile

public static final int Visual_Mpeg2_Simple_profile

Visual_Mpeg2_Main_Profile

public static final int Visual_Mpeg2_Main_Profile

Visual_Mpeg2_SNR_Profile

public static final int Visual_Mpeg2_SNR_Profile

Visual_Mpeg2_Spatial_Profile

public static final int Visual_Mpeg2_Spatial_Profile

Visual_Mpeg2_High_Profile

public static final int Visual_Mpeg2_High_Profile

Visual_Mpeg2_422_Profile

public static final int Visual_Mpeg2_422_Profile

Audio_Mpeg2_Main_Profile

public static final int Audio_Mpeg2_Main_Profile

Audio_Mpeg2_LowComplexity_Profile

public static final int Audio_Mpeg2_LowComplexity_Profile

Audio_Mpeg2_SSR_Profile

public static final int Audio_Mpeg2_SSR_Profile

Audio_Mpeg2

public static final int Audio_Mpeg2

Visual_Mpeg1

public static final int Visual_Mpeg1

Audio_Mpeg1

public static final int Audio_Mpeg1

Visual_Jpeg

public static final int Visual_Jpeg

no_profile_specified

public static final int no_profile_specified

Visual_GIF

public static final int Visual_GIF

Audio_G723

public static final int Audio_G723

Visual_H263

public static final int Visual_H263

Audio_G711

public static final int Audio_G711

ObjectDescriptorStream

public static final int ObjectDescriptorStream

ClockReferenceStream

public static final int ClockReferenceStream

SceneDescriptionStream

public static final int SceneDescriptionStream

VisualStream

public static final int VisualStream

AudioStream

public static final int AudioStream

MPEG7Stream

public static final int MPEG7Stream

IPMPStream

public static final int IPMPStream

ObjectContentInfoStream

public static final int ObjectContentInfoStream

MPEGJStream

public static final int MPEGJStream

debug_

private static boolean debug_
Whether debug information is to be printed to the console. default is not have debug information printed (false).

fileName_

private java.lang.String fileName_
media file name

mediaObjectType

private int mediaObjectType
media object type

mediaStreamType

private int mediaStreamType
media stream type

UNKNOWN_TYPE

public static final int UNKNOWN_TYPE
Generic type of file.

VIDEO

public static final int VIDEO

AUDIO

public static final int AUDIO

IMAGE

public static final int IMAGE
Constructor Detail

MediaObjectInformation

public MediaObjectInformation(java.lang.String fileName)
Method Detail

getDimension

public java.awt.Dimension getDimension()
Get the dimension of the object. NOTE: for audio objects this returns a dimension of (1,1).
Returns:
the dimension for the media object.

getDuration

public long getDuration()
Get the duration of the media object.
Returns:
the duration for the media object.

getFileName

public java.lang.String getFileName()
Get the name of the file.
Returns:
the file name for the media object.

getImage

public javax.swing.ImageIcon getImage(long time)
Get the image at the specified time. Currently only support image from the begining of the video. Actually we don't even get that for now.

getMediaObjectType

public int getMediaObjectType()
Get the media object type description of the object. Object Type Indication Values from MPEG-4 Systems specification, Table 8.
Returns:
object type of the media object.

getMediaStreamType

public int getMediaStreamType()
Get the media stream type of the object. Stream Type Values from MPEG-4 Systems specification, Table 9.
Returns:
stream type of the media object.

getMediaType

public int getMediaType()
Get a generic description of the media type for the authoring tool.
Returns:
the generic media type (VIDEO, AUDIO or UNKNOWN_TYPE.

getSupportedMediaFileTypes

public static java.lang.String[] getSupportedMediaFileTypes(int mediaType)
add a Media Object

setDebug

public static void setDebug(boolean debug)
Enable debugging information to be printed to the console.
Parameters:
debug - sets debug information is printed

XMT-O Reference Software