[FFmpeg-devel] [PATCH 2/4] Silicon Graphics Motion Video Compressor 1 & 2 decoder

Peter Ross pross at xvid.org
Wed Dec 12 13:06:57 CET 2012


On Tue, Dec 11, 2012 at 11:14:09AM +0000, Paul B Mahol wrote:
> On 12/11/12, Peter Ross <pross at xvid.org> wrote:
[snip]
> > +static void set_4x4_block(uint8_t *dst, int linesize, uint32_t pixel)
> > +{
> > +    int i, j;
> > +    for (j = 0; j < 4; j++)
> > +        for (i = 0; i < 4; i++)
> > +            AV_WN32A(dst + j * linesize + i * 4, pixel);
> > +}
> 
> Something similar is in dsputil, please use that.

There are fill functions for 8x8 and 16x16 blocks (where each element
is 16bits), but no equivalent fill function 4x4 blocks with 32bit
elements. Give me a hint!

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121212/9302e22a/attachment.asc>


More information about the ffmpeg-devel mailing list