• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

V4L2_Base Class Reference

#include <v4l2_base.h>

List of all members.


Classes

struct  buffer

Public Types

enum  io_method { IO_METHOD_READ, IO_METHOD_MMAP, IO_METHOD_USERPTR }

Public Member Functions

void allocBuffers ()
void callFrame (void *p)
virtual int connectCam (const char *devpath, char *errmsg, int pixelFormat=V4L2_PIX_FMT_YUYV, int width=160, int height=120)
virtual void disconnectCam ()
void enumerate_ctrl (void)
void enumerate_menu (void)
int getBrightness ()
int getColor ()
unsigned char * getColorBuffer ()
int getContrast ()
char * getDeviceName ()
int getFPS ()
int getHeight ()
int getHue ()
virtual void getMaxMinSize (int &x_max, int &y_max, int &x_min, int &y_min)
void getPictureSettings ()
unsigned char * getU ()
unsigned char * getV ()
int getWhiteness ()
int getWidth ()
unsigned char * getY ()
int query_ctrl (unsigned int ctrl_id, double &ctrl_min, double &ctrl_max, double &ctrl_step, double &ctrl_value, char *errmsg)
int queryINTControls (INumberVectorProperty *nvp)
void registerCallback (WPF *fp, void *ud)
void setBrightness (int val)
void setColor (int val)
void setContrast (int val)
void setFPS (int fps)
void setHue (int val)
int setINTControl (unsigned int ctrl_id, double new_value, char *errmsg)
void setPictureSettings ()
virtual int setSize (int x, int y)
void setWhiteness (int val)
int start_capturing (char *errmsg)
int stop_capturing (char *errmsg)
 V4L2_Base ()
virtual ~V4L2_Base ()

Static Public Member Functions

static void newFrame (int fd, void *p)

Protected Member Functions

void close_device (void)
int errno_exit (const char *s, char *errmsg)
void findMinMax ()
int init_device (char *errmsg, int pixelFormat, int width, int height)
int init_mmap (char *errmsg)
void init_read (unsigned int buffer_size)
void init_userp (unsigned int buffer_size)
int open_device (const char *devpath, char *errmsg)
int read_frame (char *errsg)
int uninit_device (char *errmsg)
int xioctl (int fd, int request, void *arg)

Protected Attributes

struct buffer * buffers
WPF * callback
struct v4l2_capability cap
unsigned char * colorBuffer
struct v4l2_crop crop
struct v4l2_cropcap cropcap
char dev_name [64]
bool dropFrame
int fd
struct v4l2_format fmt
int frameRate
io_method io
unsigned int n_buffers
struct v4l2_queryctrl queryctrl
struct v4l2_querymenu querymenu
unsigned char * rgb24_buffer
int selectCallBackID
unsigned char * UBuf
void * uptr
unsigned char * VBuf
int xmax
int xmin
unsigned char * YBuf
int ymax
int ymin

Detailed Description

Definition at line 34 of file v4l2_base.h.


Member Enumeration Documentation

enum V4L2_Base::io_method

Enumerator:
IO_METHOD_READ 
IO_METHOD_MMAP 
IO_METHOD_USERPTR 

Definition at line 40 of file v4l2_base.h.


Constructor & Destructor Documentation

V4L2_Base::V4L2_Base (  ) 

Definition at line 48 of file v4l2_base.cpp.

V4L2_Base::~V4L2_Base (  )  [virtual]

Definition at line 71 of file v4l2_base.cpp.


Member Function Documentation

void V4L2_Base::allocBuffers (  ) 

Definition at line 731 of file v4l2_base.cpp.

void V4L2_Base::callFrame ( void *  p  ) 

void V4L2_Base::close_device ( void   )  [protected]

Definition at line 659 of file v4l2_base.cpp.

int V4L2_Base::connectCam ( const char *  devpath,
char *  errmsg,
int  pixelFormat = V4L2_PIX_FMT_YUYV,
int  width = 160,
int  height = 120 
) [virtual]

Definition at line 102 of file v4l2_base.cpp.

void V4L2_Base::disconnectCam (  )  [virtual]

