From: niamathullah sharief <shariefbe@yahoo.co.in>
To: michael_h_williamson@yahoo.com,
video4linux list <video4linux-list@redhat.com>,
Kernel newbies <kernelnewbies@nl.linux.org>
Subject: Re: mmap()
Date: Sat, 24 Jan 2009 00:11:23 +0530 (IST) [thread overview]
Message-ID: <372895.40141.qm@web95210.mail.in2.yahoo.com> (raw)
In-Reply-To: <787717.19693.qm@web65509.mail.ac4.yahoo.com>
micheal..you are telling that read() function will do the same as the mmap() does..but the read() will read the data from the memory i think....is this ,,ap() is also doing the same one?if yes....how its actually the data (when capturing the video) was stored in memory....?
--- On Fri, 23/1/09, Michael Williamson <michael_h_williamson@yahoo.com> wrote:
From: Michael Williamson <michael_h_williamson@yahoo.com>
Subject: Re: mmap()
To: shariefbe@yahoo.co.in
Date: Friday, 23 January, 2009, 10:28 PM
--- On Fri, 1/23/09, niamathullah sharief <shariefbe@yahoo.co.in> wrote:
> From: niamathullah sharief <shariefbe@yahoo.co.in>
> Subject: mmap()
> To: "video4linux list" <video4linux-list@redhat.com>,
"Kernel newbies" <kernelnewbies@nl.linux.org>, "micheal
williams" <michael_h_williamson@yahoo.com>
> Date: Friday, January 23, 2009, 7:14 AM
> Hello, Actually what is mmap()?why it used?shall we
> write the program without that function?
The mmap() function makes the memory containing
the picture pixel data available to the program.
The alternative is to use the read() function,
to get the picture pixel data. I do not have
a program that does it that way.
It is possible to get picture pixel data from a
camera from the shell prompt like this:
# head -c 304128 /dev/video0 > pict.raw
That does the same things as open() and
read() functions do using a 'C' program.
-Mike
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next parent reply other threads:[~2009-01-23 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <787717.19693.qm@web65509.mail.ac4.yahoo.com>
2009-01-23 18:41 ` niamathullah sharief [this message]
[not found] <568610.95410.qm@web65506.mail.ac4.yahoo.com>
2009-01-24 23:31 ` mmap() niamathullah sharief
[not found] <596339.38105.qm@web65507.mail.ac4.yahoo.com>
2009-01-24 2:15 ` mmap() niamathullah sharief
2009-01-23 13:14 mmap() niamathullah sharief
-- strict thread matches above, loose matches on Subject: below --
2009-01-06 17:07 mmap() niamathullah sharief
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=372895.40141.qm@web95210.mail.in2.yahoo.com \
--to=shariefbe@yahoo.co.in \
--cc=kernelnewbies@nl.linux.org \
--cc=michael_h_williamson@yahoo.com \
--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