pwc
[Top] [All Lists]

Re: [pwc] Can I set the framerate using V4L2 calls?

To: Philips Webcam Linux Driver <>
Subject: Re: [pwc] Can I set the framerate using V4L2 calls?
From: Luc Saillard <>
Date: Wed, 2 Nov 2005 16:29:04 +0100
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

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU