[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.21,1.22 rgb2rgb.h,1.8,1.9

Michael Niedermayer michaelni at gmx.at
Mon Nov 5 12:56:44 CET 2001


Hi

On Monday 05 November 2001 09:37, Nick Kurshev wrote:
> More standards compilance
ok

> -void palette8torgb32(uint8_t *src, uint8_t *dst, int num_pixels, uint8_t
> *palette) +void palette8torgb32(const uint8_t *src, uint8_t *dst, uint32_t
> num_pixels, const uint8_t *palette) {
> -	int i;
> +	uint32_t i;
the const is ok, the uint32_t is not
afaik int allows the compiler to choose the type so that it is fastest, for 
example on the x86 chips 32bit is faster than 64bit, on other architectures 
64bit might be faster

Michael




More information about the MPlayer-cvslog mailing list