Mercurial > mplayer.hg
changeset 31613:55abf5e08172
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:38 +0000 |
parents | 7fc1f051a19f |
children | b40d593a463f |
files | libswscale/rgb2rgb.c libswscale/swscale.c libswscale/yuv2rgb.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/rgb2rgb.c Sat Jul 10 20:48:50 2010 +0000 +++ b/libswscale/rgb2rgb.c Sat Jul 10 22:12:38 2010 +0000 @@ -231,7 +231,7 @@ { long i; for (i=0; i<num_pixels; i++) - ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]); + ((uint16_t *)dst)[i] = av_bswap16(((const uint16_t *)palette)[src[i]]); } #endif
--- a/libswscale/swscale.c Sat Jul 10 20:48:50 2010 +0000 +++ b/libswscale/swscale.c Sat Jul 10 22:12:38 2010 +0000 @@ -1659,7 +1659,7 @@ for (i=0; i<height; i++) { for (j=0; j<length; j++) - ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]); + ((uint16_t*)dstPtr)[j] = av_bswap16(((const uint16_t*)srcPtr)[j]); srcPtr+= srcStride[plane]; dstPtr+= dstStride[plane]; }
--- a/libswscale/yuv2rgb.c Sat Jul 10 20:48:50 2010 +0000 +++ b/libswscale/yuv2rgb.c Sat Jul 10 22:12:38 2010 +0000 @@ -774,7 +774,7 @@ } if (isNotNe) for (i = 0; i < 1024*3; i++) - y_table16[i] = bswap_16(y_table16[i]); + y_table16[i] = av_bswap16(y_table16[i]); fill_table(c->table_rV, 2, crv, y_table16 + yoffs); fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048); @@ -797,7 +797,7 @@ } if(isNotNe) for (i = 0; i < 1024*3; i++) - y_table16[i] = bswap_16(y_table16[i]); + y_table16[i] = av_bswap16(y_table16[i]); fill_table(c->table_rV, 2, crv, y_table16 + yoffs); fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);