mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
remove palette8torgb15 and palette8tobgr15
They contain exactly the same code as their 16bit variants, so this is effectively code de-duplication. Originally committed as revision 31298 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
770e50ae80
commit
3d9408f4a7
@ -250,22 +250,6 @@ void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
|
|||||||
((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
|
((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Palette is assumed to contain BGR15, see rgb32to15 to convert the palette.
|
|
||||||
*/
|
|
||||||
void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
|
|
||||||
{
|
|
||||||
long i;
|
|
||||||
for (i=0; i<num_pixels; i++)
|
|
||||||
((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]];
|
|
||||||
}
|
|
||||||
void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
|
|
||||||
{
|
|
||||||
long i;
|
|
||||||
for (i=0; i<num_pixels; i++)
|
|
||||||
((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
|
|
||||||
}
|
|
||||||
|
|
||||||
void rgb32to24(const uint8_t *src, uint8_t *dst, long src_size)
|
void rgb32to24(const uint8_t *src, uint8_t *dst, long src_size)
|
||||||
{
|
{
|
||||||
long i;
|
long i;
|
||||||
|
@ -70,8 +70,6 @@ void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const
|
|||||||
void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
||||||
void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
||||||
void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
||||||
void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
|
||||||
void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height should be a multiple of 2 and width should be a multiple of 16.
|
* Height should be a multiple of 2 and width should be a multiple of 16.
|
||||||
|
Loading…
Reference in New Issue
Block a user