public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: <gabrield@kinuxlinux.org>
To: video4linux-list@redhat.com
Subject: Porting from V4L to V4L2
Date: Thu, 02 Apr 2009 13:15:10 -0700	[thread overview]
Message-ID: <f8d9f984eb34bbf706b879d4f59eeec3@kinuxlinux.org> (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:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

             reply	other threads:[~2009-04-02 20:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 20:15 gabrield [this message]
2009-04-03  6:44 ` Porting from V4L to V4L2 Jean-Francois Moine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8d9f984eb34bbf706b879d4f59eeec3@kinuxlinux.org \
    --to=gabrield@kinuxlinux.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox