Skip to contentSkip to conversation

Porting from V4L to V4L2

DISCUSSION [email protected] 2 participants 2 messages Apr 2, 2009 – Apr 3, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw

On Thu, 02 Apr 2009 13:15:10 -0700
<[email protected]> wrote:

	[snip]
Quoted 4 lines

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:).

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