openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
bcm.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <lib/base/eerror.h>

Macros

#define FBIO_ACCEL   0x23
 
#define P(x, y)   do { displaylist[ptr++] = x; displaylist[ptr++] = y; } while (0)
 
#define C(x)   P(x, 0)
 

Functions

static int exec_list (void)
 
int bcm_accel_init (void)
 
void bcm_accel_close (void)
 
bool bcm_accel_has_alphablending ()
 
int bcm_accel_accumulate ()
 
int bcm_accel_sync ()
 
void bcm_accel_blit (int src_addr, int src_width, int src_height, int src_stride, int src_format, int dst_addr, int dst_width, int dst_height, int dst_stride, int src_x, int src_y, int width, int height, int dst_x, int dst_y, int dwidth, int dheight, int pal_addr, int flags)
 
void bcm_accel_fill (int dst_addr, int dst_width, int dst_height, int dst_stride, int x, int y, int width, int height, unsigned long color)
 

Variables

static unsigned int displaylist [1024]
 
static int ptr = 0
 
static bool supportblendingflags = true
 
static bool accumulateoperations = false
 
static int fb_fd = -1
 

Macro Definition Documentation

◆ C

#define C (   x)    P(x, 0)

◆ FBIO_ACCEL

#define FBIO_ACCEL   0x23

◆ P

#define P (   x,
  y 
)    do { displaylist[ptr++] = x; displaylist[ptr++] = y; } while (0)

Function Documentation

◆ bcm_accel_accumulate()

int bcm_accel_accumulate ( )

◆ bcm_accel_blit()

void bcm_accel_blit ( int  src_addr,
int  src_width,
int  src_height,
int  src_stride,
int  src_format,
int  dst_addr,
int  dst_width,
int  dst_height,
int  dst_stride,
int  src_x,
int  src_y,
int  width,
int  height,
int  dst_x,
int  dst_y,
int  dwidth,
int  dheight,
int  pal_addr,
int  flags 
)

◆ bcm_accel_close()

void bcm_accel_close ( void  )

◆ bcm_accel_fill()

void bcm_accel_fill ( int  dst_addr,
int  dst_width,
int  dst_height,
int  dst_stride,
int  x,
int  y,
int  width,
int  height,
unsigned long  color 
)

◆ bcm_accel_has_alphablending()

bool bcm_accel_has_alphablending ( )

◆ bcm_accel_init()

int bcm_accel_init ( void  )

◆ bcm_accel_sync()

int bcm_accel_sync ( )

◆ exec_list()

static int exec_list ( void  )
static

Variable Documentation

◆ accumulateoperations

bool accumulateoperations = false
static

◆ displaylist

unsigned int displaylist[1024]
static

◆ fb_fd

int fb_fd = -1
static

◆ ptr

int ptr = 0
static

◆ supportblendingflags

bool supportblendingflags = true
static