dvdnav.h File Reference

Go to the source code of this file.

Typedefs

typedef struct dvdnav_s dvdnav_t
typedef int32_t dvdnav_status_t

Functions

dvdnav_status_t dvdnav_open (dvdnav_t **dest, const char *path)
dvdnav_status_t dvdnav_close (dvdnav_t *self)
dvdnav_status_t dvdnav_reset (dvdnav_t *self)
dvdnav_status_t dvdnav_path (dvdnav_t *self, const char **path)
const char * dvdnav_err_to_string (dvdnav_t *self)
int64_t dvdnav_convert_time (dvd_time_t *time)
dvdnav_status_t dvdnav_set_region_mask (dvdnav_t *self, int32_t region_mask)
dvdnav_status_t dvdnav_get_region_mask (dvdnav_t *self, int32_t *region_mask)
dvdnav_status_t dvdnav_set_readahead_flag (dvdnav_t *self, int32_t read_ahead_flag)
dvdnav_status_t dvdnav_get_readahead_flag (dvdnav_t *self, int32_t *read_ahead_flag)
dvdnav_status_t dvdnav_set_PGC_positioning_flag (dvdnav_t *self, int32_t pgc_based_flag)
dvdnav_status_t dvdnav_get_PGC_positioning_flag (dvdnav_t *self, int32_t *pgc_based_flag)
dvdnav_status_t dvdnav_get_next_block (dvdnav_t *self, uint8_t *buf, int32_t *event, int32_t *len)
dvdnav_status_t dvdnav_get_next_cache_block (dvdnav_t *self, uint8_t **buf, int32_t *event, int32_t *len)
dvdnav_status_t dvdnav_free_cache_block (dvdnav_t *self, unsigned char *buf)
dvdnav_status_t dvdnav_still_skip (dvdnav_t *self)
dvdnav_status_t dvdnav_wait_skip (dvdnav_t *self)
uint32_t dvdnav_get_next_still_flag (dvdnav_t *self)
dvdnav_status_t dvdnav_stop (dvdnav_t *self)
dvdnav_status_t dvdnav_get_number_of_titles (dvdnav_t *self, int32_t *titles)
dvdnav_status_t dvdnav_get_number_of_parts (dvdnav_t *self, int32_t title, int32_t *parts)
dvdnav_status_t dvdnav_title_play (dvdnav_t *self, int32_t title)
dvdnav_status_t dvdnav_part_play (dvdnav_t *self, int32_t title, int32_t part)
dvdnav_status_t dvdnav_part_play_auto_stop (dvdnav_t *self, int32_t title, int32_t part, int32_t parts_to_play)
dvdnav_status_t dvdnav_time_play (dvdnav_t *self, int32_t title, uint64_t time)
dvdnav_status_t dvdnav_menu_supported (dvdnav_t *self, DVDMenuID_t menu)
dvdnav_status_t dvdnav_menu_call (dvdnav_t *self, DVDMenuID_t menu)
dvdnav_status_t dvdnav_current_title_info (dvdnav_t *self, int32_t *title, int32_t *part)
dvdnav_status_t dvdnav_get_position_in_title (dvdnav_t *self, uint32_t *pos, uint32_t *len)
dvdnav_status_t dvdnav_part_search (dvdnav_t *self, int32_t part)
dvdnav_status_t dvdnav_sector_search (dvdnav_t *self, uint64_t offset, int32_t origin)
dvdnav_status_t dvdnav_time_search (dvdnav_t *self, uint64_t time, uint search_to_nearest_cell)
int dvdnav_time_search_within_cell (dvdnav_t *self, int relative_time)
 Seeks the nearest VOBU to the relative_time within the cell relative_time is in seconds * 2.
