| Framework | /System/Library/Frameworks/QTKit.framework |
| 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.
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.
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.
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.
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.
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.
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.
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.
OSType QTOSTypeForString ( NSString *string );
This function returns a four-character code representing the specified NSString.
QTUtilities.hCompares two SMPTETime structures.
NSComparisonResult QTSMPTETimeCompare(SMPTETime time, SMPTETIme otherTime)
Returns an NSString representing the specified four-character code type.
NSString * QTStringForOSType ( OSType type );
This function returns an NSString representing the specified four-character code type.
QTUtilities.hReturns a human-readable string from the SMPTETime. The returned string is of the form hh:mm:ss.ff.
NSString* QTStringFromSMPTETime(SMPTETime time)
QTTime.hReturns a description of a QTTime structure.
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.
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.
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.
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.
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.
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.
QTTime QTTimeRangeEnd ( QTTimeRange range );
This function returns a QTTime structure representing the end of the specified time range.
QTTimeRange.hReturns a QTTimeRange structure
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.
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
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-06)