Definition at line 118 of file v4l2_base.cpp.

void V4L2_Base::enumerate_ctrl ( void   ) 

Definition at line 949 of file v4l2_base.cpp.

void V4L2_Base::enumerate_menu ( void   ) 

Definition at line 1000 of file v4l2_base.cpp.

int V4L2_Base::errno_exit ( const char *  s,
char *  errmsg 
) [protected]

Definition at line 92 of file v4l2_base.cpp.

void V4L2_Base::findMinMax (  )  [protected]

Definition at line 910 of file v4l2_base.cpp.

int V4L2_Base::getBrightness (  ) 

Definition at line 799 of file v4l2_base.cpp.

int V4L2_Base::getColor (  ) 

Definition at line 810 of file v4l2_base.cpp.

unsigned char * V4L2_Base::getColorBuffer (  ) 

Definition at line 871 of file v4l2_base.cpp.

int V4L2_Base::getContrast (  ) 

Definition at line 788 of file v4l2_base.cpp.

char * V4L2_Base::getDeviceName (  ) 

Definition at line 726 of file v4l2_base.cpp.

int V4L2_Base::getFPS (  ) 

Definition at line 721 of file v4l2_base.cpp.

int V4L2_Base::getHeight (  ) 

Definition at line 711 of file v4l2_base.cpp.

int V4L2_Base::getHue (  ) 

Definition at line 821 of file v4l2_base.cpp.

void V4L2_Base::getMaxMinSize ( int &  x_max,
int &  y_max,
int &  x_min,
int &  y_min 
) [virtual]

Definition at line 748 of file v4l2_base.cpp.

void V4L2_Base::getPictureSettings (  ) 

Definition at line 845 of file v4l2_base.cpp.

unsigned char * V4L2_Base::getU (  ) 

Definition at line 861 of file v4l2_base.cpp.

unsigned char * V4L2_Base::getV (  ) 

Definition at line 866 of file v4l2_base.cpp.

int V4L2_Base::getWhiteness (  ) 

Definition at line 832 of file v4l2_base.cpp.

int V4L2_Base::getWidth (  ) 

Definition at line 706 of file v4l2_base.cpp.

unsigned char * V4L2_Base::getY (  ) 

Definition at line 853 of file v4l2_base.cpp.

int V4L2_Base::init_device ( char *  errmsg,
int  pixelFormat,
int  width,
int  height 
) [protected]

Definition at line 513 of file v4l2_base.cpp.

int V4L2_Base::init_mmap ( char *  errmsg  )  [protected]

Definition at line 407 of file v4l2_base.cpp.

void V4L2_Base::init_read ( unsigned int  buffer_size  )  [protected]

Definition at line 389 of file v4l2_base.cpp.

void V4L2_Base::init_userp ( unsigned int  buffer_size  )  [protected]

Definition at line 474 of file v4l2_base.cpp.

void V4L2_Base::newFrame ( int  fd,
void *  p 
) [static]

Definition at line 356 of file v4l2_base.cpp.

int V4L2_Base::open_device ( const char *  devpath,
char *  errmsg 
) [protected]

Definition at line 669 of file v4l2_base.cpp.

int V4L2_Base::query_ctrl ( unsigned int  ctrl_id,
double &  ctrl_min,
double &  ctrl_max,
double &  ctrl_step,
double &  ctrl_value,
char *  errmsg 
)

Definition at line 1021 of file v4l2_base.cpp.

int V4L2_Base::queryINTControls ( INumberVectorProperty *  nvp  ) 

Definition at line 1066 of file v4l2_base.cpp.

int V4L2_Base::read_frame ( char *  errsg  )  [protected]

Definition at line 138 of file v4l2_base.cpp.

void V4L2_Base::registerCallback ( WPF *  fp,
void *  ud 
)

Definition at line 904 of file v4l2_base.cpp.

void V4L2_Base::setBrightness ( int  val  ) 

Definition at line 793 of file v4l2_base.cpp.

void V4L2_Base::setColor ( int  val  ) 

Definition at line 804 of file v4l2_base.cpp.

void V4L2_Base::setContrast ( int  val  ) 

