Go to the source code of this file.
| typedef struct bd_stream_info BLURAY_STREAM_INFO |
| typedef struct bd_clip BLURAY_CLIP_INFO |
| typedef struct bd_chapter BLURAY_TITLE_CHAPTER |
| typedef struct bd_title_info BLURAY_TITLE_INFO |
| typedef void(* bd_overlay_proc_f)(void *, const struct bd_overlay_s *const) |
| enum bd_stream_type_e |
| enum bd_video_format_e |
| enum bd_video_rate_e |
| enum bd_video_aspect_e |
| enum bd_audio_format_e |
| enum bd_audio_rate_e |
| enum bd_char_code_e |
| enum bd_still_mode_e |
| enum bd_player_setting |
| enum bd_event_e |
This must be called after bd_open() and before bd_select_title().
Populates the title list in BLURAY. Filtering of the returned list is controled through title flags
| bd | BLURAY object | |
| flags | title flags | |
| min_title_length | filter out titles shorter than min_title_length seconds |
Definition at line 1470 of file bluray.c.
Referenced by BDRingBuffer::OpenFile().
| BLURAY_TITLE_INFO* bd_get_title_info | ( | BLURAY * | bd, | |
| uint32_t | title_idx, | |||
| unsigned | angle | |||
| ) |
Get information about a title.
| bd | BLURAY object | |
| title_idx | title index number | |
| angle | angle number (chapter offsets and clip size depend on selected angle) |
Definition at line 1575 of file bluray.c.
Referenced by BDRingBuffer::GetTitleInfo().
| BLURAY_TITLE_INFO* bd_get_playlist_info | ( | BLURAY * | bd, | |
| uint32_t | playlist, | |||
| unsigned | angle | |||
| ) |
Get information about a playlist.
| bd | BLURAY object | |
| playlist | playlist number | |
| angle | angle number (chapter offsets and clip size depend on selected angle) |
Definition at line 1592 of file bluray.c.
Referenced by BDRingBuffer::GetPlaylistInfo().
| void bd_free_title_info | ( | BLURAY_TITLE_INFO * | title_info | ) |
Free BLURAY_TITLE_INFO object.
| title_info | BLURAY_TITLE_INFO object |
Definition at line 1604 of file bluray.c.
Referenced by BDRingBuffer::close().
| BLURAY* bd_open | ( | const char * | device_path, | |
| const char * | keyfile_path | |||
| ) |
Initializes libbluray objects.
| device_path | path to mounted Blu-ray disc | |
| keyfile_path | path to KEYDB.cfg (may be NULL) |
Definition at line 857 of file bluray.c.
Referenced by BlurayMetadata::OpenDisc(), and BDRingBuffer::OpenFile().
| void bd_close | ( | BLURAY * | bd | ) |
Free libbluray objects.
| bd | BLURAY object |
Definition at line 888 of file bluray.c.
Referenced by BDRingBuffer::close(), and BlurayMetadata::~BlurayMetadata().
Seek to specific time in 90Khz ticks.
| bd | BLURAY ojbect | |
| tick | tick count |
Definition at line 959 of file bluray.c.
Referenced by _process_psr_restore_event(), and BDRingBuffer::Seek().
| int bd_read | ( | BLURAY * | bd, | |
| unsigned char * | buf, | |||
| int | len | |||
| ) |
Read from currently selected title file, decrypt if possible.
| bd | BLURAY object | |
| buf | buffer to read data into | |
| len | size of data to be read |
Definition at line 1126 of file bluray.c.
Referenced by bd_read_ext(), and BDRingBuffer::safe_read().
| int bd_read_skip_still | ( | BLURAY * | bd | ) |
Continue reading after still mode clip.
| bd | BLURAY object |
Definition at line 1241 of file bluray.c.
Referenced by BDRingBuffer::UpdateTitleInfo().
Find the byte position of a chapter.
| bd | BLURAY object | |
| chapter | chapter to find position of |
Definition at line 1010 of file bluray.c.
Referenced by _open_playlist(), and _update_chapter_psr().
Get the current chapter.
| bd | BLURAY object |
Definition at line 1025 of file bluray.c.
Referenced by _update_chapter_psr(), and BDRingBuffer::GetCurrentChapter().
Seek to a playmark.
First mark is 0
| bd | BLURAY object | |
| mark | playmark to seek to |
Definition at line 1054 of file bluray.c.
Referenced by _process_hdmv_vm_event().
Select a playlist.
| bd | BLURAY object | |
| playlist | playlist to select |
Definition at line 1369 of file bluray.c.
Referenced by _process_hdmv_vm_event(), and _process_psr_restore_event().
Select the title from the list created by bd_get_titles().
| bd | BLURAY object | |
| title | title to select |
Definition at line 1394 of file bluray.c.
Referenced by BDRingBuffer::SwitchTitle().
| int bd_select_angle | ( | BLURAY * | bd, | |
| unsigned | angle | |||
| ) |
| void bd_seamless_angle_change | ( | BLURAY * | bd, | |
| unsigned | angle | |||
| ) |
Initiate seamless angle change.
| bd | BLURAY object | |
| angle | angle to change to |
Definition at line 1455 of file bluray.c.
Referenced by BDRingBuffer::SwitchAngle().
Returns file size in bytes of currently selected title, 0 in no title selected.
| bd | BLURAY object |
Definition at line 1094 of file bluray.c.
Referenced by BDRingBuffer::GetTotalReadPosition(), and BDRingBuffer::UpdateTitleInfo().
Returns the current title index.
| bd | BLURAY object |
Definition at line 1414 of file bluray.c.
Referenced by BDRingBuffer::HandleBDEvent().
| unsigned bd_get_current_angle | ( | BLURAY * | bd | ) |
Return current pos.
| bd | BLURAY object |
Definition at line 1102 of file bluray.c.
Referenced by BDRingBuffer::GetReadPosition(), and BDRingBuffer::safe_read().
| const BLURAY_DISC_INFO* bd_get_disc_info | ( | BLURAY * | ) |
Get information about current BluRay disc.
| bd | BLURAY object |
Definition at line 811 of file bluray.c.
Referenced by BDRingBuffer::OpenFile(), and BlurayMetadata::ParseDisc().
Update player setting registers.
| bd | BLURAY object | |
| idx | Player setting register | |
| value | New value for player setting register |
Definition at line 1625 of file bluray.c.
Referenced by bd_set_player_setting_str(), and BDRingBuffer::OpenFile().
Definition at line 1655 of file bluray.c.
Referenced by BDRingBuffer::OpenFile().
| int bd_start_bdj | ( | BLURAY * | bd, | |
| const char * | start_object | |||
| ) |
Definition at line 1675 of file bluray.c.
Referenced by _play_bdj().
| void bd_stop_bdj | ( | BLURAY * | bd | ) |
Definition at line 1691 of file bluray.c.
Referenced by _play_bdj(), _play_hdmv(), and bd_close().
Get event from libbluray event queue.
| bd | BLURAY object | |
| event | next BD_EVENT from event queue, NULL to initialize event queue |
Definition at line 2189 of file bluray.c.
Referenced by BDRingBuffer::HandleBDEvents().
| int bd_play | ( | BLURAY * | bd | ) |
Start playing disc in navigation mode (using on-disc menus).
Playback is started from "First Play" title.
| bd | BLURAY object |
Definition at line 1970 of file bluray.c.
Referenced by BDRingBuffer::OpenFile().
Read from currently playing title.
When playing disc in navigation mode this function must be used instead of bd_read().
| bd | BLURAY object | |
| buf | buffer to read data into | |
| len | size of data to be read | |
| event | next BD_EVENT from event queue (BD_EVENT_NONE if no events) |
Definition at line 2145 of file bluray.c.
Referenced by BDRingBuffer::safe_read().
| int bd_play_title | ( | BLURAY * | bd, | |
| unsigned | title | |||
| ) |
Play a title (from disc index).
Title 0 = Top Menu Title 0xffff = First Play title Number of titles can be found from BLURAY_DISC_INFO.
| bd | BLURAY object | |
| title | title number from disc index |
Open BluRay disc Top Menu.
Current pts is needed for resuming playback when menu is closed.
| bd | BLURAY object | |
| pts | current playback position (1/90000s) or -1 |
Definition at line 2012 of file bluray.c.
Referenced by BDRingBuffer::GoToMenu().
| void bd_register_overlay_proc | ( | BLURAY * | bd, | |
| void * | handle, | |||
| bd_overlay_proc_f | func | |||
| ) |
Register overlay graphics handler function.
| bd | BLURAY object | |
| handle | application-specific handle that will be passed to handler function | |
| func | handler function pointer |
Definition at line 2230 of file bluray.c.
Referenced by BDRingBuffer::OpenFile().
Pass user input to graphics controller.
Keys are defined in libbluray/keys.h. Current pts can be updated by using BD_VK_NONE key. This is required for animated menus.
| bd | BLURAY object | |
| pts | current playback position (1/90000s) or -1 | |
| key | input key |
Definition at line 2223 of file bluray.c.
Referenced by BDRingBuffer::PressButton().
Select menu button at location (x,y).
| bd | BLURAY object | |
| pts | current playback position (1/90000s) or -1 | |
| x | mouse pointer x-position | |
| y | mouse pointer y-position |
Definition at line 2216 of file bluray.c.
Referenced by BDRingBuffer::ClickButton().
Get meta information about the bluray disc.
| bd | BLURAY object |
Definition at line 2247 of file bluray.c.
Referenced by BDRingBuffer::OpenFile(), and BlurayMetadata::ParseDisc().
1.6.3