public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Porting from V4L to V4L2
@ 2009-04-02 20:15 gabrield
  2009-04-03  6:44 ` Jean-Francois Moine
  0 siblings, 1 reply; 2+ messages in thread
From: gabrield @ 2009-04-02 20:15 UTC (permalink / raw)
  To: video4linux-list

Hello All!

I'm trying to port a code from V4l to V4L2, but I'm not being happy!

For example, this following code:

static struct video_mmap* mmaps;

  if ( ioctl( deviceHandle , VIDIOCMCAPTURE , mmaps ) == -1 ) {
    perror("VIDIOCMCAPTURE");
	  return NULL;
  }

  if ( ioctl( deviceHandle , VIDIOCSYNC , &(mmaps->frame) ) == -1 ) {
    perror("VIDIOCMCAPTURE");
	  return NULL;
  }



I'd like use V4L2. I saw the specifications at
http://v4l2spec.bytesex.org/spec-single/v4l2.html , but I can't get
success!
Anyone can help me?
Thanks!

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Porting from V4L to V4L2
  2009-04-02 20:15 Porting from V4L to V4L2 gabrield
@ 2009-04-03  6:44 ` Jean-Francois Moine
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Francois Moine @ 2009-04-03  6:44 UTC (permalink / raw)
  To: gabrield; +Cc: Linux Media

On Thu, 02 Apr 2009 13:15:10 -0700
<gabrield@kinuxlinux.org> wrote:
	[snip]
> I'd like use V4L2. I saw the specifications at
> http://v4l2spec.bytesex.org/spec-single/v4l2.html , but I can't get
> success!
> Anyone can help me?

Hello Gabriel,

Have a look at v4l2-apps/test/capture-example.c found in any LinuxTv
repository.

BTW, for such messages, you should use the new linux media mailing list
(see Cc:).

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-03  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02 20:15 Porting from V4L to V4L2 gabrield
2009-04-03  6:44 ` Jean-Francois Moine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox