All of lore.kernel.org
 help / color / mirror / Atom feed
From: Enrico <ebutera@users.berlios.de>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Gary Thomas <gary@mlbassoc.com>,
	linux-media@vger.kernel.org,
	Enric Balletbo i Serra <eballetbo@iseebcn.com>
Subject: Re: Getting started with OMAP3 ISP
Date: Fri, 2 Sep 2011 11:02:23 +0200	[thread overview]
Message-ID: <CA+2YH7s9EEQi55TbzhE7yHdFB196t5g24Za0WJbWut+SzZHv2A@mail.gmail.com> (raw)
In-Reply-To: <201109012014.32996.laurent.pinchart@ideasonboard.com>

On Thu, Sep 1, 2011 at 8:14 PM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> On Thursday 01 September 2011 19:24:54 Enrico wrote:
>> yavta will set UYVY (PIX_FMT), this will cause a call to
>> ispvideo.c:isp_video_pix_to_mbus(..), that will do this:
>>
>> for (i = 0; i < ARRAY_SIZE(formats); ++i) {
>>                 if (formats[i].pixelformat == pix->pixelformat)
>>                         break;
>> }
>>
>> that is it will stop at the first matching array item, and that's:
>>
>> { V4L2_MBUS_FMT_UYVY8_1X16, V4L2_MBUS_FMT_UYVY8_1X16,
>>           V4L2_MBUS_FMT_UYVY8_1X16, 0,
>>           V4L2_PIX_FMT_UYVY, 16, 16, },
>>
>>
>> but you wanted this:
>>
>> { V4L2_MBUS_FMT_UYVY8_2X8, V4L2_MBUS_FMT_UYVY8_2X8,
>>           V4L2_MBUS_FMT_UYVY8_2X8, 0,
>>           V4L2_PIX_FMT_UYVY, 8, 16, },
>>
>> so a better check could be to check for width too, but i don't know if
>> it's possibile to pass a width requirement or if it's already there in
>> some struct passed to the function.
>
> That's not really an issue, as the isp_video_pix_to_mbus() and
> isp_video_mbus_to_pix() calls in isp_video_set_format() are just used to fill
> the bytesperline and sizeimage fields. From a quick look at the code
> isp_video_check_format() should succeed as well.
>
> Have you run into any specific issue with isp_video_pix_to_mbus() when using
> V4L2_MBUS_FMT_UYVY8_2X8 ?

No, i assumed it was used to set the format on the pad too but this is
not the case, sorry for the noise.

Right now my problem is that i can't get the isp to generate
interrupts, i think there is some isp configuration error.

Enrico

  parent reply	other threads:[~2011-09-02  9:02 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 16:07 Getting started with OMAP3 ISP Gary Thomas
2011-08-29 10:49 ` Laurent Pinchart
2011-08-30 14:08   ` Gary Thomas
2011-08-30 14:18     ` Gary Thomas
2011-08-30 14:20       ` Laurent Pinchart
2011-08-30 14:56         ` Gary Thomas
2011-08-30 15:48           ` Laurent Pinchart
2011-08-30 16:07           ` Enrico
2011-08-30 16:23             ` Gary Thomas
2011-08-30 16:36               ` Enrico
2011-08-30 16:48                 ` Gary Thomas
2011-08-30 21:19               ` Sakari Ailus
2011-08-30 22:45   ` Gary Thomas
2011-08-30 22:50     ` Laurent Pinchart
2011-08-31  0:07       ` Gary Thomas
2011-08-31  8:13         ` Laurent Pinchart
2011-08-31 10:56           ` Gary Thomas
2011-08-31 11:00             ` Laurent Pinchart
2011-08-31 12:01               ` Gary Thomas
2011-08-31 15:15                 ` Laurent Pinchart
2011-08-31 15:19                   ` Gary Thomas
2011-08-31 16:25                   ` Enrico
2011-08-31 16:33                     ` Laurent Pinchart
2011-08-31 22:34                       ` Gary Thomas
2011-09-01  8:11                         ` Laurent Pinchart
2011-09-01  9:51                       ` Enrico
2011-09-01  9:55                         ` Laurent Pinchart
2011-09-01 10:24                           ` Enrico
2011-09-01 14:12                             ` Enrico
2011-09-01 14:24                               ` Laurent Pinchart
2011-09-01 12:50                         ` Gary Thomas
2011-09-01 13:26                           ` Laurent Pinchart
2011-09-01 15:16                             ` Gary Thomas
2011-09-01 16:14                               ` Enrico
2011-09-01 17:24                                 ` Enrico
2011-09-01 18:14                                   ` Laurent Pinchart
2011-09-01 18:18                                     ` Gary Thomas
2011-09-02  8:09                                       ` Laurent Pinchart
2011-09-02  9:02                                     ` Enrico [this message]
2011-09-02 11:27                                       ` Laurent Pinchart
2011-09-05 16:37                                         ` Enrico
2011-09-06  8:48                                           ` Laurent Pinchart
2011-09-06  9:04                                             ` Enrico
     [not found]                                           ` <201109061049.32114.laurent.pinchart@ideasonboard.com>
2011-09-06  9:10                                             ` Enrico
2011-10-05 10:46 Adam Pledger

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=CA+2YH7s9EEQi55TbzhE7yHdFB196t5g24Za0WJbWut+SzZHv2A@mail.gmail.com \
    --to=ebutera@users.berlios.de \
    --cc=eballetbo@iseebcn.com \
    --cc=gary@mlbassoc.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.