37 #define TITLES_FILTER_DUP_TITLE 0x01 38 #define TITLES_FILTER_DUP_CLIP 0x02 40 #define TITLES_RELEVANT \ 41 (TITLES_FILTER_DUP_TITLE | TITLES_FILTER_DUP_CLIP) 44 typedef struct bluray BLURAY; 51 #define BD_AACS_CORRUPTED_DISC -1 52 #define BD_AACS_NO_CONFIG -2 53 #define BD_AACS_NO_PK -3 54 #define BD_AACS_NO_CERT -4 55 #define BD_AACS_CERT_REVOKED -5 56 #define BD_AACS_MMC_FAILED -6 70 uint8_t bluray_detected;
72 uint8_t first_play_supported;
73 uint8_t top_menu_supported;
75 uint32_t num_hdmv_titles;
76 uint32_t num_bdj_titles;
77 uint32_t num_unsupported_titles;
79 uint8_t aacs_detected;
80 uint8_t libaacs_detected;
83 uint8_t bdplus_detected;
84 uint8_t libbdplus_detected;
85 uint8_t bdplus_handled;
97 uint8_t bdj_supported;
98 uint8_t libjvm_detected;
104 uint32_t bdplus_date;
107 uint8_t video_format;
109 uint8_t content_exist_3D;
110 uint8_t initial_output_mode_preference;
111 uint8_t provider_data[32];
120 char bdj_disc_id[33];
122 const char *udf_volume_id;
124 uint8_t no_menu_support;
133 BLURAY_STREAM_TYPE_VIDEO_MPEG1 = 0x01,
134 BLURAY_STREAM_TYPE_VIDEO_MPEG2 = 0x02,
135 BLURAY_STREAM_TYPE_AUDIO_MPEG1 = 0x03,
136 BLURAY_STREAM_TYPE_AUDIO_MPEG2 = 0x04,
137 BLURAY_STREAM_TYPE_AUDIO_LPCM = 0x80,
138 BLURAY_STREAM_TYPE_AUDIO_AC3 = 0x81,
139 BLURAY_STREAM_TYPE_AUDIO_DTS = 0x82,
140 BLURAY_STREAM_TYPE_AUDIO_TRUHD = 0x83,
141 BLURAY_STREAM_TYPE_AUDIO_AC3PLUS = 0x84,
142 BLURAY_STREAM_TYPE_AUDIO_DTSHD = 0x85,
143 BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER = 0x86,
144 BLURAY_STREAM_TYPE_VIDEO_VC1 = 0xea,
145 BLURAY_STREAM_TYPE_VIDEO_H264 = 0x1b,
146 BLURAY_STREAM_TYPE_SUB_PG = 0x90,
147 BLURAY_STREAM_TYPE_SUB_IG = 0x91,
148 BLURAY_STREAM_TYPE_SUB_TEXT = 0x92,
149 BLURAY_STREAM_TYPE_AUDIO_AC3PLUS_SECONDARY = 0xa1,
150 BLURAY_STREAM_TYPE_AUDIO_DTSHD_SECONDARY = 0xa2
154 BLURAY_VIDEO_FORMAT_480I = 1,
155 BLURAY_VIDEO_FORMAT_576I = 2,
156 BLURAY_VIDEO_FORMAT_480P = 3,
157 BLURAY_VIDEO_FORMAT_1080I = 4,
158 BLURAY_VIDEO_FORMAT_720P = 5,
159 BLURAY_VIDEO_FORMAT_1080P = 6,
160 BLURAY_VIDEO_FORMAT_576P = 7
164 BLURAY_VIDEO_RATE_24000_1001 = 1,
165 BLURAY_VIDEO_RATE_24 = 2,
166 BLURAY_VIDEO_RATE_25 = 3,
167 BLURAY_VIDEO_RATE_30000_1001 = 4,
168 BLURAY_VIDEO_RATE_50 = 6,
169 BLURAY_VIDEO_RATE_60000_1001 = 7
173 BLURAY_ASPECT_RATIO_4_3 = 2,
174 BLURAY_ASPECT_RATIO_16_9 = 3
178 BLURAY_AUDIO_FORMAT_MONO = 1,
179 BLURAY_AUDIO_FORMAT_STEREO = 3,
180 BLURAY_AUDIO_FORMAT_MULTI_CHAN = 6,
181 BLURAY_AUDIO_FORMAT_COMBO = 12
186 BLURAY_AUDIO_RATE_48 = 1,
187 BLURAY_AUDIO_RATE_96 = 4,
188 BLURAY_AUDIO_RATE_192 = 5,
189 BLURAY_AUDIO_RATE_192_COMBO = 12,
191 BLURAY_AUDIO_RATE_96_COMBO = 14
196 BLURAY_TEXT_CHAR_CODE_UTF8 = 0x01,
197 BLURAY_TEXT_CHAR_CODE_UTF16BE = 0x02,
198 BLURAY_TEXT_CHAR_CODE_SHIFT_JIS = 0x03,
199 BLURAY_TEXT_CHAR_CODE_EUC_KR = 0x04,
200 BLURAY_TEXT_CHAR_CODE_GB18030_20001 = 0x05,
201 BLURAY_TEXT_CHAR_CODE_CN_GB = 0x06,
202 BLURAY_TEXT_CHAR_CODE_BIG5 = 0x07
206 BLURAY_STILL_NONE = 0x00,
207 BLURAY_STILL_TIME = 0x01,
208 BLURAY_STILL_INFINITE = 0x02,
212 BLURAY_MARK_ENTRY = 0x01,
213 BLURAY_MARK_LINK = 0x02,
231 uint8_t video_stream_count;
232 uint8_t audio_stream_count;
233 uint8_t pg_stream_count;
234 uint8_t ig_stream_count;
235 uint8_t sec_audio_stream_count;
236 uint8_t sec_video_stream_count;
272 uint32_t chapter_count;
285 uint8_t num_channels;
287 const int16_t *samples;
310 BLURAY *
bd_open(
const char *device_path,
const char *keyfile_path);
329 int bd_open_disc(BLURAY *bd,
const char *device_path,
const char *keyfile_path);
340 void *read_blocks_handle,
341 int (*read_blocks)(
void *handle,
void *buf,
int lba,
int num_blocks));
354 int bd_open_files(BLURAY *bd,
356 struct bd_dir_s *(*open_dir)(
void *handle,
const char *rel_path),
357 struct bd_file_s *(*open_file)(
void *handle,
const char *rel_path));
389 const struct meta_dl *bd_get_meta(BLURAY *bd);
404 int bd_get_meta_file(BLURAY *bd,
const char *file_name,
void **data, int64_t *size);
424 uint32_t
bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length);
493 int bd_read(BLURAY *bd,
unsigned char *buf,
int len);
507 int64_t
bd_seek(BLURAY *bd, uint64_t pos);
581 #define BLURAY_AUDIO_STREAM 0 582 #define BLURAY_PG_TEXTST_STREAM 1 584 void bd_select_stream(BLURAY *bd, uint32_t stream_type, uint32_t stream_id, uint32_t enable_flag);
654 BLURAY_PLAYER_SETTING_AUDIO_LANG = 16,
655 BLURAY_PLAYER_SETTING_PG_LANG = 17,
656 BLURAY_PLAYER_SETTING_MENU_LANG = 18,
657 BLURAY_PLAYER_SETTING_COUNTRY_CODE = 19,
658 BLURAY_PLAYER_SETTING_REGION_CODE = 20,
659 BLURAY_PLAYER_SETTING_OUTPUT_PREFER = 21,
660 BLURAY_PLAYER_SETTING_PARENTAL = 13,
661 BLURAY_PLAYER_SETTING_AUDIO_CAP = 15,
662 BLURAY_PLAYER_SETTING_VIDEO_CAP = 29,
663 BLURAY_PLAYER_SETTING_DISPLAY_CAP = 23,
664 BLURAY_PLAYER_SETTING_3D_CAP = 24,
665 BLURAY_PLAYER_SETTING_TEXT_CAP = 30,
666 BLURAY_PLAYER_SETTING_PLAYER_PROFILE = 31,
668 BLURAY_PLAYER_SETTING_DECODE_PG = 0x100,
669 BLURAY_PLAYER_PERSISTENT_ROOT = 400,
670 BLURAY_PLAYER_CACHE_ROOT = 401,
686 int bd_set_player_setting_str(BLURAY *bd, uint32_t idx,
const char *value);
702 BD_EVENT_READ_ERROR = 2,
703 BD_EVENT_ENCRYPTED = 3,
711 BD_EVENT_PLAYLIST = 6,
712 BD_EVENT_PLAYITEM = 7,
713 BD_EVENT_CHAPTER = 8,
714 BD_EVENT_PLAYMARK = 30,
715 BD_EVENT_END_OF_TITLE = 9,
721 BD_EVENT_AUDIO_STREAM = 10,
722 BD_EVENT_IG_STREAM = 11,
723 BD_EVENT_PG_TEXTST_STREAM = 12,
724 BD_EVENT_PIP_PG_TEXTST_STREAM = 13,
725 BD_EVENT_SECONDARY_AUDIO_STREAM = 14,
726 BD_EVENT_SECONDARY_VIDEO_STREAM = 15,
728 BD_EVENT_PG_TEXTST = 16,
729 BD_EVENT_PIP_PG_TEXTST = 17,
730 BD_EVENT_SECONDARY_AUDIO = 18,
731 BD_EVENT_SECONDARY_VIDEO = 19,
732 BD_EVENT_SECONDARY_VIDEO_SIZE = 20,
739 BD_EVENT_PLAYLIST_STOP = 31,
742 BD_EVENT_DISCONTINUITY = 28,
752 BD_EVENT_STILL_TIME = 23,
755 BD_EVENT_SOUND_EFFECT = 24,
772 BD_EVENT_STEREOSCOPIC_STATUS = 27,
775 BD_EVENT_KEY_INTEREST_TABLE = 32,
778 BD_EVENT_UO_MASK_CHANGED = 33,
790 #define BD_ERROR_HDMV 1 791 #define BD_ERROR_BDJ 2 794 #define BD_ERROR_AACS 3 795 #define BD_ERROR_BDPLUS 4 798 #define BLURAY_TITLE_FIRST_PLAY 0xffff 799 #define BLURAY_TITLE_TOP_MENU 0 802 #define BLURAY_KIT_PLAY 0x1 803 #define BLURAY_KIT_STOP 0x2 804 #define BLURAY_KIT_FFW 0x4 805 #define BLURAY_KIT_REW 0x8 806 #define BLURAY_KIT_TRACK_NEXT 0x10 807 #define BLURAY_KIT_TRACK_PREV 0x20 808 #define BLURAY_KIT_PAUSE 0x40 809 #define BLURAY_KIT_STILL_OFF 0x80 810 #define BLURAY_KIT_SEC_AUDIO 0x100 811 #define BLURAY_KIT_SEC_VIDEO 0x200 812 #define BLURAY_KIT_PG_TEXTST 0x400 815 #define BLURAY_UO_MENU_CALL 0x1 816 #define BLURAY_UO_TITLE_SEARCH 0x2 834 struct bd_argb_overlay_s;
835 struct bd_argb_buffer_s;
836 typedef void (*bd_overlay_proc_f)(
void *,
const struct bd_overlay_s *
const);
837 typedef void (*bd_argb_overlay_proc_f)(
void *,
const struct bd_argb_overlay_s *
const);
1019 struct clpi_cl *
bd_get_clpi(BLURAY *bd,
unsigned clip_ref);
1020 struct clpi_cl *bd_read_clpi(
const char *clpi_file);
1032 struct mpls_pl *bd_read_mpls(
const char *mpls_file);
1033 void bd_free_mpls(
struct mpls_pl *);
1035 struct mobj_objects;
1036 struct mobj_objects *bd_read_mobj(
const char *mobj_file);
1037 void bd_free_mobj(
struct mobj_objects *);
1040 struct bdjo_data *bd_read_bdjo(
const char *bdjo_file);
1041 void bd_free_bdjo(
struct bdjo_data *);
1045 int bd_start_bdj(BLURAY *bd,
const char* start_object);
1046 void bd_stop_bdj(BLURAY *bd);
1061 int bd_read_file(BLURAY *,
const char *path,
void **data, int64_t *size);
uint32_t bd_get_current_chapter(BLURAY *bd)
void bd_set_scr(BLURAY *bd, int64_t pts)
void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func)
int bd_user_input(BLURAY *bd, int64_t pts, uint32_t key)
int64_t bd_chapter_pos(BLURAY *bd, unsigned chapter)
int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event)
BLURAY * bd_open(const char *device_path, const char *keyfile_path)
int bd_select_title(BLURAY *bd, uint32_t title)
int bd_get_main_title(BLURAY *bd)
int64_t bd_seek_mark(BLURAY *bd, unsigned mark)
unsigned bd_get_current_angle(BLURAY *bd)
uint32_t bd_get_current_title(BLURAY *bd)
void bd_register_argb_overlay_proc(BLURAY *bd, void *handle, bd_argb_overlay_proc_f func, struct bd_argb_buffer_s *buf)
int bd_play_title(BLURAY *bd, unsigned title)
int bd_open_disc(BLURAY *bd, const char *device_path, const char *keyfile_path)
int bd_select_angle(BLURAY *bd, unsigned angle)
void bd_close(BLURAY *bd)
uint64_t bd_get_title_size(BLURAY *bd)
int bd_get_meta_file(BLURAY *bd, const char *file_name, void **data, int64_t *size)
struct clpi_cl * bd_get_clpi(BLURAY *bd, unsigned clip_ref)
int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value)
int bd_menu_call(BLURAY *bd, int64_t pts)
int bd_open_stream(BLURAY *bd, void *read_blocks_handle, int(*read_blocks)(void *handle, void *buf, int lba, int num_blocks))
const BLURAY_DISC_INFO * bd_get_disc_info(BLURAY *bd)
BLURAY_TITLE_INFO * bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle)
uint64_t bd_tell(BLURAY *bd)
int bd_read_skip_still(BLURAY *bd)
int bd_read(BLURAY *bd, unsigned char *buf, int len)
int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref)
uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length)
BLURAY_TITLE_INFO * bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle)
int bd_read_file(BLURAY *, const char *path, void **data, int64_t *size)
uint64_t bd_tell_time(BLURAY *bd)
void bd_seamless_angle_change(BLURAY *bd, unsigned angle)
int bd_get_sound_effect(BLURAY *bd, unsigned sound_id, struct bd_sound_effect *effect)
int64_t bd_seek(BLURAY *bd, uint64_t pos)
void bd_get_version(int *major, int *minor, int *micro)
int bd_select_playlist(BLURAY *bd, uint32_t playlist)
int bd_get_event(BLURAY *bd, BD_EVENT *event)
void bd_free_title_info(BLURAY_TITLE_INFO *title_info)
void bd_free_clpi(struct clpi_cl *cl)
int bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y)
int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter)
int64_t bd_seek_time(BLURAY *bd, uint64_t tick)