#include <v4l1buffer.h>
Use V4L1Buffer to get the 8-bit greyscale or 24-bit color.
Definition at line 103 of file v4l1buffer.h.
Public Member Functions | |
RawV4L1 (const std::string &dev, unsigned int mode, const ImageRef &) | |
const ImageRef & | get_size () const |
void | set_size (const ImageRef &size) |
void | set_palette (unsigned int palette) |
void | set_brightness (double brightness) |
double | get_brightness (void) |
void | set_whiteness (double whiteness) |
double | get_whiteness (void) |
void | set_hue (double hue) |
double | get_hue (void) |
void | set_contrast (double contrast) |
double | get_contrast (void) |
void | set_saturation (double saturation) |
double | get_saturation (void) |
void | set_auto_exp (bool on) |
bool | get_auto_exp (void) |
void | retrieveSettings () |
void | commitSettings () |
void | captureFrame (unsigned int buffer) |
unsigned char * | get_frame () |
void | put_frame (unsigned char *) |
double | frame_rate () |
bool | frame_pending () |
int | get_handle () const |
CVD::V4L1::RawV4L1::RawV4L1 | ( | const std::string & | dev, | |
unsigned int | mode, | |||
const ImageRef & | ||||
) |
constructor
dev | file name of the device to open | |
mode | color palette to use (see linux/video.h for possible modes) |
const ImageRef& CVD::V4L1::RawV4L1::get_size | ( | ) | const |
Get the width in pixels of the captured frames.
void CVD::V4L1::RawV4L1::set_size | ( | const ImageRef & | size | ) |
Set the size of the captured frames.
void CVD::V4L1::RawV4L1::set_palette | ( | unsigned int | palette | ) |
Set the color palette to use.
void CVD::V4L1::RawV4L1::set_brightness | ( | double | brightness | ) |
Set the brightness in [0,1] of the captured frames.
double CVD::V4L1::RawV4L1::get_brightness | ( | void | ) | [inline] |
void CVD::V4L1::RawV4L1::set_whiteness | ( | double | whiteness | ) |
Set the whiteness in [0,1] of the captured frames.
double CVD::V4L1::RawV4L1::get_whiteness | ( | void | ) | [inline] |
void CVD::V4L1::RawV4L1::set_hue | ( | double | hue | ) |
Set the hue in [0,1] of the captured frames.
double CVD::V4L1::RawV4L1::get_hue | ( | void | ) | [inline] |
void CVD::V4L1::RawV4L1::set_contrast | ( | double | contrast | ) |
Set the contrast in [0,1] of the captured frames.
double CVD::V4L1::RawV4L1::get_contrast | ( | void | ) | [inline] |
void CVD::V4L1::RawV4L1::set_saturation | ( | double | saturation | ) |
Set the saturation in [0,1] of the captured frames.
double CVD::V4L1::RawV4L1::get_saturation | ( | void | ) | [inline] |
void CVD::V4L1::RawV4L1::set_auto_exp | ( | bool | on | ) |
sets autoexposure
bool CVD::V4L1::RawV4L1::get_auto_exp | ( | void | ) |
gets autoexposure
void CVD::V4L1::RawV4L1::retrieveSettings | ( | ) |
Get current settings from the camera device.
void CVD::V4L1::RawV4L1::commitSettings | ( | ) |
Commit the settings to the camera device.
void CVD::V4L1::RawV4L1::captureFrame | ( | unsigned int | buffer | ) |
marks a frame as ready for capturing
unsigned char* CVD::V4L1::RawV4L1::get_frame | ( | ) |
void CVD::V4L1::RawV4L1::put_frame | ( | unsigned char * | ) |
returns the frame data to be used for further capturing
double CVD::V4L1::RawV4L1::frame_rate | ( | ) |
bool CVD::V4L1::RawV4L1::frame_pending | ( | ) |
Is there a frame waiting in the buffer? This function does not block.
Reimplemented in CVD::V4L1Buffer< T >.
int CVD::V4L1::RawV4L1::get_handle | ( | ) | const [inline] |
return underlying file handle for select operations etc
Definition at line 157 of file v4l1buffer.h.