mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Fade changes for new fb driver
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1413 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -45,6 +45,9 @@
|
||||
#include <global.h>
|
||||
#include <video.h>
|
||||
#include <cs_api.h>
|
||||
#ifdef HAVE_COOL_HARDWARE
|
||||
#include <cnxtfb.h>
|
||||
#endif
|
||||
|
||||
extern cVideo * videoDecoder;
|
||||
|
||||
@@ -507,19 +510,28 @@ void CFrameBuffer::setTransparency( int /*tr*/ )
|
||||
{
|
||||
}
|
||||
|
||||
#define FBIO_CHANGEOPACITY 0x4624
|
||||
void CFrameBuffer::setBlendMode(uint8_t mode)
|
||||
{
|
||||
#ifdef HAVE_COOL_HARDWARE
|
||||
if (ioctl(fd, FBIO_SETBLENDMODE, mode))
|
||||
printf("FBIO_SETBLENDMODE failed.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
void CFrameBuffer::setBlendLevel(int blev1, int /*blev2*/)
|
||||
{
|
||||
#if 1
|
||||
//printf("CFrameBuffer::setBlendLevel %d\n", blev1);
|
||||
unsigned short value = 0xFFFF;
|
||||
unsigned char value = 0xFF;
|
||||
if((blev1 >= 0) && (blev1 <= 100))
|
||||
value = convertSetupAlpha2Alpha(blev1);
|
||||
|
||||
if (ioctl(fd, FBIO_CHANGEOPACITY, &value) < 0)
|
||||
printf("FBIO_CHANGEOPACITY failed.\n");
|
||||
if(blev1 == 100) // sucks
|
||||
usleep(20000);
|
||||
#ifdef HAVE_COOL_HARDWARE
|
||||
if (ioctl(fd, FBIO_SETOPACITY, value))
|
||||
printf("FBIO_SETOPACITY failed.\n");
|
||||
#if 1
|
||||
if(blev1 == 100) // TODO: sucks.
|
||||
usleep(20000);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user