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

Reinhard Tartler siretart at tauware.de
Tue Jun 1 23:07:26 CEST 2010


On Di, Jun 01, 2010 at 22:32:30 (CEST), Reimar Döffinger wrote:

> 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(...)

you learn something new every day.

applied with this change

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4



More information about the MPlayer-dev-eng mailing list