Definition at line 782 of file v4l2_base.cpp.

void V4L2_Base::setFPS ( int  fps  ) 

Definition at line 716 of file v4l2_base.cpp.

void V4L2_Base::setHue ( int  val  ) 

Definition at line 815 of file v4l2_base.cpp.

int V4L2_Base::setINTControl ( unsigned int  ctrl_id,
double  new_value,
char *  errmsg 
)

Definition at line 1173 of file v4l2_base.cpp.

void V4L2_Base::setPictureSettings (  ) 

Definition at line 837 of file v4l2_base.cpp.

int V4L2_Base::setSize ( int  x,
int  y 
) [virtual]

Definition at line 753 of file v4l2_base.cpp.

void V4L2_Base::setWhiteness ( int  val  ) 

Definition at line 826 of file v4l2_base.cpp.

int V4L2_Base::start_capturing ( char *  errmsg  ) 

Definition at line 292 of file v4l2_base.cpp.

int V4L2_Base::stop_capturing ( char *  errmsg  ) 

Definition at line 263 of file v4l2_base.cpp.

int V4L2_Base::uninit_device ( char *  errmsg  )  [protected]

Definition at line 364 of file v4l2_base.cpp.

int V4L2_Base::xioctl ( int  fd,
int  request,
void *  arg 
) [protected]

Definition at line 82 of file v4l2_base.cpp.


Member Data Documentation

struct buffer* V4L2_Base::buffers [read, protected]

Definition at line 128 of file v4l2_base.h.

WPF* V4L2_Base::callback [protected]

Definition at line 123 of file v4l2_base.h.

struct v4l2_capability V4L2_Base::cap [read, protected]

Definition at line 115 of file v4l2_base.h.

unsigned char * V4L2_Base::colorBuffer [protected]

Definition at line 137 of file v4l2_base.h.

struct v4l2_crop V4L2_Base::crop [read, protected]

Definition at line 117 of file v4l2_base.h.

struct v4l2_cropcap V4L2_Base::cropcap [read, protected]

Definition at line 116 of file v4l2_base.h.

char V4L2_Base::dev_name[64] [protected]

Definition at line 125 of file v4l2_base.h.

bool V4L2_Base::dropFrame [protected]

Definition at line 131 of file v4l2_base.h.

int V4L2_Base::fd [protected]

Definition at line 127 of file v4l2_base.h.

struct v4l2_format V4L2_Base::fmt [read, protected]

Definition at line 118 of file v4l2_base.h.

int V4L2_Base::frameRate [protected]

Definition at line 134 of file v4l2_base.h.

io_method V4L2_Base::io [protected]

Definition at line 126 of file v4l2_base.h.

unsigned int V4L2_Base::n_buffers [protected]

Definition at line 129 of file v4l2_base.h.

struct v4l2_queryctrl V4L2_Base::queryctrl [read, protected]

Definition at line 120 of file v4l2_base.h.

struct v4l2_querymenu V4L2_Base::querymenu [read, protected]

Definition at line 121 of file v4l2_base.h.

unsigned char * V4L2_Base::rgb24_buffer [protected]

Definition at line 137 of file v4l2_base.h.

int V4L2_Base::selectCallBackID [protected]

Definition at line 136 of file v4l2_base.h.

unsigned char * V4L2_Base::UBuf [protected]

Definition at line 137 of file v4l2_base.h.

void* V4L2_Base::uptr [protected]

Definition at line 124 of file v4l2_base.h.

unsigned char * V4L2_Base::VBuf [protected]

Definition at line 137 of file v4l2_base.h.

int V4L2_Base::xmax [protected]

Definition at line 135 of file v4l2_base.h.

int V4L2_Base::xmin [protected]

Definition at line 135 of file v4l2_base.h.

unsigned char* V4L2_Base::YBuf [protected]

Definition at line 137 of file v4l2_base.h.

int V4L2_Base::ymax [protected]

Definition at line 135 of file v4l2_base.h.

int V4L2_Base::ymin [protected]

Definition at line 135 of file v4l2_base.h.


The documentation for this class was generated from the following files:
  • v4l2_base.h
  • v4l2_base.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal