60 uint32_t
yuv2rgb(uint32_t yuv_color);
64 uint32_t
getColor(uint8_t idx, uint8_t trans)
const;
76 void putPixel(
int xp,
int yp,
int len, uint8_t colorid);
77 void putFieldData(
int field, uint8_t * data, uint8_t * endp);
81 uint8_t * fodd, uint8_t * eodd,
82 uint8_t * feven, uint8_t * eeven);
132 return ((
spu[2] << 8) |
spu[3]);
135 return ((
spu[0] << 8) |
spu[1]);
151 void setHighlight(uint16_t sx, uint16_t sy, uint16_t ex, uint16_t ey,
158 void processSPU(uint32_t pts, uint8_t * buf,
bool AllowedShow);
169 Y = (yuv_color >> 16) & 0xff;
170 Cb = (yuv_color) & 0xff;
171 Cr = (yuv_color >> 8) & 0xff;
182 Eg = (298 * Ey - 100 * Epb - 208 * Epr) / 256;
183 Eb = (298 * Ey + 516 * Epb) / 256;
184 Er = (298 * Ey + 408 * Epr) / 256;
201 return Eb | (Eg << 8) | (Er << 16);
206 return palette[idx] | ((trans == 0x0f) ? 0xff000000 : (trans << 28));