dvdnav_status_t dvdnav_go_up (dvdnav_t *self)
dvdnav_status_t dvdnav_prev_pg_search (dvdnav_t *self)
dvdnav_status_t dvdnav_top_pg_search (dvdnav_t *self)
dvdnav_status_t dvdnav_next_pg_search (dvdnav_t *self)
dvdnav_status_t dvdnav_get_position (dvdnav_t *self, uint32_t *pos, uint32_t *len)
dvdnav_status_t dvdnav_get_current_highlight (dvdnav_t *self, int32_t *button)
pci_t * dvdnav_get_current_nav_pci (dvdnav_t *self)
dsi_t * dvdnav_get_current_nav_dsi (dvdnav_t *self)
dvdnav_status_t dvdnav_get_highlight_area (pci_t *nav_pci, int32_t button, int32_t mode, dvdnav_highlight_area_t *highlight)
dvdnav_status_t dvdnav_upper_button_select (dvdnav_t *self, pci_t *pci)
dvdnav_status_t dvdnav_lower_button_select (dvdnav_t *self, pci_t *pci)
dvdnav_status_t dvdnav_right_button_select (dvdnav_t *self, pci_t *pci)
dvdnav_status_t dvdnav_left_button_select (dvdnav_t *self, pci_t *pci)
dvdnav_status_t dvdnav_button_activate (dvdnav_t *self, pci_t *pci)
dvdnav_status_t dvdnav_button_select (dvdnav_t *self, pci_t *pci, int32_t button)
dvdnav_status_t dvdnav_button_select_and_activate (dvdnav_t *self, pci_t *pci, int32_t button)
dvdnav_status_t dvdnav_button_activate_cmd (dvdnav_t *self, int32_t button, vm_cmd_t *cmd)
dvdnav_status_t dvdnav_mouse_select (dvdnav_t *self, pci_t *pci, int32_t x, int32_t y)
dvdnav_status_t dvdnav_mouse_activate (dvdnav_t *self, pci_t *pci, int32_t x, int32_t y)
dvdnav_status_t dvdnav_menu_language_select (dvdnav_t *self, char *code)
dvdnav_status_t dvdnav_audio_language_select (dvdnav_t *self, char *code)
dvdnav_status_t dvdnav_spu_language_select (dvdnav_t *self, char *code)
dvdnav_status_t dvdnav_get_title_string (dvdnav_t *self, const char **title_str)
dvdnav_status_t dvdnav_get_serial_number (dvdnav_t *self, const char **serial_str)
uint8_t dvdnav_get_video_aspect (dvdnav_t *self)
uint8_t dvdnav_get_video_scale_permission (dvdnav_t *self)
uint8_t dvdnav_get_video_format (dvdnav_t *self)
uint16_t dvdnav_audio_stream_to_lang (dvdnav_t *self, uint8_t stream)
unsigned char dvdnav_audio_get_channels (dvdnav_t *self, uint8_t stream)
unsigned char dvdnav_audio_get_format (dvdnav_t *self, uint8_t stream)
int dvdnav_audio_get_stream_count (dvdnav_t *self)
int dvdnav_subp_get_stream_count (dvdnav_t *self)
uint16_t dvdnav_spu_stream_to_lang (dvdnav_t *self, uint8_t stream)
int8_t dvdnav_get_audio_logical_stream (dvdnav_t *self, uint8_t audio_num)
int8_t dvdnav_get_spu_logical_stream (dvdnav_t *self, uint8_t subp_num)
int8_t dvdnav_get_active_audio_stream (dvdnav_t *self)
int8_t dvdnav_get_active_spu_stream (dvdnav_t *self)
dvdnav_status_t dvdnav_angle_change (dvdnav_t *self, int32_t angle)
dvdnav_status_t dvdnav_get_angle_info (dvdnav_t *self, int32_t *current_angle, int32_t *number_of_angles)
int8_t dvdnav_is_domain_fp (dvdnav_t *self)
int8_t dvdnav_is_domain_vmgm (dvdnav_t *self)
int8_t dvdnav_is_domain_vtsm (dvdnav_t *self)
int8_t dvdnav_is_domain_vts (dvdnav_t *self)


Typedef Documentation

typedef struct dvdnav_s dvdnav_t

Definition at line 60 of file dvdnav.h.

Definition at line 63 of file dvdnav.h.


Function Documentation

dvdnav_status_t dvdnav_open ( dvdnav_t **  dest,
const char *  path 
)

Definition at line 67 of file dvdnav.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_close ( dvdnav_t self  ) 

Definition at line 120 of file dvdnav.c.

Referenced by DVDRingBufferPriv::CloseDVD().

dvdnav_status_t dvdnav_reset ( dvdnav_t self  ) 

Definition at line 156 of file dvdnav.c.

dvdnav_status_t dvdnav_path ( dvdnav_t self,
const char **  path 
)

Definition at line 187 of file dvdnav.c.

const char* dvdnav_err_to_string ( dvdnav_t self  ) 

Definition at line 199 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int64_t dvdnav_convert_time ( dvd_time_t *  time  ) 

dvdnav_status_t dvdnav_set_region_mask ( dvdnav_t self,
int32_t  region_mask 
)

Definition at line 40 of file settings.c.

dvdnav_status_t dvdnav_get_region_mask ( dvdnav_t self,
int32_t region_mask 
)

Definition at line 30 of file settings.c.

dvdnav_status_t dvdnav_set_readahead_flag ( dvdnav_t self,
int32_t  read_ahead_flag 
)

Definition at line 52 of file settings.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_get_readahead_flag ( dvdnav_t self,
int32_t read_ahead_flag 
)

Definition at line 62 of file settings.c.

dvdnav_status_t dvdnav_set_PGC_positioning_flag ( dvdnav_t self,
int32_t  pgc_based_flag 
)

Definition at line 101 of file settings.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_get_PGC_positioning_flag ( dvdnav_t self,
int32_t pgc_based_flag 
)

Definition at line 111 of file settings.c.

dvdnav_status_t dvdnav_get_next_block ( dvdnav_t self,
uint8_t *  buf,
int32_t event,
int32_t len 
)

Definition at line 379 of file dvdnav.c.

dvdnav_status_t dvdnav_get_next_cache_block ( dvdnav_t self,
uint8_t **  buf,
int32_t event,
int32_t len 
)

Definition at line 394 of file dvdnav.c.

Referenced by dvdnav_get_next_block(), and DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_free_cache_block ( dvdnav_t self,
unsigned char *  buf 
)

Definition at line 323 of file read_cache.c.

Referenced by dvdnav_get_next_block(), and DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_still_skip ( dvdnav_t self  ) 

Definition at line 30 of file navigation.c.

Referenced by DVDRingBufferPriv::SkipStillFrame().

dvdnav_status_t dvdnav_wait_skip ( dvdnav_t self  ) 

Definition at line 44 of file navigation.c.

Referenced by DVDRingBufferPriv::WaitSkip().

uint32_t dvdnav_get_next_still_flag ( dvdnav_t self  ) 

Definition at line 1202 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_stop ( dvdnav_t self  ) 

Definition at line 205 of file navigation.c.

dvdnav_status_t dvdnav_get_number_of_titles ( dvdnav_t self,
int32_t titles 
)

Definition at line 56 of file navigation.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_get_number_of_parts ( dvdnav_t self,
int32_t  title,
int32_t parts 
)

Definition at line 71 of file navigation.c.

Referenced by DVDRingBufferPriv::OpenFile(), and DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_title_play ( dvdnav_t self,
int32_t  title 
)

Definition at line 134 of file navigation.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_part_play ( dvdnav_t self,
int32_t  title,
int32_t  part 
)

dvdnav_status_t dvdnav_part_play_auto_stop ( dvdnav_t self,
int32_t  title,
int32_t  part,
int32_t  parts_to_play 
)

Definition at line 185 of file navigation.c.

dvdnav_status_t dvdnav_time_play ( dvdnav_t self,
int32_t  title,
uint64_t  time 
)

Definition at line 193 of file navigation.c.

dvdnav_status_t dvdnav_menu_supported ( dvdnav_t self,
DVDMenuID_t  menu 
)

Definition at line 451 of file searching.c.

Referenced by DVDRingBufferPriv::GoToMenu().

dvdnav_status_t dvdnav_menu_call ( dvdnav_t self,
DVDMenuID_t  menu 
)

Definition at line 492 of file searching.c.

Referenced by DVDRingBufferPriv::GoToMenu().

dvdnav_status_t dvdnav_current_title_info ( dvdnav_t self,
int32_t title,
int32_t part 
)

dvdnav_status_t dvdnav_get_position_in_title ( dvdnav_t self,
uint32_t pos,
uint32_t len 
)

Definition at line 606 of file searching.c.

dvdnav_status_t dvdnav_part_search ( dvdnav_t self,
int32_t  part 
)

Definition at line 331 of file searching.c.

dvdnav_status_t dvdnav_sector_search ( dvdnav_t self,
uint64_t  offset,
int32_t  origin 
)

Definition at line 212 of file searching.c.

dvdnav_status_t dvdnav_time_search ( dvdnav_t self,
uint64_t  time,
uint  search_to_nearest_cell 
)

Definition at line 123 of file searching.c.

Referenced by DVDRingBufferPriv::Seek().

int dvdnav_time_search_within_cell ( dvdnav_t this,
int  relative_time 
)

Seeks the nearest VOBU to the relative_time within the cell relative_time is in seconds * 2.

If you want 5 seconds ahead relative time = +10. If relative_time is negative, then look backwards within the cell. max seek interval is 60seconds. for some reason dvdnav seems to return an error when seeking above 60 seconds on some dvds.

Definition at line 651 of file searching.c.

Referenced by DVDRingBufferPriv::safe_read(), and DVDRingBufferPriv::Seek().

dvdnav_status_t dvdnav_go_up ( dvdnav_t self  ) 

Definition at line 217 of file navigation.c.

dvdnav_status_t dvdnav_prev_pg_search ( dvdnav_t self  ) 

Definition at line 339 of file searching.c.

Referenced by DVDRingBufferPriv::GoToPreviousProgram().

dvdnav_status_t dvdnav_top_pg_search ( dvdnav_t self  ) 

Definition at line 372 of file searching.c.

dvdnav_status_t dvdnav_next_pg_search ( dvdnav_t self  ) 

Definition at line 405 of file searching.c.

Referenced by DVDRingBufferPriv::GoToNextProgram().

dvdnav_status_t dvdnav_get_position ( dvdnav_t self,
uint32_t pos,
uint32_t len 
)

dvdnav_status_t dvdnav_get_current_highlight ( dvdnav_t self,
int32_t button 
)

pci_t* dvdnav_get_current_nav_pci ( dvdnav_t self  ) 

dsi_t* dvdnav_get_current_nav_dsi ( dvdnav_t self  ) 

Definition at line 1197 of file dvdnav.c.

Referenced by dvdnav_time_search_within_cell(), and DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_get_highlight_area ( pci_t *  nav_pci,
int32_t  button,
int32_t  mode,
dvdnav_highlight_area_t highlight 
)

Definition at line 290 of file highlight.c.

Referenced by DVDRingBufferPriv::DVDButtonUpdate().

dvdnav_status_t dvdnav_upper_button_select ( dvdnav_t self,
pci_t *  pci 
)

Definition at line 250 of file highlight.c.

Referenced by DVDRingBufferPriv::MoveButtonUp().

dvdnav_status_t dvdnav_lower_button_select ( dvdnav_t self,
pci_t *  pci 
)

Definition at line 260 of file highlight.c.

Referenced by DVDRingBufferPriv::MoveButtonDown().

dvdnav_status_t dvdnav_right_button_select ( dvdnav_t self,
pci_t *  pci 
)

Definition at line 270 of file highlight.c.

Referenced by DVDRingBufferPriv::MoveButtonRight().

dvdnav_status_t dvdnav_left_button_select ( dvdnav_t self,
pci_t *  pci 
)

Definition at line 280 of file highlight.c.

Referenced by DVDRingBufferPriv::MoveButtonLeft().

dvdnav_status_t dvdnav_button_activate ( dvdnav_t self,
pci_t *  pci 
)

dvdnav_status_t dvdnav_button_select ( dvdnav_t self,
pci_t *  pci,
int32_t  button 
)

dvdnav_status_t dvdnav_button_select_and_activate ( dvdnav_t self,
pci_t *  pci,
int32_t  button 
)

Definition at line 474 of file highlight.c.

dvdnav_status_t dvdnav_button_activate_cmd ( dvdnav_t self,
int32_t  button,
vm_cmd_t *  cmd 
)

Definition at line 417 of file highlight.c.

dvdnav_status_t dvdnav_mouse_select ( dvdnav_t self,
pci_t *  pci,
int32_t  x,
int32_t  y 
)

Definition at line 482 of file highlight.c.

Referenced by dvdnav_mouse_activate().

dvdnav_status_t dvdnav_mouse_activate ( dvdnav_t self,
pci_t *  pci,
int32_t  x,
int32_t  y 
)

Definition at line 533 of file highlight.c.

dvdnav_status_t dvdnav_menu_language_select ( dvdnav_t self,
char *  code 
)

Definition at line 89 of file settings.c.

dvdnav_status_t dvdnav_audio_language_select ( dvdnav_t self,
char *  code 
)

Definition at line 93 of file settings.c.

dvdnav_status_t dvdnav_spu_language_select ( dvdnav_t self,
char *  code 
)

Definition at line 97 of file settings.c.

dvdnav_status_t dvdnav_get_title_string ( dvdnav_t self,
const char **  title_str 
)

Definition at line 814 of file dvdnav.c.

Referenced by DVDRingBufferPriv::OpenFile().

dvdnav_status_t dvdnav_get_serial_number ( dvdnav_t self,
const char **  serial_str 
)

Definition at line 825 of file dvdnav.c.

Referenced by DVDRingBufferPriv::OpenFile().

uint8_t dvdnav_get_video_aspect ( dvdnav_t self  ) 

Definition at line 836 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

uint8_t dvdnav_get_video_scale_permission ( dvdnav_t self  ) 

Definition at line 855 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

uint8_t dvdnav_get_video_format ( dvdnav_t self  ) 

Definition at line 874 of file dvdnav.c.

Referenced by DVDRingBufferPriv::GetFrameRate().

uint16_t dvdnav_audio_stream_to_lang ( dvdnav_t self,
uint8_t  stream 
)

Definition at line 893 of file dvdnav.c.

Referenced by DVDRingBufferPriv::GetAudioLanguage().

unsigned char dvdnav_audio_get_channels ( dvdnav_t self,
uint8_t  stream 
)

Definition at line 915 of file dvdnav.c.

Referenced by DVDRingBufferPriv::GetNumAudioChannels().

unsigned char dvdnav_audio_get_format ( dvdnav_t self,
uint8_t  stream 
)

Definition at line 939 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int dvdnav_audio_get_stream_count ( dvdnav_t self  ) 

Definition at line 982 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int dvdnav_subp_get_stream_count ( dvdnav_t self  ) 

Definition at line 961 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

uint16_t dvdnav_spu_stream_to_lang ( dvdnav_t self,
uint8_t  stream 
)

Definition at line 1000 of file dvdnav.c.

Referenced by DVDRingBufferPriv::GetSubtitleLanguage().

int8_t dvdnav_get_audio_logical_stream ( dvdnav_t self,
uint8_t  audio_num 
)

Definition at line 1022 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int8_t dvdnav_get_spu_logical_stream ( dvdnav_t self,
uint8_t  subp_num 
)

Definition at line 1046 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int8_t dvdnav_get_active_audio_stream ( dvdnav_t self  ) 

Definition at line 1070 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

int8_t dvdnav_get_active_spu_stream ( dvdnav_t self  ) 

Definition at line 1094 of file dvdnav.c.

Referenced by DVDRingBufferPriv::safe_read().

dvdnav_status_t dvdnav_angle_change ( dvdnav_t self,
int32_t  angle 
)

Definition at line 1155 of file dvdnav.c.

Referenced by dvdnav_get_vobu().

dvdnav_status_t dvdnav_get_angle_info ( dvdnav_t self,
int32_t current_angle,
int32_t number_of_angles 
)

Definition at line 1178 of file dvdnav.c.

int8_t dvdnav_is_domain_fp ( dvdnav_t self  ) 

Definition at line 1138 of file dvdnav.c.

int8_t dvdnav_is_domain_vmgm ( dvdnav_t self  ) 

Definition at line 1142 of file dvdnav.c.

int8_t dvdnav_is_domain_vtsm ( dvdnav_t self  ) 

Definition at line 1146 of file dvdnav.c.

int8_t dvdnav_is_domain_vts ( dvdnav_t self  ) 


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5