[vlc-devel] [PATCH] YUV->RGBA conversion only supports multiples of 16

Rémi Denis-Courmont remi at remlab.net
Fri Feb 10 08:50:34 CET 2012


On Fri, 10 Feb 2012 01:56:16 +0100, XilasZ <xilasz at gmail.com> wrote:
>> It seems that height must be a multiple of 2 only.
> 
>> Also can't width be anything as long as the pitch is a multiple of 16 ?
> 
> Exactly, the converter is not limited to multiple of 16.

It is if you specify an alignment of 128-bits for load and store
operations.

> It assume the pitch is a multiple of 16,

Right.

> and since it's always the case with vlc, it's not an issue.

Of course not! VLC pads the pitches of allocated pictures to a multiple of
16 bytes (or was if 16 pixels). But that only works if the picture is
allocated by the VLC core.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list