Mac Developer Library

Developer

QTKit Framework Reference QTKit Data Types Reference

Options
Deployment Target:

On This Page
Language:

QTKit Data Types Reference

This chapter describes the data types and constants found in the QuickTime Kit framework.

Data Types

  • Defines the value and time scale of a time.

    Declaration

    Swift

    struct QTTime { var timeValue: Int64 var timeScale: Int var flags: Int }

    Objective-C

    typedef struct { long long timeValue; long timeScale; long flags; } QTTime;

    Discussion

    The QTTime structure defines the value and time scale of a time. Currently only one flag is defined:

    • enum {
    • kQTTimeIsIndefinite = 1 << 0
    • };

    If this flag is set in a QTTime structure, the other fields should not be used. The QTKit provides a number of functions for converting and comparing QTTime structures.

    Import Statement

    import QTKit

    Availability

    Available in OS X v10.3 and later.

  • Defines a range of time.

    Declaration

    Swift

    struct QTTimeRange { var time: QTTime var duration: QTTime }

    Objective-C

    typedef struct { QTTime time; QTTime duration; } QTTimeRange;

    Discussion

    The QTTimeRange structure defines a range of time. It is used, for instance, to specify the active segment of a movie or track. The QTKit provides a number of functions for converting and comparing QTTimeRange structures.

    Import Statement

    import QTKit

    Availability

    Available in OS X v10.3 and later.