graphics_controller.c File Reference

Go to the source code of this file.

Classes

struct  BOG_DATA
struct  graphics_controller_s

Enumerations

enum  { BTN_NORMAL, BTN_SELECTED, BTN_ACTIVATED }

Functions

static BD_PG_OBJECT_find_object (PG_DISPLAY_SET *s, unsigned object_id)
static BD_PG_PALETTE_find_palette (PG_DISPLAY_SET *s, unsigned palette_id)
static BD_IG_BUTTON_find_button_bog (BD_IG_BOG *bog, unsigned button_id)
static BD_IG_BUTTON_find_button_page (BD_IG_PAGE *page, unsigned button_id, unsigned *bog_idx)
static BD_IG_PAGE_find_page (BD_IG_INTERACTIVE_COMPOSITION *c, unsigned page_id)
static BD_PG_OBJECT_find_object_for_button (PG_DISPLAY_SET *s, BD_IG_BUTTON *button, int state, BOG_DATA *bog_data)
static int _is_button_enabled (GRAPHICS_CONTROLLER *gc, BD_IG_PAGE *page, unsigned button_id)
static uint16_t _find_selected_button_id (GRAPHICS_CONTROLLER *gc)
static int _save_page_state (GRAPHICS_CONTROLLER *gc)
static int _restore_page_state (GRAPHICS_CONTROLLER *gc)
static void _reset_page_state (GRAPHICS_CONTROLLER *gc)
static void _clear_osd_area (GRAPHICS_CONTROLLER *gc, int plane, uint16_t x, uint16_t y, uint16_t w, uint16_t h)
static void _clear_osd (GRAPHICS_CONTROLLER *gc, int plane)
static void _clear_bog_area (GRAPHICS_CONTROLLER *gc, BOG_DATA *bog_data)
static void _select_button (GRAPHICS_CONTROLLER *gc, uint32_t button_id)
static void _select_page (GRAPHICS_CONTROLLER *gc, uint16_t page_id)
static void _gc_reset (GRAPHICS_CONTROLLER *gc)
static void _process_psr_event (void *handle, BD_PSR_EVENT *ev)
GRAPHICS_CONTROLLERgc_init (BD_REGISTERS *regs, void *handle, gc_overlay_proc_f func)
void gc_free (GRAPHICS_CONTROLLER **p)
int gc_decode_ts (GRAPHICS_CONTROLLER *gc, uint16_t pid, uint8_t *block, unsigned num_blocks, int64_t stc)
 Decode data from MPEG-TS input stream.
static void _render_button (GRAPHICS_CONTROLLER *gc, BD_IG_BUTTON *button, BD_PG_PALETTE *palette, int state, BOG_DATA *bog_data)
static void _render_page (GRAPHICS_CONTROLLER *gc, unsigned activated_button_id, GC_NAV_CMDS *cmds)
static int _user_input (GRAPHICS_CONTROLLER *gc, bd_vk_key_e key, GC_NAV_CMDS *cmds)
static void _set_button_page (GRAPHICS_CONTROLLER *gc, uint32_t param)
static void _enable_button (GRAPHICS_CONTROLLER *gc, uint32_t button_id, unsigned enable)
static void _update_selected_button (GRAPHICS_CONTROLLER *gc)
static int _mouse_move (GRAPHICS_CONTROLLER *gc, unsigned x, unsigned y, GC_NAV_CMDS *cmds)
int gc_run (GRAPHICS_CONTROLLER *gc, gc_ctrl_e ctrl, uint32_t param, GC_NAV_CMDS *cmds)

Enumeration Type Documentation

anonymous enum
Enumerator:
BTN_NORMAL 
BTN_SELECTED 
BTN_ACTIVATED 

Definition at line 149 of file graphics_controller.c.


Function Documentation

static BD_PG_OBJECT* _find_object ( PG_DISPLAY_SET s,
unsigned  object_id 
) [static]

Definition at line 80 of file graphics_controller.c.

Referenced by _find_object_for_button().

static BD_PG_PALETTE* _find_palette ( PG_DISPLAY_SET s,
unsigned  palette_id 
) [static]

Definition at line 93 of file graphics_controller.c.

Referenced by _render_page().

static BD_IG_BUTTON* _find_button_bog ( BD_IG_BOG bog,
unsigned  button_id 
) [static]
static BD_IG_BUTTON* _find_button_page ( BD_IG_PAGE page,
unsigned  button_id,
unsigned *  bog_idx 
) [static]
static BD_IG_PAGE* _find_page ( BD_IG_INTERACTIVE_COMPOSITION c,
unsigned  page_id 
) [static]
static BD_PG_OBJECT* _find_object_for_button ( PG_DISPLAY_SET s,
BD_IG_BUTTON button,
int  state,
BOG_DATA bog_data 
) [static]

Definition at line 151 of file graphics_controller.c.

Referenced by _mouse_move(), and _render_button().

static int _is_button_enabled ( GRAPHICS_CONTROLLER gc,
BD_IG_PAGE page,
unsigned  button_id 
) [static]

Definition at line 208 of file graphics_controller.c.

Referenced by _find_selected_button_id().

static uint16_t _find_selected_button_id ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 219 of file graphics_controller.c.

Referenced by _select_page(), and _update_selected_button().

static int _save_page_state ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 273 of file graphics_controller.c.

Referenced by _process_psr_event().

static int _restore_page_state ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 305 of file graphics_controller.c.

Referenced by _process_psr_event().

static void _reset_page_state ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 320 of file graphics_controller.c.

Referenced by _select_page().

static void _clear_osd_area ( GRAPHICS_CONTROLLER gc,
int  plane,
uint16_t  x,
uint16_t  y,
uint16_t  w,
uint16_t  h 
) [static]

Definition at line 345 of file graphics_controller.c.

Referenced by _clear_bog_area(), and _clear_osd().

static void _clear_osd ( GRAPHICS_CONTROLLER gc,
int  plane 
) [static]

Definition at line 365 of file graphics_controller.c.

Referenced by _gc_reset(), _render_page(), and _select_page().

static void _clear_bog_area ( GRAPHICS_CONTROLLER gc,
BOG_DATA bog_data 
) [static]

Definition at line 376 of file graphics_controller.c.

Referenced by _render_button().

static void _select_button ( GRAPHICS_CONTROLLER gc,
uint32_t  button_id 
) [static]
static void _select_page ( GRAPHICS_CONTROLLER gc,
uint16_t  page_id 
) [static]

Definition at line 391 of file graphics_controller.c.

Referenced by _set_button_page(), gc_decode_ts(), and gc_run().

static void _gc_reset ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 401 of file graphics_controller.c.

Referenced by gc_free(), and gc_run().

static void _process_psr_event ( void *  handle,
BD_PSR_EVENT ev 
) [static]

Definition at line 420 of file graphics_controller.c.

Referenced by gc_free(), and gc_init().

GRAPHICS_CONTROLLER* gc_init ( BD_REGISTERS regs,
void *  handle,
gc_overlay_proc_f  func 
)

Definition at line 459 of file graphics_controller.c.

Referenced by bd_register_overlay_proc().

void gc_free ( GRAPHICS_CONTROLLER **  p  ) 

Definition at line 475 of file graphics_controller.c.

Referenced by bd_close(), and bd_register_overlay_proc().

int gc_decode_ts ( GRAPHICS_CONTROLLER p,
uint16_t  pid,
uint8_t block,
unsigned  num_blocks,
int64_t  stc 
)

Decode data from MPEG-TS input stream.

Parameters:
p GRAPHICS_CONTROLLER object
pid mpeg-ts PID to decode (HDMV IG/PG stream)
block mpeg-ts data
num_blocks number of aligned units in data
stc current playback time
Returns:
<0 on error, 0 when not complete, >0 when complete

Definition at line 499 of file graphics_controller.c.

Referenced by _preload_ig_subpath().

static void _render_button ( GRAPHICS_CONTROLLER gc,
BD_IG_BUTTON button,
BD_PG_PALETTE palette,
int  state,
BOG_DATA bog_data 
) [static]

Definition at line 560 of file graphics_controller.c.

Referenced by _render_page().

static void _render_page ( GRAPHICS_CONTROLLER gc,
unsigned  activated_button_id,
GC_NAV_CMDS cmds 
) [static]

Definition at line 592 of file graphics_controller.c.

Referenced by _mouse_move(), _set_button_page(), _user_input(), and gc_run().

static int _user_input ( GRAPHICS_CONTROLLER gc,
bd_vk_key_e  key,
GC_NAV_CMDS cmds 
) [static]

Definition at line 665 of file graphics_controller.c.

Referenced by gc_run().

static void _set_button_page ( GRAPHICS_CONTROLLER gc,
uint32_t  param 
) [static]

Definition at line 766 of file graphics_controller.c.

Referenced by gc_run().

static void _enable_button ( GRAPHICS_CONTROLLER gc,
uint32_t  button_id,
unsigned  enable 
) [static]

Definition at line 845 of file graphics_controller.c.

Referenced by gc_run().

static void _update_selected_button ( GRAPHICS_CONTROLLER gc  )  [static]

Definition at line 888 of file graphics_controller.c.

Referenced by gc_run().

static int _mouse_move ( GRAPHICS_CONTROLLER gc,
unsigned  x,
unsigned  y,
GC_NAV_CMDS cmds 
) [static]

Definition at line 909 of file graphics_controller.c.

Referenced by gc_run().

int gc_run ( GRAPHICS_CONTROLLER gc,
gc_ctrl_e  ctrl,
uint32_t  param,
GC_NAV_CMDS cmds 
)

Definition at line 972 of file graphics_controller.c.

Referenced by _close_playlist(), and _run_gc().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:47 2012 for MythTV by  doxygen 1.6.3