This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofVideoBaseTypes.h
Go to the documentation of this file.
18};
Definition ofGraphicsBaseTypes.h:139
An abstract class representing an object that ofTexture planes.
Definition ofGLBaseTypes.h:32
An abstract class representing an object that can be updated.
Definition ofGraphicsBaseTypes.h:213
virtual ~ofBaseVideoDraws()
Destroy the ofBaseVideoDraws.
Definition ofVideoBaseTypes.h:106
A base class representing a video device such as a camera.
Definition ofVideoBaseTypes.h:110
virtual ofTexture * getTexturePtr()
Get the video grabber's internal ofTexture pointer if available.
Definition ofVideoBaseTypes.h:147
virtual void setDesiredFrameRate(int framerate)
Set the video grabber's desired frame rate.
Definition ofBaseTypes.cpp:23
virtual bool setup(int w, int h)=0
Set up the grabber with the requested width and height.
virtual void setDeviceID(int deviceID)
Set the video grabber's device ID.
Definition ofBaseTypes.cpp:18
virtual void setVerbose(bool bTalkToMe)
Set the video grabber's hardware verbosity level.
Definition ofBaseTypes.cpp:13
virtual void videoSettings()
Request a native GUI for video grabber settings.
Definition ofBaseTypes.cpp:28
virtual std::vector< ofVideoDevice > listDevices() const =0
Get a list of available video grabber devices.
virtual ~ofBaseVideoGrabber()
Destroy the ofBaseVideoGrabber.
Definition ofBaseTypes.cpp:8
virtual ofPixelFormat getPixelFormat() const =0
virtual bool setPixelFormat(ofPixelFormat pixelFormat)=0
Set the requested ofPixelFormat.
virtual bool isInitialized() const =0
Determine if the video source is initialized.
virtual bool isFrameNew() const =0
virtual ~ofBaseVideo()
Destroy the ofBaseVideo.
Definition ofVideoBaseTypes.h:72
virtual void setFrame(int frame)
Set the current frame by frame number.
Definition ofBaseTypes.cpp:105
virtual ~ofBaseVideoPlayer()
Destroys the ofBaseVideoPlayer.
Definition ofBaseTypes.cpp:46
virtual void setPaused(bool bPause)
Set the paused state of the video.
Definition ofBaseTypes.cpp:80
virtual float getPosition() const
Get the current playhead position of the loaded video.
Definition ofBaseTypes.cpp:56
virtual void firstFrame()
Set the playhead position to the first frame.
Definition ofBaseTypes.cpp:128
virtual bool getIsMovieDone() const
Returns true if the loaded video has finished playing.
Definition ofBaseTypes.cpp:74
virtual void previousFrame()
Advance the playhead backward one frame.
Definition ofBaseTypes.cpp:138
virtual void loadAsync(std::string name)
Asynchronously load a video resource by name.
Definition ofBaseTypes.cpp:50
virtual void setPosition(float pct)
Set the position of the playhead.
Definition ofBaseTypes.cpp:85
virtual void stop()=0
Pause and reset the playhead position to the first frame.
virtual float getSpeed() const
Get the playback speed of the video player.
Definition ofBaseTypes.cpp:62
virtual float getWidth() const =0
Get the width in pixels of the loaded video.
virtual void setVolume(float volume)
Set the volume of the video player.
Definition ofBaseTypes.cpp:90
virtual bool isInitialized() const
Returns true if a video is loaded.
Definition ofVideoBaseTypes.h:248
virtual void setLoopState(ofLoopType state)
Set the video loop state.
Definition ofBaseTypes.cpp:95
virtual float getHeight() const =0
Get the height in pixels of the loaded video.
virtual ofLoopType getLoopState() const
Get the current loop state of the video.
Definition ofBaseTypes.cpp:122
virtual void nextFrame()
Advance the playhead forward one frame.
Definition ofBaseTypes.cpp:133
virtual float getDuration() const
Get the duration of the loaded video in seconds.
Definition ofBaseTypes.cpp:68
virtual bool isPlaying() const =0
Returns true if the loaded video is playing.
virtual int getTotalNumFrames() const
Get the total number of frames in the currently loaded video.
Definition ofBaseTypes.cpp:116
virtual int getCurrentFrame() const
Get the current playhead position as a frame number.
Definition ofBaseTypes.cpp:110
virtual ofTexture * getTexturePtr()
Get a pointer to the video texture used internally if it exists.
Definition ofVideoBaseTypes.h:218
virtual void setSpeed(float speed)
Set the video playback speed.
Definition ofBaseTypes.cpp:100
std::string deviceName
The video device name.
Definition ofVideoBaseTypes.h:52
std::string hardwareName
The video device hardware name.
Definition ofVideoBaseTypes.h:55
bool bAvailable
Is true if this video device is available.
Definition ofVideoBaseTypes.h:65
std::vector< ofVideoFormat > formats
A list of video device formats provided by the device.
Definition ofVideoBaseTypes.h:62
std::string serialID
Unique identifier for the device if it has one.
Definition ofVideoBaseTypes.h:58
ofPixelFormat pixelFormat
The pixel format of the video format.
Definition ofVideoBaseTypes.h:31
std::vector< float > framerates
A list of framerates for this video format in frames per second.
Definition ofVideoBaseTypes.h:40
int width
The width of the video format in pixels.
Definition ofVideoBaseTypes.h:34
int height
The height of the video format in pixels.
Definition ofVideoBaseTypes.h:37
ofLoopType
Used to represent the available video looping modes.
Definition ofVideoBaseTypes.h:11
@ OF_LOOP_PALINDROME
Plays the video forwards then backwards repeatedly.
Definition ofVideoBaseTypes.h:15