Mac Developer Library

Developer

QTKit Framework Reference QTKit Data Types Reference

Options
Deployment Target:

On This Page
Language:

QTKit Data Types Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import QTKit

Objective-C

@import QTKit;

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 init() init(timeValue timeValue: Int64, timeScale timeScale: Int, flags 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

    Objective-C

    @import QTKit;

    Swift

    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 init() init(time time: QTTime, duration 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

    Objective-C

    @import QTKit;

    Swift

    import QTKit

    Availability

    Available in OS X v10.3 and later.