[Ffmpeg-devel] [PATCH] rle encoder modified

Michael Niedermayer michaelni
Tue Apr 3 08:51:18 CEST 2007


Hi

On Tue, Apr 03, 2007 at 10:44:07AM +0800, Xiaohui Sun wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
>   resend the patch, for there are some merge problems in the last patch.
>  Changed the rle encoder a little and made it more universal.
> Not only the repeated byte is calculated as (count ^ xor) + add
> but also the raw encoding lenth byte is calculated as that too.

patch applied


[...]
> -int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr , int bpp, int w, int8_t add, uint8_t xor)
> +int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr , int bpp, int w,
> +                   int8_t add_rep, uint8_t xor_rep,int8_t add_raw,uint8_t xor_raw)

the arguments should simply have been int (ive missed this in Bartlomiejs
patch)

also there should have been a ' ' after ',' for consistency ...

fixed both myself after applying it


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

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070403/34f2955b/attachment.pgp>



More information about the ffmpeg-devel mailing list