#include <QuickTimeImplLegacy.h>
Inherits cinder::qtime::MovieBase, and cinder::qtime::MovieBase.
|
| MovieSurface () |
|
| MovieSurface (const Url &url) |
|
| MovieSurface (const fs::path &path) |
|
| MovieSurface (const MovieLoader &loader) |
|
NSDictionary * | avPlayerItemOutputDictionary () const override |
|
void | allocateVisualContext () override |
|
void | deallocateVisualContext () override |
|
void | newFrame (CVImageBufferRef cvImage) override |
|
void | releaseFrame () override |
|
| MovieSurface () |
|
| MovieSurface (const fs::path &path) |
|
| MovieSurface (const class MovieLoader &loader) |
|
| MovieSurface (const void *data, size_t dataSize, const std::string &fileNameHint, const std::string &mimeTypeHint="") |
|
| MovieSurface (DataSourceRef dataSource, const std::string mimeTypeHint="") |
|
void | allocateVisualContext () |
|
virtual MovieBase::Obj * | getObj () const |
|
void | init () |
|
void | init () |
|
void | initFromUrl (const Url &url) |
|
void | initFromPath (const fs::path &filePath) |
|
void | initFromPath (const fs::path &filePath) |
|
void | initFromLoader (const MovieLoader &loader) |
|
void | initFromLoader (const class MovieLoader &loader) |
|
void | loadAsset () |
|
void | updateFrame () |
|
void | updateFrame () |
|
uint32_t | countFrames () const |
|
void | processAssetTracks (AVAsset *asset) |
|
void | createPlayerItemOutput (const AVPlayerItem *playerItem) |
|
void | lock () |
|
void | unlock () |
|
void | removeObservers () |
|
void | addObservers () |
|
void | playerReady () |
|
void | playerItemEnded () |
|
void | playerItemCancelled () |
|
void | playerItemJumped () |
|
void | outputWasFlushed (AVPlayerItemOutput *output) |
|
void | updateLoadState () |
|
void | setupFft (FourCharCode code, uint32_t bandNum, uint8_t channelNum) |
|
TimeValue | getStartTimeOfFirstSample () const |
|
void | initFromMemory (const void *data, size_t dataSize, const std::string &fileNameHint, const std::string &mimeTypeHint) |
|
void | initFromDataSource (DataSourceRef dataSource, const std::string &mimeTypeHint) |
|
Emulates shared_ptr-like behavior.
virtual cinder::qtime::MovieSurface::~MovieSurface |
( |
| ) |
|
|
virtual |
cinder::qtime::MovieSurface::MovieSurface |
( |
| ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const Url & |
url | ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const fs::path & |
path | ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const MovieLoader & |
loader | ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
| ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const fs::path & |
path | ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const class MovieLoader & |
loader | ) |
|
|
protected |
cinder::qtime::MovieSurface::MovieSurface |
( |
const void * |
data, |
|
|
size_t |
dataSize, |
|
|
const std::string & |
fileNameHint, |
|
|
const std::string & |
mimeTypeHint = "" |
|
) |
| |
|
protected |
Constructs a MovieSurface from a block of memory of size dataSize pointed to by data, which must not be disposed of during the lifetime of the movie.
fileNameHint and mimeTypeHint provide important hints to QuickTime about the contents of the file. Omit both of them at your peril. "video/quicktime" is often a good choice for mimeTypeHint.
cinder::qtime::MovieSurface::MovieSurface |
( |
DataSourceRef |
dataSource, |
|
|
const std::string |
mimeTypeHint = "" |
|
) |
| |
|
protected |
static MovieSurfaceRef cinder::qtime::MovieSurface::create |
( |
const fs::path & |
path | ) |
|
|
static |
SurfaceRef cinder::qtime::MovieSurface::getSurface |
( |
| ) |
|
Returns the Surface8u representing the Movie's current frame.
NSDictionary* cinder::qtime::MovieSurface::avPlayerItemOutputDictionary |
( |
| ) |
const |
|
overrideprotectedvirtual |
void cinder::qtime::MovieSurface::allocateVisualContext |
( |
| ) |
|
|
overrideprotectedvirtual |
void cinder::qtime::MovieSurface::deallocateVisualContext |
( |
| ) |
|
|
overrideprotectedvirtual |
void cinder::qtime::MovieSurface::releaseFrame |
( |
| ) |
|
|
overrideprotectedvirtual |
static MovieSurfaceRef cinder::qtime::MovieSurface::create |
( |
const fs::path & |
path | ) |
|
|
static |
static MovieSurfaceRef cinder::qtime::MovieSurface::create |
( |
const void * |
data, |
|
|
size_t |
dataSize, |
|
|
const std::string & |
fileNameHint, |
|
|
const std::string & |
mimeTypeHint = "" |
|
) |
| |
|
static |
SurfaceRef cinder::qtime::MovieSurface::getSurface |
( |
| ) |
|
Returns the Surface8u representing the Movie's current frame.
void cinder::qtime::MovieSurface::allocateVisualContext |
( |
| ) |
|
|
protectedvirtual |
Emulates shared_ptr-like behavior.
void cinder::qtime::MovieSurface::reset |
( |
| ) |
|
Emulates shared_ptr-like behavior.
int32_t cinder::qtime::MovieBase::getWidth |
( |
| ) |
const |
|
inherited |
Returns the width of the movie in pixels.
int32_t cinder::qtime::MovieBase::getWidth |
( |
| ) |
const |
|
inherited |
Returns the width of the movie in pixels.
int32_t cinder::qtime::MovieBase::getHeight |
( |
| ) |
const |
|
inherited |
Returns the height of the movie in pixels.
int32_t cinder::qtime::MovieBase::getHeight |
( |
| ) |
const |
|
inherited |
Returns the height of the movie in pixels.
ivec2 cinder::qtime::MovieBase::getSize |
( |
| ) |
const |
|
inherited |
Returns the size of the movie in pixels.
ivec2 cinder::qtime::MovieBase::getSize |
( |
| ) |
const |
|
inherited |
Returns the size of the movie in pixels.
float cinder::qtime::MovieBase::getAspectRatio |
( |
| ) |
const |
|
inherited |
Returns the movie's aspect ratio, the ratio of its width to its height.
float cinder::qtime::MovieBase::getAspectRatio |
( |
| ) |
const |
|
inherited |
Returns the movie's aspect ratio, the ratio of its width to its height.
Area cinder::qtime::MovieBase::getBounds |
( |
| ) |
const |
|
inherited |
the Area defining the Movie's bounds in pixels: [0,0]-[width,height]
Area cinder::qtime::MovieBase::getBounds |
( |
| ) |
const |
|
inherited |
the Area defining the Movie's bounds in pixels: [0,0]-[width,height]
float cinder::qtime::MovieBase::getPixelAspectRatio |
( |
| ) |
const |
|
inherited |
Returns the movie's pixel aspect ratio. Returns 1.0 if the movie does not contain an explicit pixel aspect ratio.
float cinder::qtime::MovieBase::getPixelAspectRatio |
( |
| ) |
const |
|
inherited |
Returns the movie's pixel aspect ratio. Returns 1.0 if the movie does not contain an explicit pixel aspect ratio.
bool cinder::qtime::MovieBase::checkPlaythroughOk |
( |
| ) |
|
|
inherited |
Returns whether the movie has loaded and buffered enough to playback without interruption.
bool cinder::qtime::MovieBase::isLoaded |
( |
| ) |
const |
|
inherited |
Returns whether the movie is in a loaded state, implying its structures are ready for reading but it may not be ready for playback.
bool cinder::qtime::MovieBase::isPlayable |
( |
| ) |
const |
|
inherited |
Returns whether the movie is playable, implying the movie is fully formed and can be played but media data is still downloading.
bool cinder::qtime::MovieBase::isProtected |
( |
| ) |
const |
|
inherited |
Returns true if the content represented by the movie is protected by DRM.
float cinder::qtime::MovieBase::getDuration |
( |
| ) |
const |
|
inherited |
Returns the movie's length measured in seconds.
float cinder::qtime::MovieBase::getDuration |
( |
| ) |
const |
|
inherited |
Returns the movie's length measured in seconds.
float cinder::qtime::MovieBase::getFramerate |
( |
| ) |
const |
|
inherited |
float cinder::qtime::MovieBase::getFramerate |
( |
| ) |
const |
|
inherited |
Returns the movie's framerate measured as frames per second.
int32_t cinder::qtime::MovieBase::getNumFrames |
( |
| ) |
|
|
inherited |
Returns the total number of frames (video samples) in the movie.
int32_t cinder::qtime::MovieBase::getNumFrames |
( |
| ) |
const |
|
inherited |
Returns the total number of frames (video samples) in the movie.
bool cinder::qtime::MovieBase::hasVisuals |
( |
| ) |
const |
|
inherited |
Returns whether a movie contains at least one visual track, defined as Video, MPEG, Sprite, QuickDraw3D, Text, or TimeCode tracks.
bool cinder::qtime::MovieBase::hasVisuals |
( |
| ) |
const |
|
inherited |
Returns whether a movie contains at least one visual track, defined as Video, MPEG, Sprite, QuickDraw3D, Text, or TimeCode tracks.
bool cinder::qtime::MovieBase::hasAudio |
( |
| ) |
const |
|
inherited |
Returns whether a movie contains at least one audio track, defined as Sound, Music, or MPEG tracks.
bool cinder::qtime::MovieBase::hasAudio |
( |
| ) |
const |
|
inherited |
Returns whether a movie contains at least one audio track, defined as Sound, Music, or MPEG tracks.
bool cinder::qtime::MovieBase::hasAlpha |
( |
| ) |
const |
|
virtualinherited |
bool cinder::qtime::MovieBase::hasAlpha |
( |
| ) |
const |
|
inherited |
Returns whether the first video track in the movie contains an alpha channel. Returns false in the absence of visual media.
bool cinder::qtime::MovieBase::checkNewFrame |
( |
| ) |
|
|
inherited |
Returns whether a movie has a new frame available.
bool cinder::qtime::MovieBase::checkNewFrame |
( |
| ) |
|
|
inherited |
Returns whether a movie has a new frame available.
float cinder::qtime::MovieBase::getCurrentTime |
( |
| ) |
const |
|
inherited |
Returns the current time of a movie in seconds.
float cinder::qtime::MovieBase::getCurrentTime |
( |
| ) |
const |
|
inherited |
Returns the current time of a movie in seconds.
void cinder::qtime::MovieBase::seekToTime |
( |
float |
seconds | ) |
|
|
inherited |
Sets the movie to the time seconds.
void cinder::qtime::MovieBase::seekToTime |
( |
float |
seconds | ) |
|
|
inherited |
Sets the movie to the time seconds.
void cinder::qtime::MovieBase::seekToFrame |
( |
int |
frame | ) |
|
|
inherited |
Sets the movie time to the start time of frame frame.
void cinder::qtime::MovieBase::seekToFrame |
( |
int |
frame | ) |
|
|
inherited |
Sets the movie time to the start time of frame frame.
void cinder::qtime::MovieBase::seekToStart |
( |
| ) |
|
|
inherited |
Sets the movie time to its beginning.
void cinder::qtime::MovieBase::seekToStart |
( |
| ) |
|
|
inherited |
Sets the movie time to its beginning.
void cinder::qtime::MovieBase::seekToEnd |
( |
| ) |
|
|
inherited |
Sets the movie time to its end.
void cinder::qtime::MovieBase::seekToEnd |
( |
| ) |
|
|
inherited |
Sets the movie time to its end.
void cinder::qtime::MovieBase::setActiveSegment |
( |
float |
startTime, |
|
|
float |
duration |
|
) |
| |
|
inherited |
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 cinder::qtime::MovieBase::setActiveSegment |
( |
float |
startTime, |
|
|
float |
duration |
|
) |
| |
|
inherited |
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 cinder::qtime::MovieBase::resetActiveSegment |
( |
| ) |
|
|
inherited |
Resets the active segment to be the entire movie.
void cinder::qtime::MovieBase::resetActiveSegment |
( |
| ) |
|
|
inherited |
Resets the active segment to be the entire movie.
void cinder::qtime::MovieBase::setLoop |
( |
bool |
loop = true , |
|
|
bool |
palindrome = false |
|
) |
| |
|
inherited |
Sets whether the movie is set to loop during playback. If palindrome is true, the movie will "ping-pong" back and forth.
void cinder::qtime::MovieBase::setLoop |
( |
bool |
loop = true , |
|
|
bool |
palindrome = false |
|
) |
| |
|
inherited |
Sets whether the movie is set to loop during playback. If palindrome is true, the movie will "ping-pong" back and forth.
void cinder::qtime::MovieBase::stepForward |
( |
| ) |
|
|
inherited |
Advances the movie by one frame (a single video sample). Ignores looping settings.
void cinder::qtime::MovieBase::stepForward |
( |
| ) |
|
|
inherited |
Advances the movie by one frame (a single video sample). Ignores looping settings.
void cinder::qtime::MovieBase::stepBackward |
( |
| ) |
|
|
inherited |
Steps backward by one frame (a single video sample). Ignores looping settings.
void cinder::qtime::MovieBase::stepBackward |
( |
| ) |
|
|
inherited |
Steps backward by one frame (a single video sample). Ignores looping settings.
void cinder::qtime::MovieBase::setRate |
( |
float |
rate | ) |
|
|
inherited |
Sets the playback rate, which begins playback immediately for nonzero values. 1.0 represents normal speed. Negative values indicate reverse playback and 0
stops.
Returns a boolean value indicating whether the rate value can be played (some media types cannot be played backwards)
void cinder::qtime::MovieBase::setRate |
( |
float |
rate | ) |
|
|
inherited |
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 cinder::qtime::MovieBase::setVolume |
( |
float |
volume | ) |
|
|
inherited |
Sets the audio playback volume ranging from [0 - 1.0].
void cinder::qtime::MovieBase::setVolume |
( |
float |
volume | ) |
|
|
inherited |
Sets the audio playback volume ranging from [0 - 1.0].
float cinder::qtime::MovieBase::getVolume |
( |
| ) |
const |
|
inherited |
Gets the audio playback volume ranging from [0 - 1.0].
float cinder::qtime::MovieBase::getVolume |
( |
| ) |
const |
|
inherited |
Gets the audio playback volume ranging from [0 - 1.0].
bool cinder::qtime::MovieBase::isPlaying |
( |
| ) |
const |
|
inherited |
Returns whether the movie is currently playing or is paused/stopped.
bool cinder::qtime::MovieBase::isPlaying |
( |
| ) |
const |
|
inherited |
Returns whether the movie is currently playing or is paused/stopped.
bool cinder::qtime::MovieBase::isDone |
( |
| ) |
const |
|
inherited |
Returns whether the movie has completely finished playing.
bool cinder::qtime::MovieBase::isDone |
( |
| ) |
const |
|
inherited |
Returns whether the movie has completely finished playing.
void cinder::qtime::MovieBase::play |
( |
bool |
toggle = false | ) |
|
|
inherited |
void cinder::qtime::MovieBase::play |
( |
| ) |
|
|
inherited |
void cinder::qtime::MovieBase::stop |
( |
| ) |
|
|
inherited |
void cinder::qtime::MovieBase::stop |
( |
| ) |
|
|
inherited |
AVPlayer* cinder::qtime::MovieBase::getPlayerHandle |
( |
| ) |
const |
|
inherited |
Returns the native AvFoundation Player data structure.
signals::Signal<void()>& cinder::qtime::MovieBase::getOutputWasFlushedSignal |
( |
| ) |
|
|
inherited |
void cinder::qtime::MovieBase::init |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::init |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::initFromUrl |
( |
const Url & |
url | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::initFromPath |
( |
const fs::path & |
filePath | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::initFromPath |
( |
const fs::path & |
filePath | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::initFromLoader |
( |
const MovieLoader & |
loader | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::initFromLoader |
( |
const class MovieLoader & |
loader | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::loadAsset |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::updateFrame |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::updateFrame |
( |
| ) |
|
|
protectedinherited |
uint32_t cinder::qtime::MovieBase::countFrames |
( |
| ) |
const |
|
protectedinherited |
int32_t cinder::qtime::MovieBase::countFrames |
( |
::Movie |
theMovie | ) |
|
|
staticprotectedinherited |
void cinder::qtime::MovieBase::processAssetTracks |
( |
AVAsset * |
asset | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::createPlayerItemOutput |
( |
const AVPlayerItem * |
playerItem | ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::lock |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::unlock |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::removeObservers |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::addObservers |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::playerReady |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::playerItemEnded |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::playerItemCancelled |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::playerItemJumped |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::outputWasFlushed |
( |
AVPlayerItemOutput * |
output | ) |
|
|
protectedinherited |
bool cinder::qtime::MovieBase::checkPlayable |
( |
| ) |
|
|
inherited |
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
void cinder::qtime::MovieBase::setupMonoFft |
( |
uint32_t |
numBands | ) |
|
|
inherited |
Sets up Fourier analysis on the movie using numBands distinct bands in a single (mono) channel. This data is only available during playback.
void cinder::qtime::MovieBase::setupStereoFft |
( |
uint32_t |
numBands | ) |
|
|
inherited |
Sets up Fourier analysis on the movie using numBands distinct bands in a two (stereo) channels. This data is only available during playback.
void cinder::qtime::MovieBase::setupMultiChannelFft |
( |
uint32_t |
numBands | ) |
|
|
inherited |
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 * cinder::qtime::MovieBase::getFftData |
( |
| ) |
const |
|
inherited |
uint32_t cinder::qtime::MovieBase::getNumFftBands |
( |
| ) |
const |
|
inherited |
uint32_t cinder::qtime::MovieBase::getNumFftChannels |
( |
| ) |
const |
|
inherited |
void cinder::qtime::MovieBase::setNewFrameCallback |
( |
void(*)(long, void *) |
aNewFrameCallback, |
|
|
void * |
aNewFrameCallbackRefcon |
|
) |
| |
|
inherited |
Sets a function which is called whenever the movie has rendered a new frame during playback. Generally only necessary for advanced users.
::Movie cinder::qtime::MovieBase::getMovieHandle |
( |
| ) |
const |
|
inherited |
Returns the native QuickTime Movie data structure.
void cinder::qtime::MovieBase::updateLoadState |
( |
| ) |
|
|
protectedinherited |
void cinder::qtime::MovieBase::setupFft |
( |
FourCharCode |
code, |
|
|
uint32_t |
bandNum, |
|
|
uint8_t |
channelNum |
|
) |
| |
|
protectedinherited |
TimeValue cinder::qtime::MovieBase::getStartTimeOfFirstSample |
( |
| ) |
const |
|
protectedinherited |
void cinder::qtime::MovieBase::initFromMemory |
( |
const void * |
data, |
|
|
size_t |
dataSize, |
|
|
const std::string & |
fileNameHint, |
|
|
const std::string & |
mimeTypeHint |
|
) |
| |
|
protectedinherited |
void cinder::qtime::MovieBase::initFromDataSource |
( |
DataSourceRef |
dataSource, |
|
|
const std::string & |
mimeTypeHint |
|
) |
| |
|
protectedinherited |
std::shared_ptr<Obj> cinder::qtime::MovieSurface::mObj |
|
protected |
int32_t cinder::qtime::MovieBase::mWidth |
|
protectedinherited |
int32_t cinder::qtime::MovieBase::mHeight |
|
protectedinherited |
int32_t cinder::qtime::MovieBase::mFrameCount |
|
protectedinherited |
float cinder::qtime::MovieBase::mFrameRate |
|
protectedinherited |
float cinder::qtime::MovieBase::mDuration |
|
protectedinherited |
std::atomic<bool> cinder::qtime::MovieBase::mAssetLoaded |
|
protectedinherited |
bool cinder::qtime::MovieBase::mLoaded |
|
protectedinherited |
bool cinder::qtime::MovieBase::mPlayThroughOk |
|
protectedinherited |
bool cinder::qtime::MovieBase::mPlayable |
|
protectedinherited |
bool cinder::qtime::MovieBase::mProtected |
|
protectedinherited |
bool cinder::qtime::MovieBase::mPlayingForward |
|
protectedinherited |
bool cinder::qtime::MovieBase::mLoop |
|
protectedinherited |
bool cinder::qtime::MovieBase::mPalindrome |
|
protectedinherited |
bool cinder::qtime::MovieBase::mHasAudio |
|
protectedinherited |
bool cinder::qtime::MovieBase::mHasVideo |
|
protectedinherited |
bool cinder::qtime::MovieBase::mPlaying |
|
protectedinherited |
AVPlayer* cinder::qtime::MovieBase::mPlayer |
|
protectedinherited |
AVPlayerItem* cinder::qtime::MovieBase::mPlayerItem |
|
protectedinherited |
AVURLAsset* cinder::qtime::MovieBase::mAsset |
|
protectedinherited |
AVPlayerItemVideoOutput* cinder::qtime::MovieBase::mPlayerVideoOutput |
|
protectedinherited |
std::mutex cinder::qtime::MovieBase::mMutex |
|
protectedinherited |
MovieDelegate* cinder::qtime::MovieBase::mPlayerDelegate |
|
protectedinherited |
The documentation for this class was generated from the following files: