Revision ae4cffd9 postproc/rgb2rgb_template.c

View differences:

postproc/rgb2rgb_template.c
388 388
#endif
389 389
	while(s < end)
390 390
	{
391
		const int src= *((uint32_t*)s)++;
391
		const int src= *s; s += 4;
392 392
		*d++ = ((src&0xFF)>>3) + ((src&0xFC00)>>5) + ((src&0xF80000)>>8);
393 393
//		*d++ = ((src>>3)&0x1F) + ((src>>5)&0x7E0) + ((src>>8)&0xF800);
394 394
	}
......
450 450
#endif
451 451
	while(s < end)
452 452
	{
453
		const int src= *((uint32_t*)s)++;
453
		const int src= *s; s += 4;
454 454
		*d++ = ((src&0xF8)<<8) + ((src&0xFC00)>>5) + ((src&0xF80000)>>19);
455 455
	}
456 456
}
......
546 546
#endif
547 547
	while(s < end)
548 548
	{
549
		const int src= *((uint32_t*)s)++;
549
		const int src= *s; s += 4;
550 550
		*d++ = ((src&0xFF)>>3) + ((src&0xF800)>>6) + ((src&0xF80000)>>9);
551 551
	}
552 552
}
......
607 607
#endif
608 608
	while(s < end)
609 609
	{
610
		const int src= *((uint32_t*)s)++;
610
		const int src= *s; s += 4;
611 611
		*d++ = ((src&0xF8)<<7) + ((src&0xF800)>>6) + ((src&0xF80000)>>19);
612 612
	}
613 613
}

Also available in: Unified diff