23 #include <linux/types.h>
24 #include <linux/videodev2.h>
29 #ifndef UVCINTERFACE_H_
30 #define UVCINTERFACE_H_
35 UvcInterface(
char const *sDevice,
int aWidth=320,
int aHeight=240):device(sDevice),frame(0),frameSize(0),fd(-1),width(aWidth),height(aHeight){buffer[0]=0;buffer[1]=0;}
42 int GetWidth(
void)
const;
43 int GetHeight(
void)
const;
45 int GetFrameSize(
void)
const {
return frameSize;}
46 void CopyFrame(
unsigned char *dest)
const {memcpy(dest,frame,frameSize);}
48 bool IsOpen(
void)
const {
return fd!=-1;}
56 unsigned char *buffer[2];
64 static const int dht_size;
65 static const unsigned char dht_data[];
Definition: UvcInterface.h:32