Revision da7f8893

View differences:

postproc/rgb2rgb_template.c
1532 1532
		int i, *idst = (int32_t *) dst;
1533 1533
		const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
1534 1534
		for(i = 0; i < chromWidth; i++){
1535
#ifdef WORDS_BIGENDIAN
1536
			*idst++ = (yc[0] << 24)+ (uc[0] << 16) +
1537
			    (yc[1] << 8) + (vc[0] << 0);
1538
#else
1535 1539
			*idst++ = yc[0] + (uc[0] << 8) +
1536 1540
			    (yc[1] << 16) + (vc[0] << 24);
1541
#endif
1537 1542
			yc += 2;
1538 1543
			uc++;
1539 1544
			vc++;
......
1634 1639
		int i, *idst = (int32_t *) dst;
1635 1640
		const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
1636 1641
		for(i = 0; i < chromWidth; i++){
1642
#ifdef WORDS_BIGENDIAN
1643
			*idst++ = (uc[0] << 24)+ (yc[0] << 16) +
1644
			    (vc[0] << 8) + (yc[1] << 0);
1645
#else
1637 1646
			*idst++ = uc[0] + (yc[0] << 8) +
1638 1647
			    (vc[0] << 16) + (yc[1] << 24);
1648
#endif
1639 1649
			yc += 2;
1640 1650
			uc++;
1641 1651
			vc++;

Also available in: Unified diff