[MPlayer-dev-eng] remove palette8torgb15 and palette8torgb15, was: make swscale's palette functions public

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jun 1 22:32:30 CEST 2010


On Tue, Jun 01, 2010 at 10:01:45PM +0200, Reinhard Tartler wrote:
> +static void palette8tobgr16(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]]) >> 8) | 
> +                               ((((const uint16_t *)palette)[src[i]]) << 8);

#include "mpbswap.h"
bswap_16(...)



More information about the MPlayer-dev-eng mailing list