All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.qtcomponents.TimeCoder
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.std.comp.ComponentIdentifier
|
+----quicktime.std.comp.Component
|
+----quicktime.std.movies.media.MediaHandler
|
+----quicktime.std.movies.media.VisualMediaHandler
|
+----quicktime.std.qtcomponents.TimeCoder
- public final class TimeCoder
- extends VisualMediaHandler
- implements QuickTimeLib
-
fromMedia(TimeCodeMedia)
- This method allows you to obtain a reference to a media handler component.
-
getAtTime(int)
- Determines the time code from the time code handler.
-
getCurrent()
- Determines the time code from the time code handler at the current time value.
-
getDisplayOptions()
- Returns the current display options for text by the TimeCoder.
-
getFlags()
- Allows you to retrieve the timecode control flags.
-
getSourceRef(TimeCodeDescription)
- Allows you to retrieve the source information from the time code media sample.
-
setDisplayOptions(TCTextOptions)
- Sets the current display options for text by the TimeCoder.
-
setFlags(int, int)
- Allows you to change the flags that affect how QT handles the timecode information.
-
setSourceRef(TimeCodeDescription, QTHandleRef)
- Allows you to change the source information in the media sample.
-
timeCodeToString(TimeCodeDef, int)
- Converts a time value into a string (HH:MM:SS:FF) - if the timecode uses a drop frame technique
the separators are semi-colons (HH;MM;SS;FF).
-
timeCodeToString(TimeCodeDef, TimeCodeTime)
- Converts a time value into a string (HH:MM:SS:FF) - if the timecode uses a drop frame technique
the separators are semi-colons (HH;MM;SS;FF).
-
toFrameNumber(TimeCodeTime, TimeCodeDef)
- Converts a time value into a frame number using specified definitions.
-
toTimeCode(int, TimeCodeDef)
- Converts a frame number into a time value using specified definitions.
fromMedia
public static TimeCoder fromMedia(TimeCodeMedia m) throws StdQTException
- This method allows you to obtain a reference to a media handler component.
This returns the handler that is the appropriate class for this particular media.
QuickTime::GetMediaHandler()
- Returns:
- a MediaHandler object for the media's media handler.
- See Also:
- getTimeCodeMediaHandler, getMediaHandler
getCurrent
public TimeCodeInfo getCurrent() throws QTException
- Determines the time code from the time code handler at the current time value.
QuickTime::TCGetCurrentTimeCode()
- Returns:
- The information object containing the time code, its definition, and data.
getAtTime
public TimeCodeInfo getAtTime(int mediaTime) throws QTException
- Determines the time code from the time code handler.
QuickTime::TCGetTimeCodeAtTime()
- Parameters:
- mediaTime - The time value of the media at which to retrieve the time code information.
- Returns:
- The information object containing the time code, its definition, and data.
timeCodeToString
public String timeCodeToString(TimeCodeDef tcdef,
TimeCodeTime tct) throws StdQTException
- Converts a time value into a string (HH:MM:SS:FF) - if the timecode uses a drop frame technique
the separators are semi-colons (HH;MM;SS;FF).
QuickTime::TCTimeCodeToString()
- Parameters:
- tcdef - the time code definition structure used for the conversion
- tct - the time code time structure used for the conversion
- Returns:
- the converted string
timeCodeToString
public String timeCodeToString(TimeCodeDef tcdef,
int counter) throws StdQTException
- Converts a time value into a string (HH:MM:SS:FF) - if the timecode uses a drop frame technique
the separators are semi-colons (HH;MM;SS;FF).
QuickTime::TCTimeCodeToString()
- Parameters:
- tcdef - the time code definition structure used for the conversion
- counter - the time code counter value
- Returns:
- the converted string
toFrameNumber
public int toFrameNumber(TimeCodeTime tcrec,
TimeCodeDef tcdef) throws StdQTException
- Converts a time value into a frame number using specified definitions.
QuickTime::TCTimeCodeToFrameNumber()
- Parameters:
- tcrec - The time code value structure to convert.
- tcdef - The time code definition object used for the conversion.
- Returns:
- The frame number.
toTimeCode
public TimeCodeTime toTimeCode(int frameNumber,
TimeCodeDef tcdef) throws StdQTException
- Converts a frame number into a time value using specified definitions.
QuickTime::TCFrameNumberToTimeCode()
- Parameters:
- frameNumber - The frame number to convert.
- tcdef - The time code definition object used for the conversion.
- Returns:
- The time code value structure.
getSourceRef
public QTHandle getSourceRef(TimeCodeDescription tcd) throws QTException
- Allows you to retrieve the source information from the time code media sample.
QuickTime::TCGetSourceRef()
- Parameters:
- tcd - the description that describes the time code reference to be changed
- Returns:
- the source information that is found in the sample reference
setSourceRef
public void setSourceRef(TimeCodeDescription tcd,
QTHandleRef sref) throws StdQTException
- Allows you to change the source information in the media sample.
QuickTime::TCSetSourceRef()
- Parameters:
- tcd - the description that describes the time code reference to be changed
- sref - the source information that is placed in the sample reference
setFlags
public void setFlags(int flags,
int flagsMask) throws StdQTException
- Allows you to change the flags that affect how QT handles the timecode information.
QuickTime::TCSetTimeCodeFlags()
- Parameters:
- flags - specifies the new flag value
- flagsMask - specifies which of the flag values are to change.
getFlags
public int getFlags() throws StdQTException
- Allows you to retrieve the timecode control flags.
QuickTime::TCGetTimeCodeFlags()
- Returns:
- the timecode control flags
setDisplayOptions
public void setDisplayOptions(TCTextOptions textOptions) throws StdQTException
- Sets the current display options for text by the TimeCoder.
QuickTime::TCSetDisplayOptions()
- Parameters:
- textOptions - text display options
getDisplayOptions
public TCTextOptions getDisplayOptions() throws StdQTException
- Returns the current display options for text by the TimeCoder.
QuickTime::TCGetDisplayOptions()
- Returns:
- text display options
All Packages Class Hierarchy This Package Previous Next Index