mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark/libeplayer: rudimentary subtitle support, probably unstable
This commit is contained in:
@@ -163,6 +163,15 @@ static int writeData(void* _call)
|
||||
{
|
||||
k = ((unsigned)src[x]) * opacity / 255;
|
||||
ck = 255 - k;
|
||||
#ifdef MARTII // or __sh__, or !HAVE_TRIPLEDRAGON
|
||||
*dst++ = 0;
|
||||
t = *dst;
|
||||
*dst++ = (k*r + ck*t) / 255;
|
||||
t = *dst;
|
||||
*dst++ = (k*b + ck*t) / 255;
|
||||
t = *dst;
|
||||
*dst++ = (k*g + ck*t) / 255;
|
||||
#else
|
||||
t = *dst;
|
||||
*dst++ = (k*b + ck*t) / 255;
|
||||
t = *dst;
|
||||
@@ -170,6 +179,7 @@ static int writeData(void* _call)
|
||||
t = *dst;
|
||||
*dst++ = (k*r + ck*t) / 255;
|
||||
*dst++ = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
dst += dst_delta;
|
||||
|
Reference in New Issue
Block a user