mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 16:00:58 +02:00
libeplayer3: cleanup
Origin commit data
------------------
Branch: master
Commit: 6f384fc6b6
Author: martii <m4rtii@gmx.de>
Date: 2013-06-08 (Sat, 08 Jun 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -100,19 +100,8 @@ static int reset()
|
||||
|
||||
static int writeData(void* _call)
|
||||
{
|
||||
#ifndef MARTII
|
||||
unsigned char r;
|
||||
unsigned char g;
|
||||
unsigned char b;
|
||||
#endif
|
||||
unsigned char a;
|
||||
#ifndef MARTII
|
||||
int x,y;
|
||||
#endif
|
||||
int res = 0;
|
||||
#ifndef MARTII
|
||||
unsigned char* dst;
|
||||
#endif
|
||||
|
||||
WriterFBCallData_t* call = (WriterFBCallData_t*) _call;
|
||||
|
||||
@@ -162,7 +151,7 @@ static int writeData(void* _call)
|
||||
{
|
||||
k = ((unsigned)src[x]) * opacity / 255;
|
||||
ck = 255 - k;
|
||||
#ifdef MARTII // or __sh__, or !HAVE_TRIPLEDRAGON
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
*dst++ = 0;
|
||||
t = *dst;
|
||||
*dst++ = (k*r + ck*t) / 255;
|
||||
@@ -186,9 +175,7 @@ static int writeData(void* _call)
|
||||
}
|
||||
} else
|
||||
{
|
||||
#ifdef MARTII
|
||||
int y;
|
||||
#endif
|
||||
for (y = 0; y < call->Height; y++)
|
||||
memset(call->destination + ((call->y + y) * call->destStride) + call->x * 4, 0, call->Width * 4);
|
||||
}
|
||||
|
Reference in New Issue
Block a user