From: Kyle Guinn <elyk03@gmail.com>
To: Jean-Francois Moine <moinejf@free.fr>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 1/2] Add Mars-Semi MR97310A format
Date: Thu, 15 Jan 2009 19:20:48 -0600 [thread overview]
Message-ID: <200901151920.48666.elyk03@gmail.com> (raw)
In-Reply-To: <20090115124946.52779651@free.fr>
On Thursday 15 January 2009 05:49:46 Jean-Francois Moine wrote:
> On Wed, 14 Jan 2009 20:59:34 -0600
> Kyle Guinn <elyk03@gmail.com> wrote:
> > Add a pixel format for the Mars-Semi MR97310A webcam controller.
> >
> > The MR97310A is a dual-mode webcam controller that provides
> > compressed BGGR Bayer frames. The decompression algorithm for still
> > images is the same as for video, and is currently implemented in
> > libgphoto2.
>
> Hi Kyle,
>
> What is the difference of this pixel format from the other Bayer ones?
>
This is a standard BGGR Bayer format which is compressed using a
vendor-specific compression algorithm, much like V4L2_PIX_FMT_PAC207. I
don't believe the compression algorithm matches any of the other pixel
formats.
The first two pixels in the first two rows are stored as raw 8-bit values (the
top-left BGGR square), but the rest is Huffman compressed. Take a look at
precalc_table() and mars_decompress() in libgphoto2/camlibs/mars/mars.c for
all of the details. If you recognize this as an existing pixel format,
please let me know.
> Also, did you ask Hans de Goede to add the decoding to the v4l library?
>
That is next on my TODO list. I have a patch ready to send, but I first want
to make sure there are no problems with adding this pixel format.
Regards,
-Kyle
prev parent reply other threads:[~2009-01-16 1:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 2:59 [PATCH 1/2] Add Mars-Semi MR97310A format Kyle Guinn
2009-01-15 11:49 ` Jean-Francois Moine
2009-01-16 1:20 ` Kyle Guinn [this message]
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=200901151920.48666.elyk03@gmail.com \
--to=elyk03@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=moinejf@free.fr \
/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