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

Reply via email to