From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Trent Piepho <xyzzy@speakeasy.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
mike@compulab.co.il,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH 1/4] pxa_camera: Remove YUV planar formats hole
Date: Sat, 07 Mar 2009 00:30:37 +0100 [thread overview]
Message-ID: <87eixa2pr6.fsf@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.58.0903061442240.24268@shell2.speakeasy.net> (Trent Piepho's message of "Fri\, 6 Mar 2009 15\:12\:36 -0800 \(PST\)")
Trent Piepho <xyzzy@speakeasy.org> writes:
> I like the algorithm I posted, after another small improvement, better.
So push it toward v4l2, to have wider audience.
If I were you, I'd have a peek at include/linux/kernel.h, which brings you
beautiful functions like ALIGN(), IS_ALIGNED(), and so on ... That could make
your next review easier.
> For instance, if width is aligned by 8 and height by 2, then you have
> already have 16 byte alignment and there is no need to align height by 4.
> E.g., 168x202 will be kept as 168x202 with my method but the rounding down
> method changes it to 168x200.
In the algorithm I posted, I keep 168x202 as well.
> Another example, take 159x243. My algorithm produces 160x243, which seems
> much better than 156x240, what one gets by rounding each dimention down to
> a multiple of four.
By better you mean "nearer" ? Well, why not. If your patch mades it through v4l2
stack, I'll push an update to use it, deal ?
--
Robert
next prev parent reply other threads:[~2009-03-06 23:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1402002204.2045281236327939805.JavaMail.root@zimbra20-e3.priv.proxad.net>
2009-03-06 8:26 ` [PATCH 1/4] pxa_camera: Remove YUV planar formats hole robert.jarzmik
2009-03-06 9:56 ` Trent Piepho
2009-03-06 18:55 ` Guennadi Liakhovetski
2009-03-06 23:12 ` Trent Piepho
2009-03-06 23:30 ` Robert Jarzmik [this message]
2009-03-06 23:17 ` Robert Jarzmik
[not found] <421785551.2131221236346602590.JavaMail.root@zimbra20-e3.priv.proxad.net>
2009-03-06 13:39 ` robert.jarzmik
2009-03-05 19:45 [PATCH 0/4] pxa_camera: Redesign DMA handling Robert Jarzmik
2009-03-05 19:45 ` [PATCH 1/4] pxa_camera: Remove YUV planar formats hole Robert Jarzmik
2009-03-05 20:29 ` Guennadi Liakhovetski
2009-03-05 21:10 ` Robert Jarzmik
2009-03-05 21:22 ` Trent Piepho
2009-03-05 22:15 ` Guennadi Liakhovetski
2009-03-06 9:30 ` Trent Piepho
2009-03-09 10:45 ` Guennadi Liakhovetski
2009-03-09 19:13 ` Robert Jarzmik
2009-03-10 18:33 ` Trent Piepho
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=87eixa2pr6.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.org \
--cc=mike@compulab.co.il \
--cc=xyzzy@speakeasy.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.