| Framework | QTKit/QTKit.h |
| Declared in | QTTime.h QTTimeRange.h QTUtilities.h |
This chapter describes the functions that are available in the QuickTime Kit framework.
The following functions are used to create QTTime structures:
The following functions are used to get and set times:
The following function is used to compare QTTime structures:
The following functions are used to add and subtract times:
The following function is used to get a time description:
QTEqualTimeRanges
QTIntersectionTimeRange
QTMakeTimeRange
QTStringFromTimeRange
QTTimeInTimeRange
QTTimeRangeEnd
QTTimeRangeFromString
QTUnionTimeRange
Returns YES if the specified time ranges are identical.
QTKIT_EXTERN BOOL QTEqualTimeRanges ( QTTimeRange range, QTTimeRange range2 );
This function returns YES if the specified time ranges are identical.
QTTimeRange.hReturns the value of a QTTime structure expressed as an NSTimeInterval.
QTKIT_EXTERN BOOL QTGetTimeInterval ( QTTime time, NSTimeInterval *timeInterval );
This function returns, in the location to by timeInterval, the value of a QTTime structure expressed as a NSTimeInterval. Returns YES if the method succeeded.
QTTime.hReturns the value of a QTTime structure expressed as a TimeRecord.
QTKIT_EXTERN BOOL QTGetTimeRecord ( QTTime time, TimeRecord *timeRecord );
This function returns, in the location pointed to by timeRecord, the value of a QTTime structure expressed as a TimeRecord. Returns YES if the method succeeded.
QTTime.hReturns a QTTimeRange structure that represents the intersection of the two ranges.
QTKIT_EXTERN QTTimeRange QTIntersectionTimeRange ( QTTimeRange range1, QTTimeRange range2 );
This function returns a QTTimeRange structure that represents the intersection of the two ranges. The intersection of two ranges is the largest range that includes all times that are in both ranges.
QTTimeRange.hCreates a QTTime structure.
QTKIT_EXTERN QTTime QTMakeTime ( long long timeValue, long timeScale );
This function creates a QTTime structure initialized using the scalar value timeValue and the time scale scale.
QTTime.hReturns a QTTimeRange structure initialized using the QTTime structures time and duration.
QTKIT_EXTERN QTTimeRange QTMakeTimeRange ( QTTime time, QTTime duration );
This function returns a QTTimeRange structure initialized using the QTTime structures time and duration. Those structures may have different time scales. In all cases, the time scale used in the new QTTimeRange structure is that of time.
QTTimeRange.hReturns a QTTime structure.
QTKIT_EXTERN QTTime QTMakeTimeScaled ( QTTime time, long timeScale );
This function returns a QTTime structure whose time is set to the time of a QTTime structure interpreted using the time scale scale.
QTTime.hCreates a QTTime structure.
QTKIT_EXTERN QTTime QTMakeTimeWithTimeInterval ( NSTimeInterval timeInterval );
Creates a QTTime structure initialized using the NSTimeInterval value timeInterval.
QTTime.hCreates a QTTime structure.
QTKIT_EXTERN QTTime QTMakeTimeWithTimeRecord ( TimeRecord timeRecord );
This function creates a QTTime structure initialized using the values in the time record timeRecord.
QTTime.hReturns a four-character code representing the specified NSString.
QTKIT_EXTERN OSType QTOSTypeForString ( NSString *string );
This function returns a four-character code representing the specified NSString.
QTUtilities.hReturns an NSString representing the specified four-character code type.
QTKIT_EXTERN NSString * QTStringForOSType ( OSType type );
This function returns an NSString representing the specified four-character code type.
QTUtilities.hReturns a description of a QTTime structure.
QTKIT_EXTERN NSString * QTStringFromTime ( QTTime time );
This function returns a description of a QTTime structure. The string is in the form "sign:days:hours:minutes:seconds:timevalue:timescale", where sign is empty or “-”. Note that this is not for user input, but for archiving and debugging purposes.
QTTime.hReturns a description of a QTTimeRange structure.
QTKIT_EXTERN NSString * QTStringFromTimeRange ( QTTimeRange range );
This function returns a description of a QTTimeRange structure. The string is in the form "hours:minutes:seconds.frames:: hours:minutes:seconds.frames". Note that this is for archiving and debugging purposes, not for user display.
QTTimeRange.hReturns a value of type NSComparisonResult.
QTKIT_EXTERN NSComparisonResult QTTimeCompare ( QTTime time, QTTime otherTime );
This function returns a value of type NSComparisonResult that indicates the result of comparing a QTTime structure with the specified QTTime structure otherTime.
QTTime.hSubtracks one QTTime from another.
QTKIT_EXTERN QTTime QTTimeDecrement ( QTTime time, QTTime decrement );
This function returns a QTTime structure whose time is set to the time of a QTTime structure minus that of the structure decrement.
QTTime.hReturns a QTTime structure.
QTKIT_EXTERN QTTime QTTimeFromString ( NSString *string );
This function returns a QTTime structure whose time is set to the time expressed by the string; the string is assumed to be in the form "days:hours:minutes:seconds:frames/timescale".
QTTime.hAdds two QTTime structures.
QTKIT_EXTERN QTTime QTTimeIncrement ( QTTime time, QTTime increment );
This function returns a QTTime structure whose time is set to the time of a QTTime structure plus that of the structure increment.
QTTime.hReturns YES if the specified time time lies in the time range range.
QTKIT_EXTERN BOOL QTTimeInTimeRange ( QTTime time, QTTimeRange range );
This function returns YES if the specified time time lies in the time range range.
QTTimeRange.hReturns a QTTime structure representing the end of the specified time range.
QTKIT_EXTERN QTTime QTTimeRangeEnd ( QTTimeRange range );
This function returns a QTTime structure representing the end of the specified time range.
QTTimeRange.hReturns a QTTimeRange structure
QTKIT_EXTERN QTTimeRange QTTimeRangeFromString ( NSString *string );
This function returns a QTTimeRange structure whose range is set to the range expressed by string; the string is assumed to be in the form "days:hours:minutes:seconds.frames/timescale~days:hours:minutes:seconds.frames/timescale".
QTTimeRange.hReturns a QTTimeRange structure.
QTKIT_EXTERN QTTimeRange QTUnionTimeRange ( QTTimeRange range1, QTTimeRange range2 );
This function returns a QTTimeRange structure that represents the union of the two ranges. The union of two ranges is the smallest range that includes all times that are in either range.
QTTimeRange.h
Last updated: 2006-05-23