[FFmpeg-devel] [PATCH] Interleaved memset/memcpy.

Michael Niedermayer michaelni
Wed Aug 26 12:40:06 CEST 2009


On Tue, Aug 25, 2009 at 11:43:00PM -0600, Nathan Caldwell wrote:
> On Mon, Aug 24, 2009 at 11:01 AM, Michael Niedermayer<michaelni at gmx.at> wrote:
> > On Sun, Aug 23, 2009 at 09:29:09PM -0600, Nathan Caldwell wrote:
> >> This patch adds an interleaved memset (useful for setting rows of
> >> pixels in eg: packed RGB). And an interleaved memcpy (useful for
> >> planar -> packed RGB).
> >
> > for what would any of that be usefull, even more so, in libavutil?
> 
> Well, for memset, setting only one channel of a packed pixel format
> (like setting alpha to fully opaque in RGBA). Is your opinion that the
> memcpy would be more useful if it were passed an unknown number of
> planar buffers and interleave them all at once? 

My question is _what_ will use this code, that is which file will call
this function. ATM its unused and does nt look usefull besides i could
make a log list why its interface and implementation are poor but first
id like to know the use case for this


> As for why libavutil,
> this seemed the most logical place. That's where the other memory
> functions are. It really doesn't matter to me. If you have a better
> suggestion I would move it.

swscale possibly does already what you want and probably better
but i dont know what you want to use this for so maybe sws is not
the correct thing ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090826/4e8742d8/attachment.pgp>



More information about the ffmpeg-devel mailing list