Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1571890 > unrolled thread

Re: [PATCH v3 18/24] media: imx: Add SMFC subdev driver

Started byRussell King - ARM Linux <linux@armlinux.org.uk>
First post2017-02-01 19:50 +0100
Last post2017-02-01 20:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 18/24] media: imx: Add SMFC subdev driver Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-01 19:50 +0100
    Re: [PATCH v3 18/24] media: imx: Add SMFC subdev driver Steve Longerbeam <slongerbeam@gmail.com> - 2017-02-01 20:00 +0100

#1571890 — Re: [PATCH v3 18/24] media: imx: Add SMFC subdev driver

FromRussell King - ARM Linux <linux@armlinux.org.uk>
Date2017-02-01 19:50 +0100
SubjectRe: [PATCH v3 18/24] media: imx: Add SMFC subdev driver
Message-ID<t688F-13B-1@gated-at.bofh.it>
Hi Steve,

On Fri, Jan 06, 2017 at 06:11:36PM -0800, Steve Longerbeam wrote:
> +/*
> + * Min/Max supported width and heights.
> + *
> + * We allow planar output from the SMFC, so we have to align
> + * output width by 16 pixels to meet IDMAC alignment requirements,
> + * which also means input width must have the same alignment.
> + */
> +#define MIN_W       176
> +#define MIN_H       144
> +#define MAX_W      8192
> +#define MAX_H      4096
> +#define W_ALIGN    4 /* multiple of 16 pixels */

Does this only apply to planar formats?

I notice Philipp's driver allows 8 pixel alignment.  If it's only for
planar formats, it ought to determine the alignment based on the
requested format rather than hard-coding it to the maximum alignment
of all the supported formats.

Thanks.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

[toc] | [next] | [standalone]


#1571902

FromSteve Longerbeam <slongerbeam@gmail.com>
Date2017-02-01 20:00 +0100
Message-ID<t68il-17w-13@gated-at.bofh.it>
In reply to#1571890

On 02/01/2017 10:39 AM, Russell King - ARM Linux wrote:
> Hi Steve,
>
> On Fri, Jan 06, 2017 at 06:11:36PM -0800, Steve Longerbeam wrote:
>> +/*
>> + * Min/Max supported width and heights.
>> + *
>> + * We allow planar output from the SMFC, so we have to align
>> + * output width by 16 pixels to meet IDMAC alignment requirements,
>> + * which also means input width must have the same alignment.
>> + */
>> +#define MIN_W       176
>> +#define MIN_H       144
>> +#define MAX_W      8192
>> +#define MAX_H      4096
>> +#define W_ALIGN    4 /* multiple of 16 pixels */
> Does this only apply to planar formats?
>
> I notice Philipp's driver allows 8 pixel alignment.  If it's only for
> planar formats, it ought to determine the alignment based on the
> requested format rather than hard-coding it to the maximum alignment
> of all the supported formats.

yeah, I got lazy/tired there. I will fix this.

Steve

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web