I've almost done it. :)
The library is very simple.
I'll release it here http://code.google.com/p/libv4l2cam/ by a few hours at
most, in the while this is part of the class description.
class Camera {
public:
int width;
int height;
int fps;
unsigned char *data;
Camera(const char *name, int w, int h, int fps=30);
~Camera();
unsigned char *Update(unsigned int t=100); //better (t=1ms, in usecs)
#ifdef USE_OPENCV
void toIplImage(IplImage *im);
#endif
int minBrightness();
int maxBrightness();
int defaultBrightness();
int minContrast();
int maxContrast();
int defaultContrast();
int minSaturation();
int maxSaturation();
int defaultSaturation();
int minHue();
int maxHue();
int defaultHue();
bool isHueAuto();
int minSharpness();
int maxSharpness();
int defaultSharpness();
int setBrightness(int v);
int setContrast(int v);
int setSaturation(int v);
int setHue(int v);
int setHueAuto(bool v);
int setSharpness(int v);
};
However i'm experiencing a small delay between Minoru left and right images.
It may be a problem with my interface (as I have 1ms waiting time on frame
update). I'll try to sync multiple cams from this interface.
Giacomo
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel