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 typedef enum {
47  BLURAY_STREAM_TYPE_VIDEO_MPEG1 = 0x01,
48  BLURAY_STREAM_TYPE_VIDEO_MPEG2 = 0x02,
49  BLURAY_STREAM_TYPE_AUDIO_MPEG1 = 0x03,
50  BLURAY_STREAM_TYPE_AUDIO_MPEG2 = 0x04,
51  BLURAY_STREAM_TYPE_AUDIO_LPCM = 0x80,
52  BLURAY_STREAM_TYPE_AUDIO_AC3 = 0x81,
53  BLURAY_STREAM_TYPE_AUDIO_DTS = 0x82,
54  BLURAY_STREAM_TYPE_AUDIO_TRUHD = 0x83,
55  BLURAY_STREAM_TYPE_AUDIO_AC3PLUS = 0x84,
56  BLURAY_STREAM_TYPE_AUDIO_DTSHD = 0x85,
57  BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER = 0x86,
58  BLURAY_STREAM_TYPE_VIDEO_VC1 = 0xea,
59  BLURAY_STREAM_TYPE_VIDEO_H264 = 0x1b,
60  BLURAY_STREAM_TYPE_SUB_PG = 0x90,
61  BLURAY_STREAM_TYPE_SUB_IG = 0x91,
62  BLURAY_STREAM_TYPE_SUB_TEXT = 0x92,
63  BLURAY_STREAM_TYPE_AUDIO_AC3PLUS_SECONDARY = 0xa1,
64  BLURAY_STREAM_TYPE_AUDIO_DTSHD_SECONDARY = 0xa2
65 } bd_stream_type_e;
66 
67 typedef enum {
68  BLURAY_VIDEO_FORMAT_480I = 1, // ITU-R BT.601-5
69  BLURAY_VIDEO_FORMAT_576I = 2, // ITU-R BT.601-4
70  BLURAY_VIDEO_FORMAT_480P = 3, // SMPTE 293M
71  BLURAY_VIDEO_FORMAT_1080I = 4, // SMPTE 274M
72  BLURAY_VIDEO_FORMAT_720P = 5, // SMPTE 296M
73  BLURAY_VIDEO_FORMAT_1080P = 6, // SMPTE 274M
74  BLURAY_VIDEO_FORMAT_576P = 7 // ITU-R BT.1358
75 } bd_video_format_e;
76 
77 typedef enum {
78  BLURAY_VIDEO_RATE_24000_1001 = 1, // 23.976
79  BLURAY_VIDEO_RATE_24 = 2,
80  BLURAY_VIDEO_RATE_25 = 3,
81  BLURAY_VIDEO_RATE_30000_1001 = 4, // 29.97
82  BLURAY_VIDEO_RATE_50 = 6,
83  BLURAY_VIDEO_RATE_60000_1001 = 7 // 59.94
84 } bd_video_rate_e;
85 
86 typedef enum {
87  BLURAY_ASPECT_RATIO_4_3 = 2,
88  BLURAY_ASPECT_RATIO_16_9 = 3
89 } bd_video_aspect_e;
90 
91 typedef enum {
92  BLURAY_AUDIO_FORMAT_MONO = 1,
93  BLURAY_AUDIO_FORMAT_STEREO = 3,
94  BLURAY_AUDIO_FORMAT_MULTI_CHAN = 6,
95  BLURAY_AUDIO_FORMAT_COMBO = 12 // Stereo ac3/dts,
96 } bd_audio_format_e;
97  // multi mlp/dts-hd
98 
99 typedef enum {
100  BLURAY_AUDIO_RATE_48 = 1,
101  BLURAY_AUDIO_RATE_96 = 4,
102  BLURAY_AUDIO_RATE_192 = 5,
103  BLURAY_AUDIO_RATE_192_COMBO = 12, // 48 or 96 ac3/dts
104  // 192 mpl/dts-hd
105  BLURAY_AUDIO_RATE_96_COMBO = 14 // 48 ac3/dts
106  // 96 mpl/dts-hd
107 } bd_audio_rate_e;
108 
109 typedef enum {
110  BLURAY_TEXT_CHAR_CODE_UTF8 = 0x01,
111  BLURAY_TEXT_CHAR_CODE_UTF16BE = 0x02,
112  BLURAY_TEXT_CHAR_CODE_SHIFT_JIS = 0x03,
113  BLURAY_TEXT_CHAR_CODE_EUC_KR = 0x04,
114  BLURAY_TEXT_CHAR_CODE_GB18030_20001 = 0x05,
115  BLURAY_TEXT_CHAR_CODE_CN_GB = 0x06,
116  BLURAY_TEXT_CHAR_CODE_BIG5 = 0x07
117 } bd_char_code_e;
118 
119 typedef enum {
120  BLURAY_STILL_NONE = 0x00,
121  BLURAY_STILL_TIME = 0x01,
122  BLURAY_STILL_INFINITE = 0x02,
123 } bd_still_mode_e;
124 
125 typedef struct bd_stream_info {
126  uint8_t coding_type;
127  uint8_t format;
128  uint8_t rate;
129  uint8_t char_code;
130  uint8_t lang[4];
131  uint16_t pid;
132  uint8_t aspect;
133  uint8_t subpath_id;
135 
136 typedef struct bd_clip {
137  uint32_t pkt_count;
138  uint8_t still_mode;
139  uint16_t still_time; /* seconds */
140  uint8_t video_stream_count;
141  uint8_t audio_stream_count;
142  uint8_t pg_stream_count;
143  uint8_t ig_stream_count;
144  uint8_t sec_audio_stream_count;
145  uint8_t sec_video_stream_count;
146  BLURAY_STREAM_INFO *video_streams;
147  BLURAY_STREAM_INFO *audio_streams;
148  BLURAY_STREAM_INFO *pg_streams;
149  BLURAY_STREAM_INFO *ig_streams;
150  BLURAY_STREAM_INFO *sec_audio_streams;
151  BLURAY_STREAM_INFO *sec_video_streams;
152 
153  uint64_t start_time;
154  uint64_t in_time;
155  uint64_t out_time;
157 
158 typedef struct bd_chapter {
159  uint32_t idx;
160  uint64_t start;
161  uint64_t duration;
162  uint64_t offset;
163  unsigned clip_ref;
165 
166 typedef struct bd_mark {
167  uint32_t idx;
168  int type;
169  uint64_t start;
170  uint64_t duration;
171  uint64_t offset;
172  unsigned clip_ref;
174 
175 typedef struct bd_title_info {
176  uint32_t idx;
177  uint32_t playlist;
178  uint64_t duration;
179  uint32_t clip_count;
180  uint8_t angle_count;
181  uint32_t chapter_count;
182  BLURAY_CLIP_INFO *clips;
183  BLURAY_TITLE_CHAPTER *chapters;
184 
185  uint32_t mark_count;
186  BLURAY_TITLE_MARK *marks;
188 
189 typedef struct bd_sound_effect {
190  uint8_t num_channels; /* 1 - mono, 2 - stereo */
191  uint32_t num_frames;
192  const int16_t *samples; /* 48000 Hz, 16 bit LPCM. interleaved if stereo */
194 
199 void bd_get_version(int *major, int *minor, int *micro);
200 
212 uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length);
213 
222 int bd_get_main_title(BLURAY *bd);
223 
233 BLURAY_TITLE_INFO* bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle);
234 
244 BLURAY_TITLE_INFO* bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle);
245 
252 void bd_free_title_info(BLURAY_TITLE_INFO *title_info);
253 
261 BLURAY *bd_open(const char* device_path, const char* keyfile_path);
262 
268 void bd_close(BLURAY *bd);
269 
277 int64_t bd_seek(BLURAY *bd, uint64_t pos);
278 
287 int64_t bd_seek_time(BLURAY *bd, uint64_t tick);
288 
298 int bd_read(BLURAY *bd, unsigned char *buf, int len);
299 
307 int bd_read_skip_still(BLURAY *bd);
308 
317 int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter);
318 
327 int64_t bd_chapter_pos(BLURAY *bd, unsigned chapter);
328 
336 uint32_t bd_get_current_chapter(BLURAY *bd);
337 
346 int64_t bd_seek_mark(BLURAY *bd, unsigned mark);
347 
356 int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref);
357 
366 int bd_select_playlist(BLURAY *bd, uint32_t playlist);
367 
376 int bd_select_title(BLURAY *bd, uint32_t title);
377 
386 int bd_select_angle(BLURAY *bd, unsigned angle);
387 
395 void bd_seamless_angle_change(BLURAY *bd, unsigned angle);
396 
406 uint64_t bd_get_title_size(BLURAY *bd);
407 
415 uint32_t bd_get_current_title(BLURAY *bd);
416 
424 unsigned bd_get_current_angle(BLURAY *bd);
425 
433 uint64_t bd_tell(BLURAY *bd);
434 
442 uint64_t bd_tell_time(BLURAY *bd);
443 
457 #define BLURAY_PG_TEXTST_STREAM 1
458 
459 void bd_select_stream(BLURAY *bd, uint32_t stream_type, uint32_t stream_id, uint32_t enable_flag);
460 
461 /*
462  * Disc info
463  */
464 
465 /* AACS error codes */
466 #define BD_AACS_CORRUPTED_DISC -1
467 #define BD_AACS_NO_CONFIG -2
468 #define BD_AACS_NO_PK -3
469 #define BD_AACS_NO_CERT -4
470 #define BD_AACS_CERT_REVOKED -5
471 #define BD_AACS_MMC_FAILED -6
472 
473 /* HDMV / BD-J title */
474 typedef struct {
475  const char *name; /* optional title name in preferred language */
476  uint8_t interactive; /* 1 if title is interactive (title length and playback position should not be shown in UI) */
477  uint8_t accessible; /* 1 if it is allowed to jump into this title */
478  uint8_t hidden; /* 1 if title number should not be shown during playback */
479 
480  uint8_t bdj; /* 0 - HDMV title. 1 - BD-J title */
481  uint16_t id_ref; /* Movie Object number / bdjo file number */
482 } BLURAY_TITLE;
483 
484 typedef struct {
485  uint8_t bluray_detected;
487  uint8_t first_play_supported;
488  uint8_t top_menu_supported;
489 
490  uint32_t num_hdmv_titles;
491  uint32_t num_bdj_titles;
492  uint32_t num_unsupported_titles;
493 
494  uint8_t aacs_detected;
495  uint8_t libaacs_detected;
496  uint8_t aacs_handled;
497 
498  uint8_t bdplus_detected;
499  uint8_t libbdplus_detected;
500  uint8_t bdplus_handled;
501 
502  /* aacs error code */
503  int aacs_error_code;
504  /* aacs MKB version */
505  int aacs_mkbv;
506 
507  /* Disc ID */
508  uint8_t disc_id[20];
509 
510  uint8_t bdj_detected; /* 1 if disc uses BD-J */
511  uint8_t bdj_supported; /* 1 if BD-J support was compiled in */
512  uint8_t libjvm_detected; /* 1 if usable Java VM was found */
513  uint8_t bdj_handled; /* 1 if usable Java VM + libbluray.jar was found */
514 
515  /* BD+ content code generation */
516  uint8_t bdplus_gen;
517  /* BD+ content code relese date */
518  uint32_t bdplus_date; /* (year << 16) | (month << 8) | day */
519 
520  /* disc application info */
521  uint8_t video_format; /* bd_video_format_e */
522  uint8_t frame_rate; /* bd_frame_rate_e */
523  uint8_t content_exist_3D;
524  uint8_t initial_output_mode_preference; /* 0 - 2D, 1 - 3D */
525  uint8_t provider_data[32];
526 
527  /* HDMV / BD-J titles */
528  uint32_t num_titles;
529  const BLURAY_TITLE * const *titles; /* index is title number 1 ... N */
530  const BLURAY_TITLE *first_play; /* titles[0]. NULL if not present on the disc. */
531  const BLURAY_TITLE *top_menu; /* titles[N+1]. NULL if not present on the disc. */
532 
534 
542 const BLURAY_DISC_INFO *bd_get_disc_info(BLURAY*);
543 
544 /*
545  * player settings
546  */
547 
548 typedef enum {
549  BLURAY_PLAYER_SETTING_PARENTAL = 13, /* Age for parental control (years) */
550  BLURAY_PLAYER_SETTING_AUDIO_CAP = 15, /* Player capability for audio (bit mask) */
551  BLURAY_PLAYER_SETTING_AUDIO_LANG = 16, /* Initial audio language: ISO 639-2 string, ex. "eng" */
552  BLURAY_PLAYER_SETTING_PG_LANG = 17, /* Initial PG/SPU language: ISO 639-2 string, ex. "eng" */
553  BLURAY_PLAYER_SETTING_MENU_LANG = 18, /* Initial menu language: ISO 639-2 string, ex. "eng" */
554  BLURAY_PLAYER_SETTING_COUNTRY_CODE = 19, /* Player country code: ISO 3166-1 string, ex. "de" */
555  BLURAY_PLAYER_SETTING_REGION_CODE = 20, /* Player region code: 1 - region A, 2 - B, 4 - C */
556  BLURAY_PLAYER_SETTING_OUTPUT_PREFER = 21, /* output mode preference: 0 - 2D, 1 - 3D */
557  BLURAY_PLAYER_SETTING_DISPLAY_CAP = 23, /* Display capability (bit mask) */
558  BLURAY_PLAYER_SETTING_3D_CAP = 24, /* 3D capability (bit mask) */
559  BLURAY_PLAYER_SETTING_VIDEO_CAP = 29, /* Player capability for video (bit mask) */
560  BLURAY_PLAYER_SETTING_TEXT_CAP = 30, /* Player capability for text subtitle (bit mask) */
561  BLURAY_PLAYER_SETTING_PLAYER_PROFILE = 31, /* Profile1: 0, Profile1+: 1, Profile2: 3, Profile3: 8 */
562 
563  BLURAY_PLAYER_SETTING_DECODE_PG = 0x100, /* enable/disable PG (subtitle) decoder */
564 } bd_player_setting;
565 
576 int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value);
577 int bd_set_player_setting_str(BLURAY *bd, uint32_t idx, const char *s);
578 
579 
580 /*
581  * events
582  */
583 
584 typedef enum {
585 
586  BD_EVENT_NONE = 0, /* no pending events */
587 
588  /*
589  * errors
590  */
591 
592  BD_EVENT_ERROR = 1, /* Fatal error. Playback can't be continued. */
593  BD_EVENT_READ_ERROR = 2, /* Reading of .m2ts aligned unit failed. Next call to read will try next block. */
594  BD_EVENT_ENCRYPTED = 3, /* .m2ts file is encrypted and can't be played */
595 
596  /*
597  * current playback position
598  */
599 
600  BD_EVENT_ANGLE = 4, /* current angle, 1...N */
601  BD_EVENT_TITLE = 5, /* current title, 1...N (0 = top menu) */
602  BD_EVENT_PLAYLIST = 6, /* current playlist (xxxxx.mpls) */
603  BD_EVENT_PLAYITEM = 7, /* current play item, 0...N-1 */
604  BD_EVENT_CHAPTER = 8, /* current chapter, 1...N */
605  BD_EVENT_PLAYMARK = 30, /* playmark reached */
606  BD_EVENT_END_OF_TITLE = 9,
607 
608  /*
609  * stream selection
610  */
611 
612  BD_EVENT_AUDIO_STREAM = 10, /* 1..32, 0xff = none */
613  BD_EVENT_IG_STREAM = 11, /* 1..32 */
614  BD_EVENT_PG_TEXTST_STREAM = 12, /* 1..255, 0xfff = none */
615  BD_EVENT_PIP_PG_TEXTST_STREAM = 13, /* 1..255, 0xfff = none */
616  BD_EVENT_SECONDARY_AUDIO_STREAM = 14, /* 1..32, 0xff = none */
617  BD_EVENT_SECONDARY_VIDEO_STREAM = 15, /* 1..32, 0xff = none */
618 
619  BD_EVENT_PG_TEXTST = 16, /* 0 - disable, 1 - enable */
620  BD_EVENT_PIP_PG_TEXTST = 17, /* 0 - disable, 1 - enable */
621  BD_EVENT_SECONDARY_AUDIO = 18, /* 0 - disable, 1 - enable */
622  BD_EVENT_SECONDARY_VIDEO = 19, /* 0 - disable, 1 - enable */
623  BD_EVENT_SECONDARY_VIDEO_SIZE = 20, /* 0 - PIP, 0xf - fullscreen */
624 
625  /*
626  * playback control
627  */
628 
629  /* discontinuity in the stream (non-seamless connection). Reset demuxer PES buffers. */
630  BD_EVENT_DISCONTINUITY = 28, /* new timestamp (45 kHz) */
631 
632  /* HDMV VM or JVM seeked the stream. Next read() will return data from new position. Flush all buffers. */
633  BD_EVENT_SEEK = 21,
634 
635  /* still playback (pause) */
636  BD_EVENT_STILL = 22, /* 0 - off, 1 - on */
637 
638  /* Still playback for n seconds (reached end of still mode play item).
639  * Playback continues by calling bd_read_skip_still(). */
640  BD_EVENT_STILL_TIME = 23, /* 0 = infinite ; 1...300 = seconds */
641 
642  /* Play sound effect */
643  BD_EVENT_SOUND_EFFECT = 24, /* effect ID */
644 
645  /*
646  * status
647  */
648 
649  /* Nothing to do. Playlist is not playing, but title applet is running. */
650  BD_EVENT_IDLE = 29,
651 
652  /* Pop-Up menu available */
653  BD_EVENT_POPUP = 25, /* 0 - no, 1 - yes */
654 
655  /* Interactive menu visible */
656  BD_EVENT_MENU = 26, /* 0 - no, 1 - yes */
657 
658  /* 3D */
659  BD_EVENT_STEREOSCOPIC_STATUS = 27, /* 0 - 2D, 1 - 3D */
660 
661  /*BD_EVENT_LAST = 30, */
662 
663 } bd_event_e;
664 
665 typedef struct {
666  uint32_t event; /* bd_event_e */
667  uint32_t param;
668 } BD_EVENT;
669 
670 /* BD_EVENT_ERROR param values */
671 #define BD_ERROR_HDMV 1
672 #define BD_ERROR_BDJ 2
673 
674 /* BD_EVENT_ENCRYPTED param vlues */
675 #define BD_ERROR_AACS 3
676 #define BD_ERROR_BDPLUS 4
677 
678 
679 #define BLURAY_TITLE_FIRST_PLAY 0xffff
680 #define BLURAY_TITLE_TOP_MENU 0
681 
689 int bd_get_event(BLURAY *bd, BD_EVENT *event);
690 
691 /*
692  * navigaton mode
693  */
694 
704 int bd_play(BLURAY *bd);
705 
718 int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event);
719 
732 int bd_play_title(BLURAY *bd, unsigned title);
733 
744 int bd_menu_call(BLURAY *bd, int64_t pts);
745 
746 /*
747  * User interaction and On-screen display controller
748  */
749 
750 struct bd_overlay_s; /* defined in overlay.h */
751 struct bd_argb_overlay_s; /* defined in overlay.h */
752 struct bd_argb_buffer_s; /* defined in overlay.h */
753 typedef void (*bd_overlay_proc_f)(void *, const struct bd_overlay_s * const);
754 typedef void (*bd_argb_overlay_proc_f)(void *, const struct bd_argb_overlay_s * const);
755 
756 
775 void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func);
776 
792 void bd_register_argb_overlay_proc(BLURAY *bd, void *handle, bd_argb_overlay_proc_f func, struct bd_argb_buffer_s *buf);
793 
801 void bd_set_scr(BLURAY *bd, int64_t pts);
802 
814 int bd_user_input(BLURAY *bd, int64_t pts, uint32_t key);
815 
826 int bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y);
827 
837 int bd_get_sound_effect(BLURAY *bd, unsigned sound_id, struct bd_sound_effect *effect);
838 
839 /*
840  *
841  */
842 
843 struct meta_dl;
851 const struct meta_dl *bd_get_meta(BLURAY *bd);
852 
853 
854 /*
855  * Testing and debugging
856  */
857 
858 /* access to internal information */
859 
860 struct clpi_cl;
869 struct clpi_cl *bd_get_clpi(BLURAY *bd, unsigned clip_ref);
870 struct clpi_cl *bd_read_clpi(const char *clpi_file);
871 
878 void bd_free_clpi(struct clpi_cl *cl);
879 
880 
881 struct mpls_pl;
882 struct mpls_pl *bd_read_mpls(const char *mpls_file);
883 void bd_free_mpls(struct mpls_pl *);
884 
885 
886 /* BD-J testing */
887 
888 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)
889 void bd_stop_bdj(BLURAY *bd); // shutdown BD-J and clean up resources
890 
891 
892 #ifdef __cplusplus
893 };
894 #endif
895 
896 #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:177
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:168
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:138
uint64_t bd_get_title_size(BLURAY *bd)
struct clpi_cl * bd_get_clpi(BLURAY *bd, unsigned clip_ref)
const struct meta_dl * bd_get_meta(BLURAY *bd)
Definition: bluray.h:191
Definition: bluray.h:486
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:127
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:160
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:476
void bd_get_version(int *major, int *minor, int *micro)
int bd_select_playlist(BLURAY *bd, uint32_t playlist)
const BLURAY_DISC_INFO * bd_get_disc_info(BLURAY *)
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:667
int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter)
int64_t bd_seek_time(BLURAY *bd, uint64_t tick)