This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofDirectShowPlayer.h
Go to the documentation of this file.
Definition ofDirectShowPlayer.cpp:299
Definition ofDirectShowPlayer.h:16
ofDirectShowPlayer & operator=(const ofDirectShowPlayer &)=delete
ofPixelFormat getPixelFormat() const
Definition ofDirectShowPlayer.cpp:1239
bool setPixelFormat(ofPixelFormat pixelFormat)
Set the requested ofPixelFormat.
Definition ofDirectShowPlayer.cpp:1226
bool isPlaying() const
Returns true if the loaded video is playing.
Definition ofDirectShowPlayer.cpp:1222
void previousFrame()
Advance the playhead backward one frame.
Definition ofDirectShowPlayer.cpp:1348
float getWidth() const
Get the width in pixels of the loaded video.
Definition ofDirectShowPlayer.cpp:1200
void firstFrame()
Set the playhead position to the first frame.
Definition ofDirectShowPlayer.cpp:1338
void setFrame(int frame)
Set the current frame by frame number.
Definition ofDirectShowPlayer.cpp:1331
std::shared_ptr< DirectShowVideo > player
Definition ofDirectShowPlayer.h:68
float getHeight() const
Get the height in pixels of the loaded video.
Definition ofDirectShowPlayer.cpp:1207
void setPaused(bool bPause)
Set the paused state of the video.
Definition ofDirectShowPlayer.cpp:1270
void update()
Update the object's state.
Definition ofDirectShowPlayer.cpp:1170
void nextFrame()
Advance the playhead forward one frame.
Definition ofDirectShowPlayer.cpp:1342
void setSpeed(float speed)
Set the video playback speed.
Definition ofDirectShowPlayer.cpp:1301
int getCurrentFrame() const
Get the current playhead position as a frame number.
Definition ofDirectShowPlayer.cpp:1307
ofDirectShowPlayer(const ofDirectShowPlayer &)=delete
bool getIsMovieDone() const
Returns true if the loaded video has finished playing.
Definition ofDirectShowPlayer.cpp:1266
void setVolume(float volume)
Set the volume of the video player.
Definition ofDirectShowPlayer.cpp:1282
bool load(std::string path)
Load a video resource by name.
Definition ofDirectShowPlayer.cpp:1154
const ofPixels & getPixels() const
Get a const reference to the underlying ofPixels.
Definition ofDirectShowPlayer.cpp:1192
int getTotalNumFrames() const
Get the total number of frames in the currently loaded video.
Definition ofDirectShowPlayer.cpp:1314
float getDuration() const
Get the duration of the loaded video in seconds.
Definition ofDirectShowPlayer.cpp:1258
void play()
Play the video from the current playhead position.
Definition ofDirectShowPlayer.cpp:1176
void setPosition(float pct)
Set the position of the playhead.
Definition ofDirectShowPlayer.cpp:1276
bool isPaused() const
Returns true if the video is paused.
Definition ofDirectShowPlayer.cpp:1214
float getSpeed() const
Get the playback speed of the video player.
Definition ofDirectShowPlayer.cpp:1251
ofLoopType getLoopState() const
Get the current loop state of the video.
Definition ofDirectShowPlayer.cpp:1321
bool isLoaded() const
Returns true if a video is loaded.
Definition ofDirectShowPlayer.cpp:1218
float getPosition() const
Get the current playhead position of the loaded video.
Definition ofDirectShowPlayer.cpp:1244
void stop()
Pause and reset the playhead position to the first frame.
Definition ofDirectShowPlayer.cpp:1182
void setLoopState(ofLoopType state)
Set the video loop state.
Definition ofDirectShowPlayer.cpp:1288
ofLoopType
Used to represent the available video looping modes.
Definition ofVideoBaseTypes.h:11