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

Nathan Caldwell saintdev
Wed Aug 26 07:43:00 CEST 2009


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? 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.

-- 
-Nathan Caldwell



More information about the ffmpeg-devel mailing list