All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.movies.media.SampleDescription

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.util.QTHandleRef
                   |
                   +----quicktime.std.movies.media.SampleDescription

public class SampleDescription
extends QTHandleRef
implements QuickTimeLib, Cloneable
The SampleDescription class implements the SampleDescription data structure of the Movie Toolbox.


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o SampleDescription(int)
This constructor creates an empty SampleDescription object.

Method Index

 o clone()
Implementation of Cloneable Interface.
 o fromMovieImporter(MovieImporter)
Determines the sample description of the component.
 o getDataFormat()
Return the data format of the sample description.
 o getDataRefIndex()
Gets the index of the data reference
 o getEndianDescriptor()
 o getSize()
This method returns the size of the media sample description.
 o setDataFormat(int)
Sets the data format of the sample description.
 o setDataRefIndex(int)
Sets the data reference index for the description
 o setSize(int)
Resizes the SampleDescription to the specified size.
 o toString()
Print information about this object.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o SampleDescription
 public SampleDescription(int format) throws QTException
This constructor creates an empty SampleDescription object.

Methods

 o getEndianDescriptor
 public static EndianDescriptor getEndianDescriptor()
 o fromMovieImporter
 public static SampleDescription fromMovieImporter(MovieImporter mi) throws StdQTException
Determines the sample description of the component.

QuickTime::MovieImportGetSampleDescription

Returns:
The sample description.
See Also:
getSampleDescription
 o getSize
 public int getSize()
This method returns the size of the media sample description.

Returns:
the size of the sample description.
Overrides:
getSize in class QTHandleRef
 o setSize
 public void setSize(int size) throws StdQTException
Resizes the SampleDescription to the specified size.

QuickTime::SetHandleSize

Parameters:
size - the new size of the SampleDescription.
 o getDataFormat
 public int getDataFormat()
Return the data format of the sample description.

Returns:
the data format
 o setDataFormat
 public void setDataFormat(int format)
Sets the data format of the sample description.

Parameters:
format - the data format
 o getDataRefIndex
 public int getDataRefIndex()
Gets the index of the data reference

Returns:
the index of the data reference
 o setDataRefIndex
 public void setDataRefIndex(int index)
Sets the data reference index for the description

Parameters:
index - the new data reference index
 o clone
 public Object clone()
Implementation of Cloneable Interface.

Overrides:
clone in class Object
 o toString
 public String toString()
Print information about this object.

Returns:
a string representation of this object.
Overrides:
toString in class QTHandleRef

All Packages  Class Hierarchy  This Package  Previous  Next  Index