Genius Look 317
Hi!
I'm trying to make 'Genius Look 317' (0c45:60b0, gspca recognizes it) webcam work.
v4lgrab.c (from linux-2.6.28.5\Documentation\video4linux) loops infinitely in this code:
do {
int newbright;
read(fd, buffer, win.width * win.height * bpp);
f = get_brightness_adj(buffer, win.width * win.height, &newbright);
if (f) {
vpic.brightness += (newbright << 8);
if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) {
perror("VIDIOSPICT");
break;
} }
} while (f);
because variable 'f' is always non-zero.
If I write 'while(0);' the resulting .ppm contains some random pixels in the top and the rest of the picture is black. Need help.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 18 lines · Sergei Antonov
Hi!
I'm trying to make 'Genius Look 317' (0c45:60b0, gspca recognizes it) webcam work.
v4lgrab.c(from linux-2.6.28.5\Documentation\video4linux) loops infinitely in this code:do { int newbright; read(fd, buffer, win.width * win.height * bpp); f = get_brightness_adj(buffer, win.width * win.height, &newbright); if (f) { vpic.brightness += (newbright << 8); if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) { perror("VIDIOSPICT"); break; } }
Quoted 6 lines
} while (f);
because variable 'f' is always non-zero.
If I write 'while(0);' the resulting .ppm contains some random pixels in the top and the rest of the picture is black.
Need help.
Hi, I'd re-title your message to include the fact that its a gspca based webcam (to attract those developers attention) and send it off to the linux-media mailing list (which is where discussion is transitioning to:
http://www.linuxtv.org/news.php?entry=2009-01-06.mchehab)
Cheers
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 26 lines
Quoted 18 lines · Sergei Antonov
Hi!
I'm trying to make 'Genius Look 317' (0c45:60b0, gspca recognizes it) webcam work.
v4lgrab.c(from linux-2.6.28.5\Documentation\video4linux) loops infinitely in this code:do { int newbright; read(fd, buffer, win.width * win.height * bpp); f = get_brightness_adj(buffer, win.width * win.height, &newbright); if (f) { vpic.brightness += (newbright << 8); if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) { perror("VIDIOSPICT"); break; } }Quoted 6 lines
} while (f);
because variable 'f' is always non-zero.
If I write 'while(0);' the resulting .ppm contains some random pixels in the top and the rest of the picture is black.
Need help.
Quoted 4 lines
Hi, I'd re-title your message to include the fact that its a gspca based webcam (to attract those developers attention) and send it off to the linux-media mailing list (which is where discussion is transitioning to:
http://www.linuxtv.org/news.php?entry=2009-01-06.mchehab)
Thank you for the advice. But I've already found a solution. V4L2 API works for this webcam.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list