[FFmpeg-devel] sgi without rle

Michael Niedermayer michaelni
Wed Sep 30 21:58:13 CEST 2009


On Wed, Sep 30, 2009 at 08:35:10PM +0200, Anne-Laure de Smit wrote:
[...]
> @@ -139,6 +140,21 @@
>      }
>  
>      av_free(encode_buf);
> +    } else {
> +        for (z = 0; z < depth; z++) {
> +            in_buf = p->data[0] + p->linesize[0] * (height - 1) + z;
> +
> +            for (y = 0; y < height; y++) {
> +
> +                for (x = 0; x < width*depth; x +=depth){
> +                    bytestream_put_buffer(&buf,&in_buf[x],1);
> +                }

i was thinking of
 bytestream_put_buffer(&buf, in_buf, width);
but i see now that wouldnt work, so the previous variant was better
sorry

except that patch ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20090930/b13ad49a/attachment.pgp>



More information about the ffmpeg-devel mailing list