libbluray
 All Classes Files Functions Macros
bluray.h
Go to the documentation of this file.
1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2009-2010 Obliter0n
4  * Copyright (C) 2009-2010 John Stebbins
5  * Copyright (C) 2010-2014 Petri Hintukainen
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef BLURAY_H_
23 #define BLURAY_H_
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
34 #include <stdint.h>
35 
36 #define TITLES_ALL 0
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;
45 
46 /*
47  * Disc info
48  */
49 
50 /* AACS error codes */
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
57 
58 /* HDMV / BD-J title */
59 typedef struct {
60  const char *name; /* optional title name in preferred language */
61  uint8_t interactive; /* 1 if title is interactive (title length and playback position should not be shown in UI) */
62  uint8_t accessible; /* 1 if it is allowed to jump into this title */
63  uint8_t hidden; /* 1 if title number should not be shown during playback */
64 
65  uint8_t bdj; /* 0 - HDMV title. 1 - BD-J title */
66  uint32_t id_ref; /* Movie Object number / bdjo file number */
67 } BLURAY_TITLE;
68 
69 typedef struct {
70  uint8_t bluray_detected;
71 
72  uint8_t first_play_supported;
73  uint8_t top_menu_supported;
74 
75  uint32_t num_hdmv_titles;
76  uint32_t num_bdj_titles;
77  uint32_t num_unsupported_titles;
78 
79  uint8_t aacs_detected;
80  uint8_t libaacs_detected;
81  uint8_t aacs_handled;
82 
83  uint8_t bdplus_detected;
84  uint8_t libbdplus_detected;
85  uint8_t bdplus_handled;
86 
87  /* aacs error code */
88  int aacs_error_code;
89  /* aacs MKB version */
90  int aacs_mkbv;
91 
92  /* Disc ID */
93  uint8_t disc_id[20];
94 
95  uint8_t bdj_detected; /* 1 if disc uses BD-J */
96  uint8_t bdj_supported; /* 1 if BD-J support was compiled in */
97  uint8_t libjvm_detected; /* 1 if usable Java VM was found */
98  uint8_t bdj_handled; /* 1 if usable Java VM + libbluray.jar was found */
99 
100  /* BD+ content code generation */
101  uint8_t bdplus_gen;
102  /* BD+ content code relese date */
103  uint32_t bdplus_date; /* (year << 16) | (month << 8) | day */
104 
105  /* disc application info */
106  uint8_t video_format; /* bd_video_format_e */
107  uint8_t frame_rate; /* bd_frame_rate_e */
108  uint8_t content_exist_3D;
109  uint8_t initial_output_mode_preference; /* 0 - 2D, 1 - 3D */
110  uint8_t provider_data[32];
111 
112  /* HDMV / BD-J titles */
113  uint32_t num_titles;
114  const BLURAY_TITLE *const *titles; /* index is title number 1 ... N */
115  const BLURAY_TITLE *first_play; /* titles[N+1]. NULL if not present on the disc. */
116  const BLURAY_TITLE *top_menu; /* titles[0]. NULL if not present on the disc. */
117 
118  char bdj_org_id[9]; /* (BD-J) disc organization ID */
119  char bdj_disc_id[33]; /* (BD-J) disc ID */
120 
122 
123 /*
124  * Playlist info
125  */
126 
127 typedef enum {
128  BLURAY_STREAM_TYPE_VIDEO_MPEG1 = 0x01,
129  BLURAY_STREAM_TYPE_VIDEO_MPEG2 = 0x02,
130  BLURAY_STREAM_TYPE_AUDIO_MPEG1 = 0x03,
131  BLURAY_STREAM_TYPE_AUDIO_MPEG2 = 0x04,
132  BLURAY_STREAM_TYPE_AUDIO_LPCM = 0x80,
133  BLURAY_STREAM_TYPE_AUDIO_AC3 = 0x81,
134  BLURAY_STREAM_TYPE_AUDIO_DTS = 0x82,
135  BLURAY_STREAM_TYPE_AUDIO_TRUHD = 0x83,
136  BLURAY_STREAM_TYPE_AUDIO_AC3PLUS = 0x84,
137  BLURAY_STREAM_TYPE_AUDIO_DTSHD = 0x85,
138  BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER = 0x86,
139  BLURAY_STREAM_TYPE_VIDEO_VC1 = 0xea,
140  BLURAY_STREAM_TYPE_VIDEO_H264 = 0x1b,
141  BLURAY_STREAM_TYPE_SUB_PG = 0x90,
142  BLURAY_STREAM_TYPE_SUB_IG = 0x91,
143  BLURAY_STREAM_TYPE_SUB_TEXT = 0x92,
144  BLURAY_STREAM_TYPE_AUDIO_AC3PLUS_SECONDARY = 0xa1,
145  BLURAY_STREAM_TYPE_AUDIO_DTSHD_SECONDARY = 0xa2
146 } bd_stream_type_e;
147 
148 typedef enum {
149  BLURAY_VIDEO_FORMAT_480I = 1, // ITU-R BT.601-5
150  BLURAY_VIDEO_FORMAT_576I = 2, // ITU-R BT.601-4
151  BLURAY_VIDEO_FORMAT_480P = 3, // SMPTE 293M
152  BLURAY_VIDEO_FORMAT_1080I = 4, // SMPTE 274M
153  BLURAY_VIDEO_FORMAT_720P = 5, // SMPTE 296M
154  BLURAY_VIDEO_FORMAT_1080P = 6, // SMPTE 274M
155  BLURAY_VIDEO_FORMAT_576P = 7 // ITU-R BT.1358
156 } bd_video_format_e;
157 
158 typedef enum {
159  BLURAY_VIDEO_RATE_24000_1001 = 1, // 23.976
160  BLURAY_VIDEO_RATE_24 = 2,
161  BLURAY_VIDEO_RATE_25 = 3,
162  BLURAY_VIDEO_RATE_30000_1001 = 4, // 29.97
163  BLURAY_VIDEO_RATE_50 = 6,
164  BLURAY_VIDEO_RATE_60000_1001 = 7 // 59.94
165 } bd_video_rate_e;
166 
167 typedef enum {
168  BLURAY_ASPECT_RATIO_4_3 = 2,
169  BLURAY_ASPECT_RATIO_16_9 = 3
170 } bd_video_aspect_e;
171 
172 typedef enum {
173  BLURAY_AUDIO_FORMAT_MONO = 1,
174  BLURAY_AUDIO_FORMAT_STEREO = 3,
175  BLURAY_AUDIO_FORMAT_MULTI_CHAN = 6,
176  BLURAY_AUDIO_FORMAT_COMBO = 12 // Stereo ac3/dts,
177 } bd_audio_format_e;
178  // multi mlp/dts-hd
179 
180 typedef enum {
181  BLURAY_AUDIO_RATE_48 = 1,
182  BLURAY_AUDIO_RATE_96 = 4,
183  BLURAY_AUDIO_RATE_192 = 5,
184  BLURAY_AUDIO_RATE_192_COMBO = 12, // 48 or 96 ac3/dts
185  // 192 mpl/dts-hd
186  BLURAY_AUDIO_RATE_96_COMBO = 14 // 48 ac3/dts
187  // 96 mpl/dts-hd
188 } bd_audio_rate_e;
189 
190 typedef enum {
191  BLURAY_TEXT_CHAR_CODE_UTF8 = 0x01,
192  BLURAY_TEXT_CHAR_CODE_UTF16BE = 0x02,
193  BLURAY_TEXT_CHAR_CODE_SHIFT_JIS = 0x03,
194  BLURAY_TEXT_CHAR_CODE_EUC_KR = 0x04,
195  BLURAY_TEXT_CHAR_CODE_GB18030_20001 = 0x05,
196  BLURAY_TEXT_CHAR_CODE_CN_GB = 0x06,
197  BLURAY_TEXT_CHAR_CODE_BIG5 = 0x07
198 } bd_char_code_e;
199 
200 typedef enum {
201  BLURAY_STILL_NONE = 0x00,
202  BLURAY_STILL_TIME = 0x01,
203  BLURAY_STILL_INFINITE = 0x02,
204 } bd_still_mode_e;
205 
206 typedef struct bd_stream_info {
207  uint8_t coding_type;
208  uint8_t format;
209  uint8_t rate;
210  uint8_t char_code;
211  uint8_t lang[4];
212  uint16_t pid;
213  uint8_t aspect;
214  uint8_t subpath_id;
216 
217 typedef struct bd_clip {
218  uint32_t pkt_count;
219  uint8_t still_mode;
220  uint16_t still_time; /* seconds */
221  uint8_t video_stream_count;
222  uint8_t audio_stream_count;
223  uint8_t pg_stream_count;
224  uint8_t ig_stream_count;
225  uint8_t sec_audio_stream_count;
226  uint8_t sec_video_stream_count;
227  BLURAY_STREAM_INFO *video_streams;
228  BLURAY_STREAM_INFO *audio_streams;
229  BLURAY_STREAM_INFO *pg_streams;
230  BLURAY_STREAM_INFO *ig_streams;
231  BLURAY_STREAM_INFO *sec_audio_streams;
232  BLURAY_STREAM_INFO *sec_video_streams;
233 
234  uint64_t start_time;
235  uint64_t in_time;
236  uint64_t out_time;
238 
239 typedef struct bd_chapter {
240  uint32_t idx;
241  uint64_t start;
242  uint64_t duration;
243  uint64_t offset;
244  unsigned clip_ref;
246 
247 typedef struct bd_mark {
248  uint32_t idx;
249  int type;
250  uint64_t start;
251  uint64_t duration;
252  uint64_t offset;
253  unsigned clip_ref;
255 
256 typedef struct bd_title_info {
257  uint32_t idx;
258  uint32_t playlist;
259  uint64_t duration;
260  uint32_t clip_count;
261  uint8_t angle_count;
262  uint32_t chapter_count;
263  BLURAY_CLIP_INFO *clips;
264  BLURAY_TITLE_CHAPTER *chapters;
265 
266  uint32_t mark_count;
267  BLURAY_TITLE_MARK *marks;
269 
270 /*
271  * Sound effect data
272  */
273 
274 typedef struct bd_sound_effect {
275  uint8_t num_channels; /* 1 - mono, 2 - stereo */
276  uint32_t num_frames;
277  const int16_t *samples; /* 48000 Hz, 16 bit LPCM. interleaved if stereo */
279 
280 
285 void bd_get_version(int *major, int *minor, int *micro);
286 
287 
288 /*
289  * Disc functions
290  */
291 
299 BLURAY *bd_open(const char *device_path, const char *keyfile_path);
300 
306 void bd_close(BLURAY *bd);
307 
315 const BLURAY_DISC_INFO *bd_get_disc_info(BLURAY *bd);
316 
328 struct meta_dl;
329 const struct meta_dl *bd_get_meta(BLURAY *bd);
330 
331 
332 /*
333  * Title selection without on-disc menus
334  */
335 
349 uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length);
350 
359 int bd_get_main_title(BLURAY *bd);
360 
370 BLURAY_TITLE_INFO* bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle);
371 
378 void bd_free_title_info(BLURAY_TITLE_INFO *title_info);
379 
388 int bd_select_title(BLURAY *bd, uint32_t title);
389 
398 int bd_select_playlist(BLURAY *bd, uint32_t playlist);
399 
407 uint32_t bd_get_current_title(BLURAY *bd);
408 
418 int bd_read(BLURAY *bd, unsigned char *buf, int len);
419 
420 
421 /*
422  * Playback control functions
423  */
424 
432 int64_t bd_seek(BLURAY *bd, uint64_t pos);
433 
442 int64_t bd_seek_time(BLURAY *bd, uint64_t tick);
443 
452 int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter);
453 
462 int64_t bd_seek_mark(BLURAY *bd, unsigned mark);
463 
472 int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref);
473 
482 int bd_select_angle(BLURAY *bd, unsigned angle);
483 
491 void bd_seamless_angle_change(BLURAY *bd, unsigned angle);
492 
506 #define BLURAY_PG_TEXTST_STREAM 1
507 
508 void bd_select_stream(BLURAY *bd, uint32_t stream_type, uint32_t stream_id, uint32_t enable_flag);
509 
510 
511 /*
512  * Playback status functions
513  */
514 
523 int64_t bd_chapter_pos(BLURAY *bd, unsigned chapter);
524 
532 uint32_t bd_get_current_chapter(BLURAY *bd);
533 
543 uint64_t bd_get_title_size(BLURAY *bd);
544 
552 unsigned bd_get_current_angle(BLURAY *bd);
553 
561 uint64_t bd_tell(BLURAY *bd);
562 
570 uint64_t bd_tell_time(BLURAY *bd);
571 
572 
573 /*
574  * player settings
575  */
576 
577 typedef enum {
578  BLURAY_PLAYER_SETTING_AUDIO_LANG = 16, /* Initial audio language. String (ISO 639-2/T). */
579  BLURAY_PLAYER_SETTING_PG_LANG = 17, /* Initial PG/SPU language. String (ISO 639-2/T). */
580  BLURAY_PLAYER_SETTING_MENU_LANG = 18, /* Initial menu language. String (ISO 639-2/T). */
581  BLURAY_PLAYER_SETTING_COUNTRY_CODE = 19, /* Player country code. String (ISO 3166-1/alpha-2). */
582  BLURAY_PLAYER_SETTING_REGION_CODE = 20, /* Player region code. Integer. */
583  BLURAY_PLAYER_SETTING_OUTPUT_PREFER = 21, /* Output mode preference. Integer. */
584  BLURAY_PLAYER_SETTING_PARENTAL = 13, /* Age for parental control. Integer. */
585  BLURAY_PLAYER_SETTING_AUDIO_CAP = 15, /* Audio capability. Bit mask. */
586  BLURAY_PLAYER_SETTING_VIDEO_CAP = 29, /* Video capability. Bit mask. */
587  BLURAY_PLAYER_SETTING_DISPLAY_CAP = 23, /* Display capability. Bit mask. */
588  BLURAY_PLAYER_SETTING_3D_CAP = 24, /* 3D capability. Bit mask. */
589  BLURAY_PLAYER_SETTING_TEXT_CAP = 30, /* Text Subtitle capability. Bit mask. */
590  BLURAY_PLAYER_SETTING_PLAYER_PROFILE = 31, /* Player profile and version. */
591 
592  BLURAY_PLAYER_SETTING_DECODE_PG = 0x100, /* Enable/disable PG (subtitle) decoder. Integer. */
593  BLURAY_PLAYER_PERSISTENT_ROOT = 400, /* Root path to the BD_J persistent storage location. String. */
594  BLURAY_PLAYER_CACHE_ROOT = 401, /* Root path to the BD_J cache storage location. String. */
595 } bd_player_setting;
596 
609 int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value);
610 int bd_set_player_setting_str(BLURAY *bd, uint32_t idx, const char *value);
611 
612 
613 /*
614  * events
615  */
616 
617 typedef enum {
618 
619  BD_EVENT_NONE = 0, /* no pending events */
620 
621  /*
622  * errors
623  */
624 
625  BD_EVENT_ERROR = 1, /* Fatal error. Playback can't be continued. */
626  BD_EVENT_READ_ERROR = 2, /* Reading of .m2ts aligned unit failed. Next call to read will try next block. */
627  BD_EVENT_ENCRYPTED = 3, /* .m2ts file is encrypted and can't be played */
628 
629  /*
630  * current playback position
631  */
632 
633  BD_EVENT_ANGLE = 4, /* current angle, 1...N */
634  BD_EVENT_TITLE = 5, /* current title, 1...N (0 = top menu) */
635  BD_EVENT_PLAYLIST = 6, /* current playlist (xxxxx.mpls) */
636  BD_EVENT_PLAYITEM = 7, /* current play item, 0...N-1 */
637  BD_EVENT_CHAPTER = 8, /* current chapter, 1...N */
638  BD_EVENT_PLAYMARK = 30, /* playmark reached */
639  BD_EVENT_END_OF_TITLE = 9,
640 
641  /*
642  * stream selection
643  */
644 
645  BD_EVENT_AUDIO_STREAM = 10, /* 1..32, 0xff = none */
646  BD_EVENT_IG_STREAM = 11, /* 1..32 */
647  BD_EVENT_PG_TEXTST_STREAM = 12, /* 1..255, 0xfff = none */
648  BD_EVENT_PIP_PG_TEXTST_STREAM = 13, /* 1..255, 0xfff = none */
649  BD_EVENT_SECONDARY_AUDIO_STREAM = 14, /* 1..32, 0xff = none */
650  BD_EVENT_SECONDARY_VIDEO_STREAM = 15, /* 1..32, 0xff = none */
651 
652  BD_EVENT_PG_TEXTST = 16, /* 0 - disable, 1 - enable */
653  BD_EVENT_PIP_PG_TEXTST = 17, /* 0 - disable, 1 - enable */
654  BD_EVENT_SECONDARY_AUDIO = 18, /* 0 - disable, 1 - enable */
655  BD_EVENT_SECONDARY_VIDEO = 19, /* 0 - disable, 1 - enable */
656  BD_EVENT_SECONDARY_VIDEO_SIZE = 20, /* 0 - PIP, 0xf - fullscreen */
657 
658  /*
659  * playback control
660  */
661 
662  /* discontinuity in the stream (non-seamless connection). Reset demuxer PES buffers. */
663  BD_EVENT_DISCONTINUITY = 28, /* new timestamp (45 kHz) */
664 
665  /* HDMV VM or JVM seeked the stream. Next read() will return data from new position. Flush all buffers. */
666  BD_EVENT_SEEK = 21,
667 
668  /* still playback (pause) */
669  BD_EVENT_STILL = 22, /* 0 - off, 1 - on */
670 
671  /* Still playback for n seconds (reached end of still mode play item).
672  * Playback continues by calling bd_read_skip_still(). */
673  BD_EVENT_STILL_TIME = 23, /* 0 = infinite ; 1...300 = seconds */
674 
675  /* Play sound effect */
676  BD_EVENT_SOUND_EFFECT = 24, /* effect ID */
677 
678  /*
679  * status
680  */
681 
682  /* Nothing to do. Playlist is not playing, but title applet is running. */
683  BD_EVENT_IDLE = 29,
684 
685  /* Pop-Up menu available */
686  BD_EVENT_POPUP = 25, /* 0 - no, 1 - yes */
687 
688  /* Interactive menu visible */
689  BD_EVENT_MENU = 26, /* 0 - no, 1 - yes */
690 
691  /* 3D */
692  BD_EVENT_STEREOSCOPIC_STATUS = 27, /* 0 - 2D, 1 - 3D */
693 
694  /*BD_EVENT_LAST = 30, */
695 
696 } bd_event_e;
697 
698 typedef struct {
699  uint32_t event; /* bd_event_e */
700  uint32_t param;
701 } BD_EVENT;
702 
703 /* BD_EVENT_ERROR param values */
704 #define BD_ERROR_HDMV 1
705 #define BD_ERROR_BDJ 2
706 
707 /* BD_EVENT_ENCRYPTED param vlues */
708 #define BD_ERROR_AACS 3
709 #define BD_ERROR_BDPLUS 4
710 
711 /* BD_EVENT_TITLE special titles */
712 #define BLURAY_TITLE_FIRST_PLAY 0xffff
713 #define BLURAY_TITLE_TOP_MENU 0
714 
723 int bd_get_event(BLURAY *bd, BD_EVENT *event);
724 
725 
726 /*
727  * On-screen display
728  */
729 
730 struct bd_overlay_s; /* defined in overlay.h */
731 struct bd_argb_overlay_s; /* defined in overlay.h */
732 struct bd_argb_buffer_s; /* defined in overlay.h */
733 typedef void (*bd_overlay_proc_f)(void *, const struct bd_overlay_s * const);
734 typedef void (*bd_argb_overlay_proc_f)(void *, const struct bd_argb_overlay_s * const);
735 
755 void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func);
756 
772 void bd_register_argb_overlay_proc(BLURAY *bd, void *handle, bd_argb_overlay_proc_f func, struct bd_argb_buffer_s *buf);
773 
774 
775 /*
776  * Playback with on-disc menus
777  */
778 
788 int bd_play(BLURAY *bd);
789 
802 int bd_play_title(BLURAY *bd, unsigned title);
803 
814 int bd_menu_call(BLURAY *bd, int64_t pts);
815 
828 int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event);
829 
837 int bd_read_skip_still(BLURAY *bd);
838 
848 BLURAY_TITLE_INFO* bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle);
849 
859 int bd_get_sound_effect(BLURAY *bd, unsigned sound_id, struct bd_sound_effect *effect);
860 
861 
862 /*
863  * User interaction
864  */
865 
873 void bd_set_scr(BLURAY *bd, int64_t pts);
874 
886 int bd_user_input(BLURAY *bd, int64_t pts, uint32_t key);
887 
898 int bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y);
899 
900 
901 /*
902  * Testing and debugging
903  */
904 
905 /* access to internal information */
906 
907 struct clpi_cl;
916 struct clpi_cl *bd_get_clpi(BLURAY *bd, unsigned clip_ref);
917 struct clpi_cl *bd_read_clpi(const char *clpi_file);
918 
925 void bd_free_clpi(struct clpi_cl *cl);
926 
927 
928 struct mpls_pl;
929 struct mpls_pl *bd_read_mpls(const char *mpls_file);
930 void bd_free_mpls(struct mpls_pl *);
931 
932 struct mobj_objects;
933 struct mobj_objects *bd_read_mobj(const char *mobj_file);
934 void bd_free_mobj(struct mobj_objects *);
935 
936 struct bdjo_data;
937 struct bdjo_data *bd_read_bdjo(const char *bdjo_file);
938 void bd_free_bdjo(struct bdjo_data *);
939 
940 /* BD-J testing */
941 
942 int bd_start_bdj(BLURAY *bd, const char* start_object); // start BD-J from the specified BD-J object (should be a 5 character string)
943 void bd_stop_bdj(BLURAY *bd); // shutdown BD-J and clean up resources
944 
945 
946 #ifdef __cplusplus
947 };
948 #endif
949 
950 #endif /* BLURAY_H_ */
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)
Definition: bluray.h:258
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)
Definition: bluray.h:249
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_select_angle(BLURAY *bd, unsigned angle)
void bd_close(BLURAY *bd)
Definition: bluray.h:219
uint64_t bd_get_title_size(BLURAY *bd)
struct clpi_cl * bd_get_clpi(BLURAY *bd, unsigned clip_ref)
Definition: bluray.h:276
Definition: bluray.h:71
int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value)
int bd_menu_call(BLURAY *bd, int64_t pts)
Definition: bluray.h:208
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_play(BLURAY *bd)
Definition: bluray.h:241
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)
Definition: bluray.h:61
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)
Definition: bluray.h:700
int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter)
int64_t bd_seek_time(BLURAY *bd, uint64_t tick)