#include <Capture.h>
cinder::Capture::~Capture |
( |
| ) |
|
cinder::Capture::Capture |
( |
int32_t |
width, |
|
|
int32_t |
height, |
|
|
const DeviceRef |
device |
|
) |
| |
|
protected |
Creates a new Capture requesting (but not promising) a resolution of width x height pixels.
void cinder::Capture::start |
( |
| ) |
|
void cinder::Capture::stop |
( |
| ) |
|
bool cinder::Capture::isCapturing |
( |
| ) |
|
Is the device capturing video.
bool cinder::Capture::checkNewFrame |
( |
| ) |
const |
Returns whether there is a new video frame available since the last call to checkNewFrame()
int32_t cinder::Capture::getWidth |
( |
| ) |
const |
Returns the width of the captured image in pixels.
int32_t cinder::Capture::getHeight |
( |
| ) |
const |
Returns the height of the captured image in pixels.
ivec2 cinder::Capture::getSize |
( |
| ) |
const |
Returns the size of the captured image in pixels.
float cinder::Capture::getAspectRatio |
( |
| ) |
const |
Returns the aspect ratio of the capture imagee, which is its width / height.
Area cinder::Capture::getBounds |
( |
| ) |
const |
Returns the bounding rectangle of the capture imagee, which is Area( 0, 0, width, height )
Returns a SurfaceRef representing the current captured frame.
const vector< Capture::DeviceRef > & cinder::Capture::getDevices |
( |
bool |
forceRefresh = false | ) |
|
|
static |
Returns a vector of all Devices connected to the system. If forceRefresh then the system will be polled for connected devices.
Finds a particular device based on its name.
Capture::DeviceRef cinder::Capture::findDeviceByNameContains |
( |
const std::string & |
nameFragment | ) |
|
|
static |
Finds the first device whose name contains the string nameFragment.
The documentation for this class was generated from the following files: