QTKit Data Types Reference

Framework
QTKit/QTKit.h
Declared in
QTTime.h
QTTimeRange.h

Overview

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

Data Types

QTTime

Defines the value and time scale of a time.

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.

Availability
  • Available in OS X v10.3 and later.
Declared In
QTTime.h

QTTimeRange

Defines a range of time.

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.

Availability
  • Available in OS X v10.3 and later.
Declared In
QTTimeRange.h