59 uint32_t
yuv2rgb(uint32_t yuv_color);
63 uint32_t
getColor(uint8_t idx, uint8_t trans)
const;
75 void putPixel(
int xp,
int yp,
int len, uint8_t colorid);
76 void putFieldData(
int field, uint8_t * data, uint8_t * endp);
80 uint8_t * fodd, uint8_t * eodd,
81 uint8_t * feven, uint8_t * eeven);
130 return ((
spu[2] << 8) |
spu[3]);
133 return ((
spu[0] << 8) |
spu[1]);
148 void setHighlight(uint16_t sx, uint16_t sy, uint16_t ex, uint16_t ey,
155 void processSPU(uint32_t pts, uint8_t * buf,
bool AllowedShow);
166 Y = (yuv_color >> 16) & 0xff;
167 Cb = (yuv_color) & 0xff;
168 Cr = (yuv_color >> 8) & 0xff;
179 Eg = (298 * Ey - 100 * Epb - 208 * Epr) / 256;
180 Eb = (298 * Ey + 516 * Epb) / 256;
181 Er = (298 * Ey + 408 * Epr) / 256;
198 return Eb | (Eg << 8) | (Er << 16);
203 return palette[idx] | ((trans == 0x0f) ? 0xff000000 : (trans << 28));