Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions
cinder::qtime::MovieBase Class Reference

#import <QuickTime.h>

List of all members.

Classes

struct  Obj

Public Member Functions

(virtual) - ~MovieBase
(bool) - checkPlayable
 Returns whether the movie has loaded and buffered enough to playback without interruption.
(int32_t) - getWidth
 Returns the width of the movie in pixels.
(int32_t) - getHeight
 Returns the height of the movie in pixels.
(Vec2i- getSize
 Returns the size of the movie in pixels.
(float) - getAspectRatio
 Returns the movie's aspect ratio, the ratio of its width to its height.
(Area- getBounds
 the Area defining the Movie's bounds in pixels: [0,0]-[width,height]
(float) - getPixelAspectRatio
 Returns the movie's pixel aspect ratio. Returns 1.0 if the movie does not contain an explicit pixel aspect ratio.
(float) - getDuration
 Returns the movie's length measured in seconds.
(float) - getFramerate
 Returns the movie's framerate measured as frames per second.
(int32_t) - getNumFrames
 Returns the total number of frames (video samples) in the movie.
(bool) - hasAlpha
 Returns whether the first video track in the movie contains an alpha channel. Returns false in the absence of visual media.
(bool) - hasVisuals
 Returns whether a movie contains at least one visual track, defined as Video, MPEG, Sprite, QuickDraw3D, Text, or TimeCode tracks.
(bool) - hasAudio
 Returns whether a movie contains at least one audio track, defined as Sound, Music, or MPEG tracks.
(bool) - checkNewFrame
 Returns whether a movie has a new frame available.
(float) - getCurrentTime
 Returns the current time of a movie in seconds.
(void) - seekToTime
 Sets the movie to the time seconds.
(void) - seekToFrame
 Sets the movie time to the start time of frame frame.
(void) - seekToStart
 Sets the movie time to its beginning.
(void) - seekToEnd
 Sets the movie time to its end.
(void) - setActiveSegment
 Limits the active portion of a movie to a subset beginning at startTime seconds and lasting for duration seconds. QuickTime will not process the movie outside the active segment.
(void) - resetActiveSegment
 Resets the active segment to be the entire movie.
(void) - setLoop
 Sets whether the movie is set to loop during playback. If palindrome is true, the movie will "ping-pong" back and forth.
(void) - stepForward
 Advances the movie by one frame (a single video sample). Ignores looping settings.
(void) - stepBackward
 Steps backward by one frame (a single video sample). Ignores looping settings.
(void) - setRate
 Sets the playback rate, which begins playback immediately for nonzero values. 1.0 represents normal speed. Negative values indicate reverse playback and 0 stops.
(void) - setVolume
 Sets the audio playback volume ranging from [0 - 1.0].
(float) - getVolume
 Gets the audio playback volume ranging from [0 - 1.0].
(void) - setupMonoFft
 Sets up Fourier analysis on the movie using numBands distinct bands in a single (mono) channel. This data is only available during playback.
(void) - setupStereoFft
 Sets up Fourier analysis on the movie using numBands distinct bands in a two (stereo) channels. This data is only available during playback.
(void) - setupMultiChannelFft
 Sets up Fourier analysis on the movie using numBands distinct bands in as many channels as the audo track contains. To determine the number of channels, use getNumFftChannels. This data is only available during playback.
(float *) - getFftData
(uint32_t) - getNumFftBands
(uint32_t) - getNumFftChannels
(bool) - isPlaying
 Returns whether the movie is currently playing or is paused/stopped.
(bool) - isDone
 Returns whether the movie has completely finished playing.
(void) - play
 Begins movie playback.
(void) - stop
 Stops movie playback.
(void) - setNewFrameCallback
 Sets a function which is called whenever the movie has rendered a new frame during playback. Generally only necessary for advanced users.
(::Movie- getMovieHandle
 Returns the native QuickTime Movie data structure.

Protected Member Functions

() - MovieBase
(void) - init
(void) - updateFrame
(void) - updateLoadState
(void) - setupFft
(TimeValue- getStartTimeOfFirstSample
(void) - initFromPath
(void) - initFromLoader
(void) - initFromMemory
(void) - initFromDataSource
(virtual Obj *) - getObj

Static Protected Member Functions

(static int32_t) + countFrames

Constructor & Destructor Documentation

- (virtual) qtime:
- cinder:

Member Function Documentation

- (bool) qtime:

Returns whether the movie has loaded and buffered enough to playback without interruption.

Returns:
The movie has loaded and buffered enough to playback without interruption
- (int32_t) qtime: const

Returns the width of the movie in pixels.

- (int32_t) qtime: const

Returns the height of the movie in pixels.

- (Vec2i) qtime: const

Returns the size of the movie in pixels.

- (float) qtime: const

Returns the movie's aspect ratio, the ratio of its width to its height.

- (Area) qtime: const

the Area defining the Movie's bounds in pixels: [0,0]-[width,height]

- (float) qtime: const

Returns the movie's pixel aspect ratio. Returns 1.0 if the movie does not contain an explicit pixel aspect ratio.

- (float) qtime: const

Returns the movie's length measured in seconds.

- (float) qtime: const

Returns the movie's framerate measured as frames per second.

See also:
http://developer.apple.com/mac/library/qa/qa2001/qa1262.html Technical Q&A QA1262
- (int32_t) qtime: const

Returns the total number of frames (video samples) in the movie.

- (bool) qtime: const

Returns whether the first video track in the movie contains an alpha channel. Returns false in the absence of visual media.

See also:
http://developer.apple.com/qa/qtmtb/qtmtb17.html Technical Q&A QTMTB17
- (bool) qtime: const

Returns whether a movie contains at least one visual track, defined as Video, MPEG, Sprite, QuickDraw3D, Text, or TimeCode tracks.

- (bool) qtime: const

Returns whether a movie contains at least one audio track, defined as Sound, Music, or MPEG tracks.

- (bool) qtime:

Returns whether a movie has a new frame available.

- (float) qtime: const

Returns the current time of a movie in seconds.

- (void) qtime: (float)  seconds

Sets the movie to the time seconds.

- (void) qtime: (int)  frame

Sets the movie time to the start time of frame frame.

- (void) qtime:

Sets the movie time to its beginning.

- (void) qtime:

Sets the movie time to its end.

- (void) qtime: (float)  startTime
(float)  duration 

Limits the active portion of a movie to a subset beginning at startTime seconds and lasting for duration seconds. QuickTime will not process the movie outside the active segment.

- (void) qtime:

Resets the active segment to be the entire movie.

- (void) qtime: (bool)  loop = true
(bool)  palindrome = false 

Sets whether the movie is set to loop during playback. If palindrome is true, the movie will "ping-pong" back and forth.

- (void) qtime:

Advances the movie by one frame (a single video sample). Ignores looping settings.

- (void) qtime:

Steps backward by one frame (a single video sample). Ignores looping settings.

- (void) qtime: (float)  rate

Sets the playback rate, which begins playback immediately for nonzero values. 1.0 represents normal speed. Negative values indicate reverse playback and 0 stops.

- (void) qtime: (float)  volume

Sets the audio playback volume ranging from [0 - 1.0].

- (float) qtime: const

Gets the audio playback volume ranging from [0 - 1.0].

- (void) qtime: (uint32_t)  numBands

Sets up Fourier analysis on the movie using numBands distinct bands in a single (mono) channel. This data is only available during playback.

- (void) qtime: (uint32_t)  numBands

Sets up Fourier analysis on the movie using numBands distinct bands in a two (stereo) channels. This data is only available during playback.

- (void) qtime: (uint32_t)  numBands

Sets up Fourier analysis on the movie using numBands distinct bands in as many channels as the audo track contains. To determine the number of channels, use getNumFftChannels. This data is only available during playback.

- (float *) qtime: const
- (uint32_t) qtime: const
- (uint32_t) qtime: const
- (bool) qtime: const

Returns whether the movie is currently playing or is paused/stopped.

- (bool) qtime: const

Returns whether the movie has completely finished playing.

- (void) qtime:

Begins movie playback.

- (void) qtime:

Stops movie playback.

- (void) qtime: (void(*)(long, void *))  aNewFrameCallback
(void *)  aNewFrameCallbackRefcon 

Sets a function which is called whenever the movie has rendered a new frame during playback. Generally only necessary for advanced users.

- : const

Returns the native QuickTime Movie data structure.

- (void) qtime:
- (void) qtime:
- (void) qtime:
- (void) qtime: (FourCharCode code
(uint32_t)  bandNum
(uint8_t)  channelNum 
+ (int32_t) qtime: (::Movie theMovie
- (TimeValue) qtime: const
- (void) qtime: (const fs::path &)  filePath
- (void) qtime: (const class MovieLoader &)  loader
- (void) qtime: (const void *)  data
(size_t)  dataSize
(const std::string &)  fileNameHint
(const std::string &)  mimeTypeHint 
- (void) qtime: (DataSourceRef dataSource
(const std::string &)  mimeTypeHint 
- (virtual Obj*) qtime: const

The documentation for this class was generated from the following files: