public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Willstrand" <h.willstrand@gmail.com>
To: "Thomas Kaiser" <linux-dvb@kaiser-linux.li>
Cc: Linux and Kernel Video <video4linux-list@redhat.com>
Subject: Re: V4L2_PIX_FMT_RAW
Date: Wed, 20 Feb 2008 22:41:46 +0100	[thread overview]
Message-ID: <175f5a0f0802201341v2a0c19a5vdfbe553caf67e11e@mail.gmail.com> (raw)
In-Reply-To: <47BC9788.7070604@kaiser-linux.li>

On Wed, Feb 20, 2008 at 10:11 PM, Thomas Kaiser
<linux-dvb@kaiser-linux.li> wrote:
>
> H. Willstrand wrote:
>  > On Wed, Feb 20, 2008 at 9:42 PM, Thomas Kaiser
>  > <linux-dvb@kaiser-linux.li> wrote:
>  >> H. Willstrand wrote:
>  >>  > On Wed, Feb 20, 2008 at 9:22 PM, Thomas Kaiser
>  >>  > <linux-dvb@kaiser-linux.li> wrote:
>  >>  >> H. Willstrand wrote:
>  >>  >>  > On Wed, Feb 20, 2008 at 8:25 PM, Thomas Kaiser
>  >>  >>  > <linux-dvb@kaiser-linux.li> wrote:
>  >>  >>  >> Why is V4L2_PIX_FMT_RAW not included as a pixel format in V4l2?
>  >>  >>  >>
>  >>  >>  >>  I would like to just forward the stream from my webcam "as it is" to user space .
>  >>  >>  >>
>  >>  >>  >>  V4L2_PIX_FMT_RAW looks as it is the right thing I need.
>  >>  >>  >>
>  >>  >>  >
>  >>  >>  > V4L2 drivers should not perform any video transformations, the driver
>  >>  >>  > provides user space with hardware supported formats.
>  >>  >>
>  >>  >>  Ok, so, I need a entry for Pixart chips.
>  >>  >>  PAC207: a line based coding algo.
>  >>  >>  PAC7311: the interpretation of JPEG from Pixart
>  >>  >>  PAC7302: the _new_  interpretation of JPEG from Pixart
>  >>  >>
>  >>  >>  V4L2_PIX_FMT_RAW would make my live easier.
>  >>  >>
>  >>  >>  The option to forward the stream "as it is" would be really nice. When the
>  >>  >>  manufacture of some video streaming devices (like webcams) do their own thing,
>  >>  >>  you can forward the raw stream and the user application can take care of the
>  >>  >>  decoding of the stream.
>  >>  >>
>  >>  >>  For me it looks not like such a bad idea!!!???
>  >>  >>
>  >>  >
>  >>  > Yes, it might be a good idea to add something like V4L2_PIX_FMT_PAC207, etc.
>  >>  > This is anyhow the case with the PWC family.
>  >>
>  >>  I think the better is to just forward the stream to userspace.
>  >>  Then we have to make a lib which can be called from all these video application
>  >>  around to decode the stream.
>  >>
>  >>  Somebody talked already about this on the list.
>  >>
>  >>  When the cam is able to send a stream in a good known format it is no problem to
>  >>  handle this with the right V4L2_PIX_FMT_..., but if not, we need a "official"
>  >>  way to get this "devil" stream to user space!
>  >>
>  >
>  > Well, it can go ugly if one piece of hardware supports several "raw"
>  > formats, they need to be distinct. And in the end of the day the V4L2
>  > drivers might consist of several identical "raw" formats which then
>  > aren't consolidated.
>  >
>  > Harri
>
>  I don't really understand what you try to say here.
>  I want to have the stream forwarded "as it is" to user space. Then the v4l2
>  driver even have not to know what kind of stream this is!
>  We just forward the stream (again) "as it is" to user space.
>  Now, the user space application (viewer app, skype or what ever) has to decide
>  if they can handle the stream.
>
Ok, if a driver exposes a RAW format, how can a application know if it
can handle the format? By looking at the driver name? What if the
driver have several RAW formats? (they might have)

Next, standardization is a good thing, and hopefully chip set vendors
tries to keep down the number of formats, so it's a good idea to try
define distinct V4L2_PIX_FMT for each distinct format.

Cheers,
Harri


>  PS: Why do you answer OFF-LIST? I think it is a nice topic to discussed with
>  everyone on the list.
I thought I did, sorry for that.

//Harri

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

  reply	other threads:[~2008-02-20 21:42 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 19:25 V4L2_PIX_FMT_RAW Thomas Kaiser
     [not found] ` <175f5a0f0802201208u4bca35afqc0291136fe2482b@mail.gmail.com>
     [not found]   ` <47BC8BFC.2000602@kaiser-linux.li>
     [not found]     ` <175f5a0f0802201232y6a1bfc53u4fe92fede3abcb34@mail.gmail.com>
     [not found]       ` <47BC90CA.1000707@kaiser-linux.li>
     [not found]         ` <175f5a0f0802201254q7dc96190k35caafe9ba7d3274@mail.gmail.com>
2008-02-20 21:11           ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-20 21:41             ` H. Willstrand [this message]
2008-02-20 22:02               ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-20 21:58             ` V4L2_PIX_FMT_RAW Daniel Glöckner
2008-02-20 22:12               ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-20 22:41                 ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-20 23:20                   ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-21  0:02                     ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21  1:20                       ` V4L2_PIX_FMT_RAW Daniel Glöckner
2008-02-21  9:10                         ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 12:00                           ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-21 12:43                             ` V4L2_PIX_FMT_RAW Daniel Glöckner
2008-02-21 12:48                               ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 12:43                             ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 18:55                               ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-21 20:12                                 ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 20:40                                   ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-21 21:06                                     ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 21:29                                       ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-21 21:40                                         ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-21 22:03                                     ` V4L2_PIX_FMT_RAW Laurent Pinchart
2008-02-21 22:22                                       ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-22  9:38                                         ` V4L2_PIX_FMT_RAW Thierry Merle
2008-02-22 12:22                                           ` V4L2_PIX_FMT_RAW Thomas Kaiser
2008-02-23  0:15                                           ` V4L2_PIX_FMT_RAW H. Willstrand
2008-02-23 19:51                                             ` V4L2_PIX_FMT_RAW Thierry Merle
2008-02-24 21:46                                               ` V4L2_PIX_FMT_RAW Laurent Pinchart
2008-02-21 21:59                                 ` V4L2_PIX_FMT_RAW Laurent Pinchart
2008-02-21 22:28                                   ` V4L2_PIX_FMT_RAW Thomas Kaiser

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=175f5a0f0802201341v2a0c19a5vdfbe553caf67e11e@mail.gmail.com \
    --to=h.willstrand@gmail.com \
    --cc=linux-dvb@kaiser-linux.li \
    --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