DzVideoClip Class Reference

Class that encapsulates a simple video clip with per frame images. More...

Inheritance diagram for DzVideoClip:

QObject Object List of all members.

Methods

void appendFrame (Image img)
void appendFrameFile (String imgFilename)
DzAudioClip getAudio ()
DzTime getAudioStartTime ()
Image getFrame (Number i)
Number getFrameRate ()
Number getHeight ()
Number getNumFrames ()
Number getWidth ()
void setAudio (DzAudioClip audio, DzTime audioStartTime)
void setFrameRate (Number rate)

Constructors

 DzVideoClip (Number width, Number height, Number rate)
 DzVideoClip ()

Detailed Description

Class that encapsulates a simple video clip with per frame images.


Constructor & Destructor Documentation

DzVideoClip::DzVideoClip (  ) 

Default Constructor.

DzVideoClip::DzVideoClip ( Number  width,
Number  height,
Number  rate 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


Member Function Documentation

void DzVideoClip::appendFrame ( Image  img  ) 

Adds a frame to the end of the clip

Parameters:
img Image to add as a frame.

void DzVideoClip::appendFrameFile ( String  imgFilename  ) 

Adds a frame to the end of the clip

Parameters:
filename Image file to add as a frame.

DzAudioClip DzVideoClip::getAudio (  ) 

Returns:
The audio (if any) that is associated with the video.

DzTime DzVideoClip::getAudioStartTime (  ) 

Returns:
The time offset from the beginning of the video that the audio clip begins. This can be negative (the beginning of the video starts part way into the audio clip).

Image DzVideoClip::getFrame ( Number  i  ) 

Returns:
The i'th frame in still image form

Number DzVideoClip::getFrameRate (  ) 

Returns:
The number of frames per second for the clip

Number DzVideoClip::getHeight (  ) 

Returns:
The height of the video clip.

Number DzVideoClip::getNumFrames (  ) 

Returns:
The number of frames in the video clip.

Number DzVideoClip::getWidth (  ) 

Returns:
The width of the video clip.

void DzVideoClip::setAudio ( DzAudioClip  audio,
DzTime  audioStartTime 
)

Set the audio that accompanies the video clip

Parameters:
audio The audio clip for the video.
audioStartTime The time offset from the beginning of the video that the audio clip begins. This can be negative (the beginning of the video starts part way into the audio clip).

void DzVideoClip::setFrameRate ( Number  rate  ) 

Set the frame rate of the clip

Parameters:
rate The number of frames per second for the clip


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.