Next Page > Hide TOC

QTKit Data Types Reference

Framework
QTKit/QTKit.h
Declared in
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; }

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.

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
Declared In
QTTimeRange.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.