linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Hans Verkuil" <hverkuil@xs4all.nl>
To: "Shah, Hardik" <hardik.shah@ti.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Jadav, Brijesh R" <brijesh.j@ti.com>,
	"Hiremath, Vaibhav" <hvaibhav@ti.com>
Subject: RE: [PATCH 3/3] V4L2 Driver for OMAP3/3 DSS.
Date: Mon, 6 Apr 2009 16:57:12 +0200 (CEST)	[thread overview]
Message-ID: <60676.207.214.87.58.1239029832.squirrel@webmail.xs4all.nl> (raw)


> Hi Hans,
> Please find my comments inline. Most of the comments are taken care of.

> 2.  In DSS rotation is accomplished by some memory algorithm but its quite
> costly so -1 is essentially same as 0 degree but with out the overhead.
> But if mirroring is on then we have to do the 0 degree rotation with
> overhead using some memory techniques.  So from user point of view he will
> only be setting 0 but internally driver will take it as -1 or 0 depending
> upon the mirroring selected.

Hi Hardik,

I just looked over these comments and I'll do a full review in the weekend
when I'm back from San Francisco. But just one quick remark regarding this
magic -1 number: wouldn't it be better to write a small inline function
like this:

/* return true if we need to rotate or mirror, return false if we
   don't have to do anything here. */
static inline int needs_rotate(struct foo *foo)
{
    return foo->rotate != 0 || foo->mirror;
}

I think this is much more understandable. It's up to you, though.

Regards,

        Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG


             reply	other threads:[~2009-04-06 14:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-06 14:57 Hans Verkuil [this message]
2009-04-15 13:34 ` [PATCH 3/3] V4L2 Driver for OMAP3/3 DSS Shah, Hardik
  -- strict thread matches above, loose matches on Subject: below --
2009-04-15 13:44 Hans Verkuil
2009-03-20  5:20 Hardik Shah
2009-03-20  9:04 ` Koen Kooi
2009-03-20  9:08   ` Shah, Hardik
2009-03-20 12:23 ` Alexey Klimov
2009-03-20 12:41   ` Shah, Hardik
2009-03-20 12:32 ` Alexey Klimov
2009-03-20 12:40   ` Shah, Hardik
2009-03-30 13:06 ` Hans Verkuil
2009-03-30 13:18   ` Shah, Hardik
2009-04-06 11:51   ` Shah, Hardik

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=60676.207.214.87.58.1239029832.squirrel@webmail.xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=brijesh.j@ti.com \
    --cc=hardik.shah@ti.com \
    --cc=hvaibhav@ti.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-omap@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).