Originally committed as revision 31679 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Måns Rullgård authored on 2010/07/11 07:12:38... | ... |
@@ -231,7 +231,7 @@ void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui |
231 | 231 |
{ |
232 | 232 |
long i; |
233 | 233 |
for (i=0; i<num_pixels; i++) |
234 |
- ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]); |
|
234 |
+ ((uint16_t *)dst)[i] = av_bswap16(((const uint16_t *)palette)[src[i]]); |
|
235 | 235 |
} |
236 | 236 |
#endif |
237 | 237 |
|
... | ... |
@@ -1659,7 +1659,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[ |
1659 | 1659 |
|
1660 | 1660 |
for (i=0; i<height; i++) { |
1661 | 1661 |
for (j=0; j<length; j++) |
1662 |
- ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]); |
|
1662 |
+ ((uint16_t*)dstPtr)[j] = av_bswap16(((const uint16_t*)srcPtr)[j]); |
|
1663 | 1663 |
srcPtr+= srcStride[plane]; |
1664 | 1664 |
dstPtr+= dstStride[plane]; |
1665 | 1665 |
} |
... | ... |
@@ -774,7 +774,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int |
774 | 774 |
} |
775 | 775 |
if (isNotNe) |
776 | 776 |
for (i = 0; i < 1024*3; i++) |
777 |
- y_table16[i] = bswap_16(y_table16[i]); |
|
777 |
+ y_table16[i] = av_bswap16(y_table16[i]); |
|
778 | 778 |
fill_table(c->table_rV, 2, crv, y_table16 + yoffs); |
779 | 779 |
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); |
780 | 780 |
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048); |
... | ... |
@@ -797,7 +797,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int |
797 | 797 |
} |
798 | 798 |
if(isNotNe) |
799 | 799 |
for (i = 0; i < 1024*3; i++) |
800 |
- y_table16[i] = bswap_16(y_table16[i]); |
|
800 |
+ y_table16[i] = av_bswap16(y_table16[i]); |
|
801 | 801 |
fill_table(c->table_rV, 2, crv, y_table16 + yoffs); |
802 | 802 |
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); |
803 | 803 |
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048); |