From: Hans Verkuil <hansverk@cisco.com>
To: Martin Bugge <marbugge@cisco.com>
Cc: linux-media@vger.kernel.org, Mats Randgaard <matrandg@cisco.com>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCH] [media] v4l2-dv-timings: fix GTF calculation
Date: Thu, 23 Jan 2014 11:56:59 +0100 [thread overview]
Message-ID: <52E0F57B.7080000@cisco.com> (raw)
In-Reply-To: <1390470000-9072-1-git-send-email-marbugge@cisco.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Regards,
Hans
On 01/23/14 10:40, Martin Bugge wrote:
> Round off image width to nearest 8 (GTF_CELL_GRAN)
>
> A source sending a GTF (Generalized Timing Formula) format have no means of
> signalling image width. The assumed aspect ratio may result in an odd image
> width but according to the standard image width should be in multiple of 8.
>
> Cc: Mats Randgaard <matrandg@cisco.com>
> Cc: Hans Verkuil <hans.verkuil@cisco.com>
> Signed-off-by: Martin Bugge <marbugge@cisco.com>
> ---
> drivers/media/v4l2-core/v4l2-dv-timings.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/v4l2-core/v4l2-dv-timings.c b/drivers/media/v4l2-core/v4l2-dv-timings.c
> index ee52b9f4..f7902fe 100644
> --- a/drivers/media/v4l2-core/v4l2-dv-timings.c
> +++ b/drivers/media/v4l2-core/v4l2-dv-timings.c
> @@ -515,6 +515,7 @@ bool v4l2_detect_gtf(unsigned frame_height,
> aspect.denominator = 9;
> }
> image_width = ((image_height * aspect.numerator) / aspect.denominator);
> + image_width = (image_width + GTF_CELL_GRAN/2) & ~(GTF_CELL_GRAN - 1);
>
> /* Horizontal */
> if (default_gtf)
>
prev parent reply other threads:[~2014-01-23 10:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 9:40 [PATCH] [media] v4l2-dv-timings: fix GTF calculation Martin Bugge
2014-01-23 10:56 ` Hans Verkuil [this message]
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=52E0F57B.7080000@cisco.com \
--to=hansverk@cisco.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-media@vger.kernel.org \
--cc=marbugge@cisco.com \
--cc=matrandg@cisco.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.