Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
vm.h File Reference
#include "remap.h"
#include "dvdnav_internal.h"

Classes

struct  dvd_state_t
 
struct  vm_position_s
 
struct  vm_t
 

Macros

#define HOP_SEEK   0x1000
 
#define AST_REG   registers.SPRM[1]
 
#define SPST_REG   registers.SPRM[2]
 
#define AGL_REG   registers.SPRM[3]
 
#define TTN_REG   registers.SPRM[4]
 
#define VTS_TTN_REG   registers.SPRM[5]
 
#define TT_PGCN_REG   registers.SPRM[6]
 
#define PTTN_REG   registers.SPRM[7]
 
#define HL_BTNN_REG   registers.SPRM[8]
 
#define PTL_REG   registers.SPRM[13]
 

Typedefs

typedef struct vm_position_s vm_position_t
 

Enumerations

enum  domain_t { FP_DOMAIN = 1 , VTS_DOMAIN = 2 , VMGM_DOMAIN = 4 , VTSM_DOMAIN = 8 }
 

Functions

vm_tvm_new_vm (void)
 
void vm_free_vm (vm_t *vm)
 
ifo_handle_tvm_get_vmgi (vm_t *vm)
 
ifo_handle_tvm_get_vtsi (vm_t *vm)
 
dvd_reader_tvm_get_dvd_reader (vm_t *vm)
 
int vm_start (vm_t *vm)
 
void vm_stop (vm_t *vm)
 
int vm_reset (vm_t *vm, const char *dvdroot, void *stream, dvdnav_stream_cb *stream_cb)
 
vm_tvm_new_copy (vm_t *vm)
 
void vm_merge (vm_t *target, vm_t *source)
 
void vm_free_copy (vm_t *vm)
 
void vm_position_get (vm_t *vm, vm_position_t *position)
 
void vm_get_next_cell (vm_t *vm)
 
int vm_jump_pg (vm_t *vm, int pg)
 
int vm_jump_cell_block (vm_t *vm, int cell, int block)
 
int vm_jump_title_part (vm_t *vm, int title, int part)
 
int vm_jump_title_program (vm_t *vm, int title, int pgcn, int pgn)
 
int vm_jump_top_pg (vm_t *vm)
 
int vm_jump_next_pg (vm_t *vm)
 
int vm_jump_prev_pg (vm_t *vm)
 
int vm_jump_up (vm_t *vm)
 
int vm_jump_menu (vm_t *vm, DVDMenuID_t menuid)
 
int vm_jump_resume (vm_t *vm)
 
int vm_exec_cmd (vm_t *vm, vm_cmd_t *cmd)
 
int vm_get_current_menu (vm_t *vm, int *menuid)
 
int vm_get_current_title_part (vm_t *vm, int *title_result, int *part_result)
 
int vm_get_audio_stream (vm_t *vm, int audioN)
 
int vm_get_subp_stream (vm_t *vm, int subpN, int mode)
 
int vm_get_audio_active_stream (vm_t *vm)
 
int vm_get_subp_active_stream (vm_t *vm, int mode)
 
void vm_get_angle_info (vm_t *vm, int *current, int *num_avail)
 
void vm_get_video_res (vm_t *vm, int *width, int *height)
 
int vm_get_video_aspect (vm_t *vm)
 
int vm_get_video_scale_permission (vm_t *vm)
 
video_attr_t vm_get_video_attr (vm_t *vm)
 
audio_attr_t vm_get_audio_attr (vm_t *vm, int streamN)
 
subp_attr_t vm_get_subp_attr (vm_t *vm, int streamN)
 
ifo_handle_tvm_get_title_ifo (vm_t *vm, uint32_t title)
 
void vm_ifo_close (ifo_handle_t *ifo)
 
int vm_get_state (vm_t *vm, dvd_state_t *save_state)
 
int vm_set_state (vm_t *vm, dvd_state_t *save_state)
 
vm_tdvdnav_get_vm (dvdnav_t *self)
 

Macro Definition Documentation

◆ AGL_REG

#define AGL_REG   registers.SPRM[3]

◆ AST_REG

#define AST_REG   registers.SPRM[1]

◆ HL_BTNN_REG

#define HL_BTNN_REG   registers.SPRM[8]

◆ HOP_SEEK

#define HOP_SEEK   0x1000

◆ PTL_REG

#define PTL_REG   registers.SPRM[13]

◆ PTTN_REG

#define PTTN_REG   registers.SPRM[7]

◆ SPST_REG

#define SPST_REG   registers.SPRM[2]

◆ TT_PGCN_REG

#define TT_PGCN_REG   registers.SPRM[6]

◆ TTN_REG

#define TTN_REG   registers.SPRM[4]

◆ VTS_TTN_REG

#define VTS_TTN_REG   registers.SPRM[5]

Typedef Documentation

◆ vm_position_t

typedef struct vm_position_s vm_position_t

Enumeration Type Documentation

◆ domain_t

enum domain_t
Enumerator
FP_DOMAIN 
VTS_DOMAIN 
VMGM_DOMAIN 
VTSM_DOMAIN 

Function Documentation

◆ dvdnav_get_vm()

vm_t * dvdnav_get_vm ( dvdnav_t self)

◆ vm_exec_cmd()

int vm_exec_cmd ( vm_t vm,
vm_cmd_t *  cmd 
)

◆ vm_free_copy()

void vm_free_copy ( vm_t vm)

◆ vm_free_vm()

void vm_free_vm ( vm_t vm)

◆ vm_get_angle_info()

void vm_get_angle_info ( vm_t vm,
int *  current,
int *  num_avail 
)

◆ vm_get_audio_active_stream()

int vm_get_audio_active_stream ( vm_t vm)

◆ vm_get_audio_attr()

audio_attr_t vm_get_audio_attr ( vm_t vm,
int  streamN 
)

◆ vm_get_audio_stream()

int vm_get_audio_stream ( vm_t vm,
int  audioN 
)

◆ vm_get_current_menu()

int vm_get_current_menu ( vm_t vm,
int *  menuid 
)

◆ vm_get_current_title_part()

int vm_get_current_title_part ( vm_t vm,
int *  title_result,
int *  part_result 
)

◆ vm_get_dvd_reader()

dvd_reader_t * vm_get_dvd_reader ( vm_t vm)

◆ vm_get_next_cell()

void vm_get_next_cell ( vm_t vm)

◆ vm_get_state()

int vm_get_state ( vm_t vm,
dvd_state_t save_state 
)

◆ vm_get_subp_active_stream()

int vm_get_subp_active_stream ( vm_t vm,
int  mode 
)

◆ vm_get_subp_attr()

subp_attr_t vm_get_subp_attr ( vm_t vm,
int  streamN 
)

◆ vm_get_subp_stream()

int vm_get_subp_stream ( vm_t vm,
int  subpN,
int  mode 
)

◆ vm_get_title_ifo()

ifo_handle_t * vm_get_title_ifo ( vm_t vm,
uint32_t  title 
)

◆ vm_get_video_aspect()

int vm_get_video_aspect ( vm_t vm)

◆ vm_get_video_attr()

video_attr_t vm_get_video_attr ( vm_t vm)

◆ vm_get_video_res()

void vm_get_video_res ( vm_t vm,
int *  width,
int *  height 
)

◆ vm_get_video_scale_permission()

int vm_get_video_scale_permission ( vm_t vm)

◆ vm_get_vmgi()

ifo_handle_t * vm_get_vmgi ( vm_t vm)

◆ vm_get_vtsi()

ifo_handle_t * vm_get_vtsi ( vm_t vm)

◆ vm_ifo_close()

void vm_ifo_close ( ifo_handle_t ifo)

◆ vm_jump_cell_block()

int vm_jump_cell_block ( vm_t vm,
int  cell,
int  block 
)

◆ vm_jump_menu()

int vm_jump_menu ( vm_t vm,
DVDMenuID_t  menuid 
)

◆ vm_jump_next_pg()

int vm_jump_next_pg ( vm_t vm)

◆ vm_jump_pg()

int vm_jump_pg ( vm_t vm,
int  pg 
)

◆ vm_jump_prev_pg()

int vm_jump_prev_pg ( vm_t vm)

◆ vm_jump_resume()

int vm_jump_resume ( vm_t vm)

◆ vm_jump_title_part()

int vm_jump_title_part ( vm_t vm,
int  title,
int  part 
)

◆ vm_jump_title_program()

int vm_jump_title_program ( vm_t vm,
int  title,
int  pgcn,
int  pgn 
)

◆ vm_jump_top_pg()

int vm_jump_top_pg ( vm_t vm)

◆ vm_jump_up()

int vm_jump_up ( vm_t vm)

◆ vm_merge()

void vm_merge ( vm_t target,
vm_t source 
)

◆ vm_new_copy()

vm_t * vm_new_copy ( vm_t vm)

◆ vm_new_vm()

vm_t * vm_new_vm ( void  )

◆ vm_position_get()

void vm_position_get ( vm_t vm,
vm_position_t position 
)

◆ vm_reset()

int vm_reset ( vm_t vm,
const char *  dvdroot,
void stream,
dvdnav_stream_cb stream_cb 
)

◆ vm_set_state()

int vm_set_state ( vm_t vm,
dvd_state_t save_state 
)

◆ vm_start()

int vm_start ( vm_t vm)

◆ vm_stop()

void vm_stop ( vm_t vm)