mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Add av_ prefix to bswap macros
Originally committed as revision 31679 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
8fc0162ac4
commit
6a01eab73c
@ -231,7 +231,7 @@ void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
|
|||||||
{
|
{
|
||||||
long i;
|
long i;
|
||||||
for (i=0; i<num_pixels; 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
|
#endif
|
||||||
|
|
||||||
|
@ -1659,7 +1659,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
|
|||||||
|
|
||||||
for (i=0; i<height; i++) {
|
for (i=0; i<height; i++) {
|
||||||
for (j=0; j<length; j++)
|
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];
|
srcPtr+= srcStride[plane];
|
||||||
dstPtr+= dstStride[plane];
|
dstPtr+= dstStride[plane];
|
||||||
}
|
}
|
||||||
|
@ -774,7 +774,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
|
|||||||
}
|
}
|
||||||
if (isNotNe)
|
if (isNotNe)
|
||||||
for (i = 0; i < 1024*3; i++)
|
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_rV, 2, crv, y_table16 + yoffs);
|
||||||
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
|
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
|
||||||
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);
|
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
|
|||||||
}
|
}
|
||||||
if(isNotNe)
|
if(isNotNe)
|
||||||
for (i = 0; i < 1024*3; i++)
|
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_rV, 2, crv, y_table16 + yoffs);
|
||||||
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
|
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
|
||||||
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);
|
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);
|
||||||
|
Loading…
Reference in New Issue
Block a user