From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: jean-philippe francois <jp.francois@cynove.com>
Cc: linux-media <linux-media@vger.kernel.org>
Subject: Re: [RFC PATCH] omap3isp : fix cfa demosaicing for format other than GRBG
Date: Tue, 29 May 2012 23:04:12 +0200 [thread overview]
Message-ID: <2212863.1QHZfSWdDi@avalon> (raw)
In-Reply-To: <CAGGh5h3jNpbPty6Qzrz9XhmBJci2GcHZhaF8w3dmG_Ce9dpSRQ@mail.gmail.com>
Hi Jean-Philippe,
On Tuesday 29 May 2012 10:24:45 jean-philippe francois wrote:
> Hi,
>
> omap3 ISP previewer block can convert a raw bayer image into a UYVY image.
> Debayering coefficient are stored in an undocumented table. In the current
> form, only GRBG format are converted correctly.
>
> However, the other CFA arrangement can be transformed in GRBG arrangement by
> shifting the image window one pixel to the left or to the bottom.
>
> Here is a patch against vanilla 3.2.17, that was only tested with a BGGR
> arrangement.
> Is it the right way to fix this issue ?
That's really a hack. I'd much rather support other Bayer orders properly by
modifying the CFA coefficients table.
The table is arranged as 4 blocks of 144 coefficients. If I'm not mistaken (I
haven't tested it), the blocks should be arranged as follows:
GRBG 0 1 2 3
RGGB 1 0 3 2
BGGR 2 3 0 1
GBRG 3 2 1 0
Would you be able to test that with your BGGR sensor ?
If that's correct, it shouldn't be too difficult to modify the order
dynamically based on the format.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-05-29 21:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 8:24 [RFC PATCH] omap3isp : fix cfa demosaicing for format other than GRBG jean-philippe francois
2012-05-29 21:04 ` Laurent Pinchart [this message]
2012-05-31 8:37 ` jean-philippe francois
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=2212863.1QHZfSWdDi@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=jp.francois@cynove.com \
--cc=linux-media@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.