#include <ofVideoPlayer.h>
Public Member Functions | |
ofVideoPlayer () | |
virtual | ~ofVideoPlayer () |
bool | loadMovie (string name) |
void | closeMovie () |
void | close () |
void | update () |
void | idleMovie () |
void | play () |
void | stop () |
bool | isFrameNew () |
unsigned char * | getPixels () |
float | getPosition () |
float | getSpeed () |
float | getDuration () |
bool | getIsMovieDone () |
void | setPosition (float pct) |
void | setVolume (int volume) |
void | setLoopState (int state) |
void | setSpeed (float speed) |
void | setFrame (int frame) |
void | setUseTexture (bool bUse) |
ofTexture & | getTextureReference () |
void | draw (float x, float y, float w, float h) |
void | draw (float x, float y) |
void | setAnchorPercent (float xPct, float yPct) |
void | setAnchorPoint (int x, int y) |
void | resetAnchor () |
void | setPaused (bool bPause) |
int | getCurrentFrame () |
int | getTotalNumFrames () |
void | firstFrame () |
void | nextFrame () |
void | previousFrame () |
float | getHeight () |
float | getWidth () |
Public Attributes | |
int | width |
int | height |
float | speed |
bool | bLoaded |
int | nFrames |
unsigned char * | pixels |
bool | bHavePixelsChanged |
ofTexture | tex |
bool | bUseTexture |
bool | allocated |
Protected Member Functions | |
void | start () |
void | createImgMemAndGWorld () |
Protected Attributes | |
bool | bStarted |
bool | bPlaying |
bool | bPaused |
bool | bIsFrameNew |
ofVideoPlayer::ofVideoPlayer | ( | ) |
ofVideoPlayer::~ofVideoPlayer | ( | ) | [virtual] |
void ofVideoPlayer::close | ( | ) | [virtual] |
Implements ofBaseVideo.
void ofVideoPlayer::closeMovie | ( | ) |
void ofVideoPlayer::createImgMemAndGWorld | ( | ) | [protected] |
void ofVideoPlayer::draw | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) | [virtual] |
Implements ofBaseDraws.
void ofVideoPlayer::draw | ( | float | x, |
float | y | ||
) | [virtual] |
Implements ofBaseDraws.
void ofVideoPlayer::firstFrame | ( | ) |
int ofVideoPlayer::getCurrentFrame | ( | ) |
float ofVideoPlayer::getDuration | ( | ) |
float ofVideoPlayer::getHeight | ( | ) | [virtual] |
Implements ofBaseDraws.
bool ofVideoPlayer::getIsMovieDone | ( | ) |
unsigned char * ofVideoPlayer::getPixels | ( | ) | [virtual] |
Implements ofBaseVideo.
float ofVideoPlayer::getPosition | ( | ) |
float ofVideoPlayer::getSpeed | ( | ) |
ofTexture & ofVideoPlayer::getTextureReference | ( | ) | [virtual] |
Implements ofBaseHasTexture.
int ofVideoPlayer::getTotalNumFrames | ( | ) |
float ofVideoPlayer::getWidth | ( | ) | [virtual] |
Implements ofBaseDraws.
void ofVideoPlayer::idleMovie | ( | ) |
bool ofVideoPlayer::isFrameNew | ( | ) |
bool ofVideoPlayer::loadMovie | ( | string | name ) |
void ofVideoPlayer::nextFrame | ( | ) |
void ofVideoPlayer::play | ( | ) |
void ofVideoPlayer::previousFrame | ( | ) |
void ofVideoPlayer::resetAnchor | ( | ) | [virtual] |
Reimplemented from ofBaseDraws.
void ofVideoPlayer::setAnchorPercent | ( | float | xPct, |
float | yPct | ||
) | [virtual] |
Reimplemented from ofBaseDraws.
void ofVideoPlayer::setAnchorPoint | ( | int | x, |
int | y | ||
) | [virtual] |
Reimplemented from ofBaseDraws.
void ofVideoPlayer::setFrame | ( | int | frame ) |
void ofVideoPlayer::setLoopState | ( | int | state ) |
void ofVideoPlayer::setPaused | ( | bool | bPause ) |
void ofVideoPlayer::setPosition | ( | float | pct ) |
void ofVideoPlayer::setSpeed | ( | float | speed ) |
void ofVideoPlayer::setUseTexture | ( | bool | bUse ) |
void ofVideoPlayer::setVolume | ( | int | volume ) |
void ofVideoPlayer::start | ( | ) | [protected] |
void ofVideoPlayer::stop | ( | ) |
void ofVideoPlayer::update | ( | ) | [virtual] |
Implements ofBaseUpdates.
bool ofVideoPlayer::bIsFrameNew [protected] |
bool ofVideoPlayer::bPaused [protected] |
bool ofVideoPlayer::bPlaying [protected] |
bool ofVideoPlayer::bStarted [protected] |
unsigned char* ofVideoPlayer::pixels |
float ofVideoPlayer::speed |