Mac OS X Reference Library Apple Developer
Search

QTCaptureLayer Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/QTKit.framework
Availability
Available in QuickTime 7.2.1 and later.
Declared in
QTCaptureLayer.h

Overview

This class provides a layer that displays video frames currently being captured from a device attached to the computer, and is intended to provide support for Core Animation, that is, drawing the contents of a capture session into a layer. QTCaptureLayer renders a capture session within a layer hierarchy.

Tasks

Creating Capture Layers

Class Methods

layerWithSession:

Creates an autoreleased QTCaptureLayer associated with the specified QTCaptureSession object.

+ (id)layerWithSession:(QTCaptureSession *)session

Parameters
session

The session with which to create an autoreleased QuickTime capture layer object.

Discussion

By default, the movie starts playing immediately at rate 1.0 from the beginning of the movie. These default characteristics can be modified by setting layer properties or movie properties

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
QTCaptureLayer.h

Instance Methods

initWithSession:

Creates a QTCaptureLayer associated with the specified QTCaptureSession object.

- (id)initWithSession:(QTCaptureSession *)session

Parameters
session

The session with which to initialize the QuickTime capture layer object.

Discussion

By default, the movie starts playing immediately at rate 1.0 from the beginning of the movie. These default characteristics can be modified by setting layer properties or movie properties.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
QTCaptureLayer.h

session

Returns the capture session associated with a QTCaptureLayer object.

- (QTCaptureSession *)session

Parameters
session

The session returned by the QuickTime capture layer object.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
QTCaptureLayer.h

setSession:

Sets or resets the capture session associated with a QTCaptureLayer object.

- (void)setSession:(QTCaptureSession *)session

Parameters
session

The session set or reset by the QuickTime capture layer object.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
QTCaptureLayer.h



Last updated: 2009-05-20

Did this document help you? Yes It's good, but... Not helpful...