comparison imgconvert.c @ 6750:c93570aeb3eb libavcodec

Remove unnecessary parentheses from return calls.
author diego
date Tue, 06 May 2008 09:16:36 +0000
parents c9416ce3c09f
children 0e2576b1e753
comparison
equal deleted inserted replaced
6749:b1778cf7f3b1 6750:c93570aeb3eb
1360 #define TRANSP_INDEX (6*6*6) 1360 #define TRANSP_INDEX (6*6*6)
1361 1361
1362 /* this is maybe slow, but allows for extensions */ 1362 /* this is maybe slow, but allows for extensions */
1363 static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) 1363 static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b)
1364 { 1364 {
1365 return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6)); 1365 return (((r) / 47) % 6) * 6 * 6 + (((g) / 47) % 6) * 6 + (((b) / 47) % 6);
1366 } 1366 }
1367 1367
1368 static void build_rgb_palette(uint8_t *palette, int has_alpha) 1368 static void build_rgb_palette(uint8_t *palette, int has_alpha)
1369 { 1369 {
1370 uint32_t *pal; 1370 uint32_t *pal;