My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::grabber::FrameGrabber Class Reference

Classes

struct  buffer
 

Public Types

enum  Standard { STAND_UNKNOWN = 0x0, STAND_NTSC = 0x1, STAND_PAL = 0x2, STAND_SECAM = 0x4 }
 
enum  io_method {
  IO_METHOD_READ, IO_METHOD_MMAP, IO_METHOD_USERPTR, IO_METHOD_READ,
  IO_METHOD_MMAP, IO_METHOD_USERPTR
}
 
enum  io_method {
  IO_METHOD_READ, IO_METHOD_MMAP, IO_METHOD_USERPTR, IO_METHOD_READ,
  IO_METHOD_MMAP, IO_METHOD_USERPTR
}
 

Public Member Functions

 FrameGrabber (FrameGrabber::Standard stand=STAND_PAL)
 
virtual ~FrameGrabber ()
 
void setDeviceFileName (std::string devFileName)
 
void queryProperties ()
 
void printProperties ()
 
void queryCapabilities ()
 
void printCapabilities ()
 
void queryWindow ()
 
void printWindow ()
 
void setStandard (Standard stand)
 
void setChannel (int channel=defaultChannel_)
 
int queryChannel ()
 
void printChannel ()
 
void setImageSize (int width=defaultWidth_, int height=defaultHeight_)
 
void getImage (std::vector< char > &theImage)
 
void queryImageBuffer ()
 
void printImageBuffer ()
 
void queryPicture ()
 
void printPicture ()
 
void setDepth (int depth=defaultPixelDepth_)
 
void setBrightness (unsigned short brightness=defaultBrightness_)
 
void setContrast (unsigned short contrast=defaultContrast_)
 
void createCaptureBuffer ()
 
 FrameGrabber ()
 
virtual ~FrameGrabber ()
 
void errno_exit (const char *s)
 
int xioctl (int fh, int request, void *arg)
 
void process_image (const void *p, int size)
 
int read_frame (void)
 
void init_read (unsigned int buffer_size)
 
void stop_capturing (void)
 
void start_capturing (void)
 
void uninit_device (void)
 
void init_mmap (void)
 
void init_userp (unsigned int buffer_size)
 
void init_device (void)
 
void close_device (void)
 
void open_device (void)
 
void setChannel (unsigned short channel=defaultChannel_)
 
void setImageSize (int width, int height)
 
void getImage (std::vector< char > &theImage)
 
 FrameGrabber ()
 
virtual ~FrameGrabber ()
 
void setChannel (unsigned short channel=defaultChannel_)
 
void setImageSize (int width, int height)
 
void getImage (std::vector< char > &theImage)
 
 FrameGrabber ()
 
virtual ~FrameGrabber ()
 
void errno_exit (const char *s)
 
int xioctl (int fh, int request, void *arg)
 
void process_image (const void *p, int size)
 
int read_frame (void)
 
void init_read (unsigned int buffer_size)
 
void stop_capturing (void)
 
void start_capturing (void)
 
void uninit_device (void)
 
void init_mmap (void)
 
void init_userp (unsigned int buffer_size)
 
void init_device (void)
 
void close_device (void)
 
void open_device (void)
 
void setChannel (unsigned short channel=defaultChannel_)
 
void setImageSize (int width, int height)
 
void getImage (std::vector< char > &theImage)
 

Public Attributes

char * dev_name
 
struct bufferbuffers
 
unsigned int n_buffers
 
int out_buf
 
int force_format
 

Static Public Attributes

static enum io_method io
 
static int fd
 
static int frame_count
 

Constructor & Destructor Documentation

FrameGrabber::FrameGrabber ( FrameGrabber::Standard  stand = STAND_PAL)

Constructors.

....................................................................... Default constructor

FrameGrabber::~FrameGrabber ( )
virtual

Destructor.

....................................................................... Destructor

FrameGrabber::FrameGrabber ( )

Constructors.

....................................................................... Default constructor

virtual gcp::grabber::FrameGrabber::~FrameGrabber ( )
virtual

Destructor.

gcp::grabber::FrameGrabber::FrameGrabber ( )

Constructors.

virtual gcp::grabber::FrameGrabber::~FrameGrabber ( )
virtual

Destructor.

gcp::grabber::FrameGrabber::FrameGrabber ( )

Constructors.

virtual gcp::grabber::FrameGrabber::~FrameGrabber ( )
virtual

Destructor.

Member Function Documentation

void FrameGrabber::createCaptureBuffer ( )

....................................................................... Create the buffer into which we will capture images

void FrameGrabber::queryCapabilities ( )

....................................................................... Query the capabilities of the video card

int FrameGrabber::queryChannel ( )

....................................................................... Query the capabilities of the video card

void FrameGrabber::queryPicture ( )

....................................................................... Query the capabilities of the video card

void FrameGrabber::queryWindow ( )

....................................................................... Query the capabilities of the video card

void FrameGrabber::setBrightness ( unsigned short  brightness = defaultBrightness_)

....................................................................... Change the brightness settings on the device (if capable)

void FrameGrabber::setChannel ( int  channel = defaultChannel_)

....................................................................... Set the channel

void FrameGrabber::setChannel ( unsigned short  channel = defaultChannel_)

....................................................................... Set the channel

void FrameGrabber::setContrast ( unsigned short  contrast = defaultContrast_)

....................................................................... Change the contrast settings on the device (if capable)

void FrameGrabber::setDeviceFileName ( std::string  devFileName)

....................................................................... Install a frame grabber device

void FrameGrabber::setImageSize ( int  width = defaultWidth_,
int  height = defaultHeight_ 
)

......................................................................., Set the image size

void FrameGrabber::setStandard ( Standard  stand)

....................................................................... Set the video standard


The documentation for this class was generated from the following files: