Thanks for the help. Is there any plans to have a standard v4l2 call to handle framerate? Because this way, since I'm using the fmt.pix.priv it is still very driver (camera) dependent.
In the meantime I will use this option. Thanks again. Hugo Costelha On Wednesday 02 November 2005 15:29, Luc Saillard wrote: > On Wed, Nov 02, 2005 at 03:05:24PM +0000, Hugo Filipe Costelha De Castro wrote: > > Hi, > > > > Is it possible to set the framerate (with video size) using standard v4l2 > > calls? Or do I need to use the VIDIOCSWIN from pwc? > > > > I'm using a Philips Toucam Pro 740. I have code working using video4linux > > and the pwc driver, but I was trying to migrate to v4l2, trying to use > > specific pwc code as least as possible so I don't get too much attached > > to a specific camera(s). > > They are an undocumented feature in the pwc driver. You can set the fps > using VIDIOCSWIN or VIDIOC_S_FMT ioctls. > > Take a look in the file pwc-v4l.c > --------------------------------------------------------------------------- >- Trace(TRACE_MODULE, "ioctl(VIDIOC_S_FMT)\n"); > > compression = (f->fmt.pix.priv & PWC_QLT_MASK) >> PWC_QLT_SHIFT; > snapshot = f->fmt.pix.priv & PWC_FPS_SNAPSHOT; > fps = (f->fmt.pix.priv & PWC_FPS_FRMASK) >> PWC_FPS_SHIFT; > if (fps == 0) > fps = pdev->vframes; > snapshot = f->fmt.pix.priv & PWC_FPS_SNAPSHOT; > --------------------------------------------------------------------------- >- > > Luc > _______________________________________________ > pwc mailing list > [email protected] > http://lists.saillard.org/mailman/listinfo/pwc _______________________________________________ pwc mailing list [email protected] http://lists.saillard.org/mailman/listinfo/pwc
