[FFmpeg-devel] [PATCH] CrystalHD decoder support v4

Måns Rullgård mans
Tue Feb 8 13:49:09 CET 2011


Philip Langdale <philipl at overt.org> writes:

> On Mon, 07 Feb 2011 13:01:58 +0100
> Diego Biurrun <diego at biurrun.de> wrote:
>
>> > +static inline void memcpy_pic(void *dst, const void *src,
>> > +                              int bytesPerLine, int height,
>> > +                              int dstStride, int srcStride)
>> > +{
>> > +    int i;
>> > +    for (i = 0; i < height; i++) {
>> > +        memcpy(dst, src, bytesPerLine);
>> > +        src = (const uint8_t*)src + srcStride;
>> > +        dst = (uint8_t*)dst + dstStride;
>> > +    }
>> > +}
>> 
>> Question for the audience: Don't we have something like that already?
>
> This came from mplayer; that might be what you're thinking of. I haven't
> found anything like it in ffmpeg.

av_image_copy() or av_image_copy_plane()?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list