From: Michael Jones <michael.jones@matrix-vision.de>
To: James <angweiyang@gmail.com>
Cc: linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: Why is the Y12 support 12-bit grey formats at the CCDC input (Y12) is truncated to Y10 at the CCDC output?
Date: Thu, 15 Dec 2011 11:10:41 +0100 [thread overview]
Message-ID: <4EE9C7A1.8060303@matrix-vision.de> (raw)
In-Reply-To: <CAOy7-nPY_Nffgj_Ax=ziT9WYH-egvL8QnZfb50Xurn+AF4yWCQ@mail.gmail.com>
Hi James,
On 12/15/2011 10:49 AM, James wrote:
> Hi Michael,
>
> On Thu, Dec 15, 2011 at 3:58 PM, Michael Jones
> <michael.jones@matrix-vision.de> wrote:
>> Hi James,
>>
>>
>> On 12/15/2011 08:14 AM, James wrote:
>>>
>>> Hi all,
>>>
>>> I'm using an OMAP3530 board and a monochrome 12-bit grey sensor.
>>>
>>> Can anyone enlighten me why is the 12-bit grey formats at the CCDC
>>> input (Y12) is truncated to Y10 at the CCDC output?
>>
>>
>> There are 2 CCDC outputs: CCDC_PAD_SOURCE_OF and CCDC_PAD_SOURCE_VP. Only
>> the VP (video port) truncates data to 10 bits, and it does that because the
>> subdevs it feeds can only handle 10 bits max.
>
> Thank you for the clarification.
>
>>> I need to read the entire RAW 12-bit grey value from the CCDC to
>>> memory and the data does not pass through other OMAP3ISP sub-devices.
>>>
>>> I intend to use Laurent's yavta to capture the data to file to verify
>>> its operation for the moment.
>>>
>>> Can this 12-bit (Y12) raw capture be done?
>>
>>
>> Yes. If you are writing the 12-bit gray value directly into memory, you will
>> use SOURCE_OF and can write the full 12-bits into memory. You need to set
>> up your media pipeline to do sensor->CCDC->OMAP3 ISP CCDC output.
>
> Is there further modification needed to apply to the OMAP3ISP to achieve this?
>
> Do you have an application to test the pipeline for this setting to
> simple display?
Let's establish where you're coming from. Are you familiar with the
media controller? Laurent has a program 'media-ctl' to set up the
pipeline (see http://git.ideasonboard.org/?p=media-ctl.git). You will
find many examples of its usage in the archives of this mailing list.
It will look something like:
media-ctl -r
media-ctl -l '"OMAP3 ISP CCDC":1 -> "OMAP3 ISP CCDC output":0 [1]'
media-ctl -l '"your-sensor-name":0 -> "OMAP3 ISP CCDC":0 [1]'
you will also need to set the formats through the pipeline with
'media-ctl --set-format'.
After you use media-ctl to set up the pipeline, you can use yavta to
capture the data from the CCDC output (for me, this is /dev/video2).
-Michael
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier
next prev parent reply other threads:[~2011-12-15 10:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 7:14 Why is the Y12 support 12-bit grey formats at the CCDC input (Y12) is truncated to Y10 at the CCDC output? James
2011-12-15 7:58 ` Michael Jones
2011-12-15 9:49 ` James
2011-12-15 10:10 ` Michael Jones [this message]
2011-12-16 0:53 ` James
2011-12-16 9:40 ` Laurent Pinchart
2011-12-19 4:06 ` James
2011-12-21 2:50 ` James
2011-12-21 3:06 ` James
2011-12-21 10:55 ` Laurent Pinchart
2011-12-22 6:23 ` James
2011-12-22 10:17 ` Laurent Pinchart
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=4EE9C7A1.8060303@matrix-vision.de \
--to=michael.jones@matrix-vision.de \
--cc=angweiyang@gmail.com \
--cc=laurent.pinchart@ideasonboard.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.