From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Chris Brandt <Chris.Brandt@renesas.com>
Cc: jmondi <jacopo@jmondi.org>,
"magnus.damm@gmail.com" <magnus.damm@gmail.com>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: Re: [RFC v2 1/2] media: platform: Add SH CEU camera interface driver
Date: Thu, 04 May 2017 15:54:19 +0300 [thread overview]
Message-ID: <2978338.Pa9pg5uBv6@avalon> (raw)
In-Reply-To: <SG2PR06MB1165604125099267D61005DB8AEA0@SG2PR06MB1165.apcprd06.prod.outlook.com>
Hi Chris,
On Thursday 04 May 2017 12:23:32 Chris Brandt wrote:
> On Wednesday, May 03, 2017, jmondi wrote:
> > I have a proposal here, as the original driver only supported "image
> > fetch mode" (ie. It accepts data in YUYV with components ordering
> > arbitrary swapped) as a first step we may want to replicate this, ignoring
> > data synch fetch mode (Chris, you have a driver for this you are already
> > using in your BSP so I guess it's less urgent to support it, right?).
>
>
> My "driver" (if you can call it that) is basically 20 lines of code that
> sets up the registers either "image capture" mode or "data fetch". The
> main reason for the code was that the current CEU driver only supported
> "image capture" which resulted in separate Y and CbCr output buffers
> output, and then the app would have to merge them back together which was a
> waste of time (and memory).
>
> My customers simply wanted the packed format
> that came out of the camera. So, I created the 20 lines of code and we
> abandoned the CEU driver in the kernel.
>
> Also, the LCD controller (VDC5) can display a YCbCr frame buffer directly if
> it's packed...but not if it's a separate Y/CbCr buffers.
>
> Not to mention, if you just have a black and white camera (Y only), the
> Y/CbCr spilt function is totally useless and cuts your B&W image in half
> for no reason.
>
> My point: You can do the "image capture" mode (CAMCR:JPG=0) first, but no
> one will actually use the driver until the "data fetch" mode (CAMCR:JPG=1)
> is implemented.
Thanks for the feedback. I think that, given a YUV sensor, implementing
support for both image capture and data fetch modes won't be difficult.
Jacopo, are you OK with that ? If you implement image capture mode first, data
fetch mode should be just a small additional patch.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2017-05-04 12:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 8:42 [RFC v2 0/2] SH CEU camera driver Jacopo Mondi
2017-04-27 8:42 ` [RFC v2 1/2] media: platform: Add SH CEU camera interface driver Jacopo Mondi
2017-04-27 11:47 ` Laurent Pinchart
2017-05-01 14:37 ` jmondi
2017-05-02 7:58 ` Geert Uytterhoeven
2017-05-02 10:55 ` Laurent Pinchart
2017-05-02 9:48 ` jmondi
2017-05-02 10:59 ` Laurent Pinchart
2017-05-03 9:52 ` jmondi
2017-05-03 15:06 ` Laurent Pinchart
2017-05-03 16:14 ` jmondi
2017-05-03 16:20 ` Laurent Pinchart
2017-05-04 12:23 ` Chris Brandt
2017-05-04 12:54 ` Laurent Pinchart [this message]
2017-04-27 8:42 ` [RFC v2 2/2] media: platform: soc-camera: Remove SH CEU driver Jacopo Mondi
2017-04-27 13:10 ` [RFC v2 0/2] SH CEU camera driver Chris Brandt
2017-04-27 16:14 ` jmondi
2017-04-27 18:03 ` Chris Brandt
2017-05-15 14:37 ` jmondi
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=2978338.Pa9pg5uBv6@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=Chris.Brandt@renesas.com \
--cc=jacopo@jmondi.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.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 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.