comparison libswscale/rgb2rgb_template.c @ 25750:06bf0eb70a55

Cosmetics: whitespaces
author benoit
date Thu, 17 Jan 2008 10:24:14 +0000
parents 8d082a234a6d
children 147deb141e07
comparison
equal deleted inserted replaced
25749:8d082a234a6d 25750:06bf0eb70a55
80 #else 80 #else
81 #define MOVNTQ "movq" 81 #define MOVNTQ "movq"
82 #define SFENCE " # nop" 82 #define SFENCE " # nop"
83 #endif 83 #endif
84 84
85 static inline void RENAME(rgb24to32)(const uint8_t *src,uint8_t *dst,long src_size) 85 static inline void RENAME(rgb24to32)(const uint8_t *src, uint8_t *dst, long src_size)
86 { 86 {
87 uint8_t *dest = dst; 87 uint8_t *dest = dst;
88 const uint8_t *s = src; 88 const uint8_t *s = src;
89 const uint8_t *end; 89 const uint8_t *end;
90 #ifdef HAVE_MMX 90 #ifdef HAVE_MMX
140 *dest++ = 0; 140 *dest++ = 0;
141 #endif 141 #endif
142 } 142 }
143 } 143 }
144 144
145 static inline void RENAME(rgb32to24)(const uint8_t *src,uint8_t *dst,long src_size) 145 static inline void RENAME(rgb32to24)(const uint8_t *src, uint8_t *dst, long src_size)
146 { 146 {
147 uint8_t *dest = dst; 147 uint8_t *dest = dst;
148 const uint8_t *s = src; 148 const uint8_t *s = src;
149 const uint8_t *end; 149 const uint8_t *end;
150 #ifdef HAVE_MMX 150 #ifdef HAVE_MMX
232 Original by Strepto/Astral 232 Original by Strepto/Astral
233 ported to gcc & bugfixed : A'rpi 233 ported to gcc & bugfixed : A'rpi
234 MMX2, 3DNOW optimization by Nick Kurshev 234 MMX2, 3DNOW optimization by Nick Kurshev
235 32 bit C version, and and&add trick by Michael Niedermayer 235 32 bit C version, and and&add trick by Michael Niedermayer
236 */ 236 */
237 static inline void RENAME(rgb15to16)(const uint8_t *src,uint8_t *dst,long src_size) 237 static inline void RENAME(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size)
238 { 238 {
239 register const uint8_t* s=src; 239 register const uint8_t* s=src;
240 register uint8_t* d=dst; 240 register uint8_t* d=dst;
241 register const uint8_t *end; 241 register const uint8_t *end;
242 const uint8_t *mm_end; 242 const uint8_t *mm_end;
281 register unsigned short x= *((uint16_t *)s); 281 register unsigned short x= *((uint16_t *)s);
282 *((uint16_t *)d) = (x&0x7FFF) + (x&0x7FE0); 282 *((uint16_t *)d) = (x&0x7FFF) + (x&0x7FE0);
283 } 283 }
284 } 284 }
285 285
286 static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,long src_size) 286 static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, long src_size)
287 { 287 {
288 register const uint8_t* s=src; 288 register const uint8_t* s=src;
289 register uint8_t* d=dst; 289 register uint8_t* d=dst;
290 register const uint8_t *end; 290 register const uint8_t *end;
291 const uint8_t *mm_end; 291 const uint8_t *mm_end;