From: Sylwester Nawrocki <snjw23@gmail.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Scott Jiang <scott.jiang.linux@gmail.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
LMML <linux-media@vger.kernel.org>
Subject: Re: v4l: how to get blanking clock count?
Date: Sat, 31 Dec 2011 13:03:20 +0100 [thread overview]
Message-ID: <4EFEFA08.805@gmail.com> (raw)
In-Reply-To: <20111231113529.GC3677@valkosipuli.localdomain>
Hi Sakari,
On 12/31/2011 12:35 PM, Sakari Ailus wrote:
> On Sat, Dec 31, 2011 at 02:57:31PM +0800, Scott Jiang wrote:
>> 2011/12/31 Sakari Ailus <sakari.ailus@iki.fi>:
>>> On Fri, Dec 30, 2011 at 03:20:43PM +0800, Scott Jiang wrote:
>>>> Our bridge driver needs to know line clock count including active
>>>> lines and blanking area.
>>>> I can compute active clock count according to pixel format, but how
>>>> can I get this in blanking area in current framework?
>>>
>>> Such information is not available currently over the V4L2 subdev interface.
>>> Please see this patchset:
>>>
>>> <URL:http://www.spinics.net/lists/linux-media/msg41765.html>
>>>
>>> Patches 7 and 8 are probably the most interesting for you. This is an RFC
>>> patchset so the final implementation could well still change.
>>>
>> Hi Sakari,
>>
>> Thanks for your reply. Your patch added VBLANK and HBLANK control, but
>> my case isn't a user control.
>> That is to say, you can't specify a blanking control value for sensor.
>
> I the case of your bridge, that may not be possible, but that's the only one
> I've heard of so I think it's definitely a special case. In that case the
> sensor driver can't be allowed to change the blanking periods while
> streaming is ongoing.
I agree, it's just a matter of adding proper logic at the sensor driver.
However it might be a bit tricky, the bridge would have to validate blanking
values before actually enabling streaming.
> framesamples proposed by Sylwester for v4l2_mbus_framefmt could, and
> probably should, be exposed as a control with similar property.
Yeah, I'm going to try to add it to your proposed image source control
class.
>> And you added pixel clock rate in mbus format, I think if I add two
>> more parametres such as VBLANK lines and HBLANK clocks I can solve
>> this problem. In fact, active lines and blanking lines are essential
>> params to define an image.
>
> Only the active lines and rows are, blanking period is just an idle period
> where no image data is transferred. It does not affect the resulting image
> in any way.
--
Regards,
Sylwester
next prev parent reply other threads:[~2011-12-31 12:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-30 7:20 v4l: how to get blanking clock count? Scott Jiang
2011-12-30 21:33 ` Sakari Ailus
2011-12-31 6:57 ` Scott Jiang
2011-12-31 11:35 ` Sakari Ailus
2011-12-31 12:03 ` Sylwester Nawrocki [this message]
2012-01-01 11:57 ` Sakari Ailus
2012-01-04 5:50 ` Scott Jiang
2012-01-04 8:27 ` Sakari Ailus
2012-01-04 9:10 ` Scott Jiang
2012-01-04 9:39 ` Sakari Ailus
2012-01-04 9:59 ` Scott Jiang
2012-01-04 16:22 ` Sakari Ailus
2012-01-15 8:44 ` Sakari Ailus
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=4EFEFA08.805@gmail.com \
--to=snjw23@gmail.com \
--cc=g.liakhovetski@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
--cc=scott.jiang.linux@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.