comparison libswscale/rgb2rgb_template.c @ 26925:3f6d2ca29727

restore needed cast to correct type with const
author bcoudurier
date Sun, 01 Jun 2008 19:08:16 +0000
parents da8e02081774
children 65b8334df960
comparison
equal deleted inserted replaced
26924:ca50c4a72f68 26925:3f6d2ca29727
323 asm volatile(EMMS:::"memory"); 323 asm volatile(EMMS:::"memory");
324 #endif 324 #endif
325 mm_end = end - 3; 325 mm_end = end - 3;
326 while (s < mm_end) 326 while (s < mm_end)
327 { 327 {
328 register uint32_t x= *s; 328 register uint32_t x= *((const uint32_t*)s);
329 *((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F); 329 *((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F);
330 s+=4; 330 s+=4;
331 d+=4; 331 d+=4;
332 } 332 }
333 if (s < end) 333 if (s < end)
334 { 334 {
335 register uint16_t x= *s; 335 register uint16_t x= *((const uint16_t*)s);
336 *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); 336 *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F);
337 s+=2; 337 s+=2;
338 d+=2; 338 d+=2;
339 } 339 }
340 } 340 }