This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofVideoGrabber.h
Go to the documentation of this file.
58 void setAnchorPercent(float xPct, float yPct); //set the anchor as a percentage of the image width/height ( 0.0-1.0 range )
virtual void draw(float x, float y) const
Draw at a position at the native size.
Definition ofGraphicsBaseTypes.h:150
A base class representing a video device such as a camera.
Definition ofVideoBaseTypes.h:110
Definition ofVideoGrabber.h:14
std::vector< ofVideoDevice > listDevices() const
Get a list of available video grabber devices.
Definition ofVideoGrabber.cpp:154
ofPixels & getPixels()
Get a reference to the underlying ofPixels.
Definition ofVideoGrabber.cpp:186
void draw(float x, float y, float w, float h) const
Draw at a position with the specified size.
Definition ofVideoGrabber.cpp:325
OF_DEPRECATED_MSG("Use getPixels() instead", const ofPixels &getPixelsRef() const)
std::shared_ptr< ofBaseVideoGrabber > getGrabber()
Definition ofVideoGrabber.cpp:70
bool setPixelFormat(ofPixelFormat pixelFormat)
Set the requested ofPixelFormat.
Definition ofVideoGrabber.cpp:125
float getWidth() const
Get the video grabber's width.
Definition ofVideoGrabber.cpp:361
void setUseTexture(bool bUse)
Enable or disable internal ofTexture use.
Definition ofVideoGrabber.cpp:299
void setGrabber(std::shared_ptr< ofBaseVideoGrabber > newGrabber)
Definition ofVideoGrabber.cpp:65
void setAnchorPercent(float xPct, float yPct)
Set the anchor point the item is drawn around as a percentage.
Definition ofVideoGrabber.cpp:310
OF_DEPRECATED_MSG("Use getPixels() instead", ofPixels &getPixelsRef())
void resetAnchor()
Reset the anchor point to (0, 0).
Definition ofVideoGrabber.cpp:320
bool setup(int w, int h)
Set up the grabber with the requested width and height.
Definition ofVideoGrabber.h:25
OF_DEPRECATED_MSG("Use getTexture", ofTexture &getTextureReference())
bool initGrabber(int w, int h, bool bTexture))
Definition ofVideoGrabber.cpp:120
bool isInitialized() const
Determine if the video source is initialized.
Definition ofVideoGrabber.cpp:370
void setVerbose(bool bTalkToMe)
Set the video grabber's hardware verbosity level.
Definition ofVideoGrabber.cpp:163
void videoSettings()
Request a native GUI for video grabber settings.
Definition ofVideoGrabber.cpp:292
OF_DEPRECATED_MSG("Use getTexture", const ofTexture &getTextureReference() const)
void setAnchorPoint(float x, float y)
Set the anchor point the item is drawn around in pixels.
Definition ofVideoGrabber.cpp:315
const std::shared_ptr< GrabberType > getGrabber() const
Definition ofVideoGrabber.h:77
OF_DEPRECATED_MSG("Use setup instead", bool initGrabber(int w, int h){return setup(w, h);}) OF_DEPRECATED_MSG("Use setup instead"
float getHeight() const
Get the video grabber's height.
Definition ofVideoGrabber.cpp:352
void setDeviceID(int _deviceID)
Set the video grabber's device ID.
Definition ofVideoGrabber.cpp:170
void setDesiredFrameRate(int framerate)
Set the video grabber's desired frame rate.
Definition ofVideoGrabber.cpp:178
std::vector< ofTexture > & getTexturePlanes()
Definition ofVideoGrabber.cpp:236