cursor.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <linux/fb.h>
#include <string.h>
#include "mvp_osd.h"
#include "osd.h"

Go to the source code of this file.

Defines

#define PRINTF(x...)

Functions

static int cursor_move (osd_surface_t *surface, int x, int y)
static int cursor_display_surface (osd_surface_t *surface)
static int cursor_add_color (osd_surface_t *surface, unsigned int c)
static int find_color (osd_surface_t *surface, unsigned int c)
static void draw_pixel (osd_surface_t *surface, int x, int y, unsigned char pixel)
static int cursor_draw_pixel (osd_surface_t *surface, int x, int y, unsigned int c)
static int cursor_fill_rect (osd_surface_t *surface, int x, int y, int width, int height, unsigned int c)
static int cursor_destroy_surface (osd_surface_t *surface)
void cursor_init (void)
osd_surface_tcursor_create (int w, int h, unsigned long color)

Variables

static osd_func_t fp


Define Documentation

#define PRINTF x...   ) 
 

Definition at line 36 of file cursor.c.


Function Documentation

static int cursor_add_color osd_surface_t surface,
unsigned int  c
[static]
 

Definition at line 66 of file cursor.c.

References attr, c2rgba(), cursor_data_t::colors, osd_surface_s::cursor, CURSOR_MAX_COLORS, osd_surface_s::data, cursor_data_t::ncolors, and surface.

Referenced by cursor_create().

osd_surface_t* cursor_create int  w,
int  h,
unsigned long  color
 

Definition at line 214 of file cursor.c.

References all, cursor_add_color(), fd, fp, full_height, full_width, GFX_FB_MAP, GFX_FB_SFC_ALLOC, gfx_init, OSD_CURSOR, osd_fill_rect(), OSD_MAX_SURFACES, PRINTF, stbgfx, and surface.

Referenced by osd_create_surface().

static int cursor_destroy_surface osd_surface_t surface  )  [static]
 

Definition at line 185 of file cursor.c.

References cursor_data_t::base, osd_surface_s::cursor, osd_surface_s::data, osd_surface_s::fd, fd, GFX_FB_SFC_FREE, stbgfx_sfc_t::handle, stbgfx_map_t::map, cursor_data_t::map, cursor_data_t::sfc, stbgfx_map_item_t::size, and surface.

static int cursor_display_surface osd_surface_t surface  )  [static]
 

Definition at line 51 of file cursor.c.

References osd_surface_s::cursor, osd_surface_s::data, osd_surface_s::fd, fd, GFX_FB_ATTACH, stbgfx_sfc_t::handle, cursor_data_t::sfc, and surface.

static int cursor_draw_pixel osd_surface_t surface,
int  x,
int  y,
unsigned int  c
[static]
 

Definition at line 151 of file cursor.c.

References draw_pixel(), find_color(), and surface.

static int cursor_fill_rect osd_surface_t surface,
int  x,
int  y,
int  width,
int  height,
unsigned int  c
[static]
 

Definition at line 165 of file cursor.c.

References draw_pixel(), find_color(), and surface.

void cursor_init void   ) 
 

Definition at line 209 of file cursor.c.

static int cursor_move osd_surface_t surface,
int  x,
int  y
[static]
 

Definition at line 40 of file cursor.c.

References osd_surface_s::fd, GFX_FB_OSD_CUR_MOVE_1, and surface.

static void draw_pixel osd_surface_t surface,
int  x,
int  y,
unsigned char  pixel
[inline, static]
 

Definition at line 133 of file cursor.c.

References cursor_data_t::base, osd_surface_s::cursor, osd_surface_s::data, surface, and osd_surface_s::width.

Referenced by cursor_draw_pixel(), cursor_fill_rect(), fb_draw_pixel(), and fb_fill_rect().

static int find_color osd_surface_t surface,
unsigned int  c
[static]
 

Definition at line 114 of file cursor.c.

References c2rgba(), cursor_data_t::colors, osd_surface_s::cursor, osd_surface_s::data, cursor_data_t::ncolors, and surface.


Variable Documentation

osd_func_t fp [static]
 

Initial value:

 {
        .move = cursor_move,
        .display = cursor_display_surface,
        .destroy = cursor_destroy_surface,
        .draw_pixel = cursor_draw_pixel,
        .palette_add_color = cursor_add_color,
        .fill_rect = cursor_fill_rect,
}

Definition at line 199 of file cursor.c.

Referenced by cmyth_livetv_chain_add_url(), cmyth_livetv_chain_seek(), cursor_create(), dump_bitmapping(), dump_buffer(), dump_group_end(), dump_group_start(), dump_mapping(), dump_set_file(), dump_string(), dump_time(), dump_u16(), dump_u32(), dump_u64(), dump_u8(), fb_create(), mvp_config_radio(), mvp_config_script(), mvp_load_radio_playlist(), vncDecryptPasswdFromFile(), vncEncryptAndStorePasswd(), and www_mvpmc_start().


Generated on Wed Sep 8 03:13:22 2010 for mvpmc by  doxygen 1.4.6