Loading...
Searching...
No Matches
bluray.h
Go to the documentation of this file.
/*
* This file is part of libbluray
* Copyright (C) 2009-2010 Obliter0n
* Copyright (C) 2009-2010 John Stebbins
* Copyright (C) 2010-2017 Petri Hintukainen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef BLURAY_H_
#define BLURAY_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#ifdef BLURAY_API_EXPORT
#include "util/attributes.h"
#elif !defined(BD_PUBLIC)
#define BD_PUBLIC
#endif
#define TITLES_ALL 0
#define TITLES_FILTER_DUP_TITLE 0x01
#define TITLES_FILTER_DUP_CLIP 0x02
#define TITLES_RELEVANT \
(TITLES_FILTER_DUP_TITLE | TITLES_FILTER_DUP_CLIP)
typedef struct bluray BLURAY;
/*
* Disc info
*/
/* AACS error codes */
#define BD_AACS_CORRUPTED_DISC -1
#define BD_AACS_NO_CONFIG -2
#define BD_AACS_NO_PK -3
#define BD_AACS_NO_CERT -4
#define BD_AACS_CERT_REVOKED -5
#define BD_AACS_MMC_FAILED -6
typedef struct {
const char *name;
uint8_t interactive;
uint8_t accessible;
uint8_t hidden;
uint8_t bdj;
uint32_t id_ref;
} BLURAY_TITLE;
typedef struct {
uint8_t bluray_detected;
/* Disc ID */
const char *disc_name;
const char *udf_volume_id;
uint8_t disc_id[20];
uint8_t no_menu_support;
uint8_t first_play_supported;
uint8_t top_menu_supported;
uint32_t num_titles;
const BLURAY_TITLE *const *titles;
const BLURAY_TITLE *first_play;
const BLURAY_TITLE *top_menu;
uint32_t num_hdmv_titles;
uint32_t num_bdj_titles;
uint32_t num_unsupported_titles;
uint8_t bdj_detected;
uint8_t bdj_supported;
uint8_t libjvm_detected;
uint8_t bdj_handled;
char bdj_org_id[9];
char bdj_disc_id[33];
/* disc application info */
uint8_t video_format;
uint8_t frame_rate;
uint8_t content_exist_3D;
uint8_t initial_output_mode_preference;
uint8_t provider_data[32];
/* AACS info (valid only if disc uses AACS) */
uint8_t aacs_detected;
uint8_t libaacs_detected;
uint8_t aacs_handled;
int aacs_error_code;
int aacs_mkbv;
/* BD+ info (valid only if disc uses BD+) */
uint8_t bdplus_detected;
uint8_t libbdplus_detected;
uint8_t bdplus_handled;
uint8_t bdplus_gen;
uint32_t bdplus_date;
/* disc application info (libbluray > 1.2.0) */
uint8_t initial_dynamic_range_type;
} BLURAY_DISC_INFO;
/*
* Playlist info
*/
typedef enum {
BLURAY_STREAM_TYPE_VIDEO_MPEG1 = 0x01,
BLURAY_STREAM_TYPE_VIDEO_MPEG2 = 0x02,
BLURAY_STREAM_TYPE_AUDIO_MPEG1 = 0x03,
BLURAY_STREAM_TYPE_AUDIO_MPEG2 = 0x04,
BLURAY_STREAM_TYPE_AUDIO_LPCM = 0x80,
BLURAY_STREAM_TYPE_AUDIO_AC3 = 0x81,
BLURAY_STREAM_TYPE_AUDIO_DTS = 0x82,
BLURAY_STREAM_TYPE_AUDIO_TRUHD = 0x83,
BLURAY_STREAM_TYPE_AUDIO_AC3PLUS = 0x84,
BLURAY_STREAM_TYPE_AUDIO_DTSHD = 0x85,
BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER = 0x86,
BLURAY_STREAM_TYPE_VIDEO_VC1 = 0xea,
BLURAY_STREAM_TYPE_VIDEO_H264 = 0x1b,
BLURAY_STREAM_TYPE_VIDEO_HEVC = 0x24,
BLURAY_STREAM_TYPE_SUB_PG = 0x90,
BLURAY_STREAM_TYPE_SUB_IG = 0x91,
BLURAY_STREAM_TYPE_SUB_TEXT = 0x92,
BLURAY_STREAM_TYPE_AUDIO_AC3PLUS_SECONDARY = 0xa1,
BLURAY_STREAM_TYPE_AUDIO_DTSHD_SECONDARY = 0xa2
} bd_stream_type_e;
typedef enum {
BLURAY_VIDEO_FORMAT_480I = 1,
BLURAY_VIDEO_FORMAT_576I = 2,
BLURAY_VIDEO_FORMAT_480P = 3,
BLURAY_VIDEO_FORMAT_1080I = 4,
BLURAY_VIDEO_FORMAT_720P = 5,
BLURAY_VIDEO_FORMAT_1080P = 6,
BLURAY_VIDEO_FORMAT_576P = 7,
BLURAY_VIDEO_FORMAT_2160P = 8,
} bd_video_format_e;
typedef enum {
BLURAY_VIDEO_RATE_24000_1001 = 1,
BLURAY_VIDEO_RATE_24 = 2,
BLURAY_VIDEO_RATE_25 = 3,
BLURAY_VIDEO_RATE_30000_1001 = 4,
BLURAY_VIDEO_RATE_50 = 6,
BLURAY_VIDEO_RATE_60000_1001 = 7
} bd_video_rate_e;
typedef enum {
BLURAY_ASPECT_RATIO_4_3 = 2,
BLURAY_ASPECT_RATIO_16_9 = 3
} bd_video_aspect_e;
typedef enum {
BLURAY_AUDIO_FORMAT_MONO = 1,
BLURAY_AUDIO_FORMAT_STEREO = 3,
BLURAY_AUDIO_FORMAT_MULTI_CHAN = 6,
BLURAY_AUDIO_FORMAT_COMBO = 12 // Stereo ac3/dts,
} bd_audio_format_e;
// multi mlp/dts-hd
typedef enum {
BLURAY_AUDIO_RATE_48 = 1,
BLURAY_AUDIO_RATE_96 = 4,
BLURAY_AUDIO_RATE_192 = 5,
BLURAY_AUDIO_RATE_192_COMBO = 12, // 48 or 96 ac3/dts
// 192 mpl/dts-hd
BLURAY_AUDIO_RATE_96_COMBO = 14 // 48 ac3/dts
// 96 mpl/dts-hd
} bd_audio_rate_e;
typedef enum {
BLURAY_TEXT_CHAR_CODE_UTF8 = 0x01,
BLURAY_TEXT_CHAR_CODE_UTF16BE = 0x02,
BLURAY_TEXT_CHAR_CODE_SHIFT_JIS = 0x03,
BLURAY_TEXT_CHAR_CODE_EUC_KR = 0x04,
BLURAY_TEXT_CHAR_CODE_GB18030_20001 = 0x05,
BLURAY_TEXT_CHAR_CODE_CN_GB = 0x06,
BLURAY_TEXT_CHAR_CODE_BIG5 = 0x07
} bd_char_code_e;
typedef enum {
BLURAY_STILL_NONE = 0x00,
BLURAY_STILL_TIME = 0x01,
BLURAY_STILL_INFINITE = 0x02,
} bd_still_mode_e;
typedef enum {
BLURAY_MARK_ENTRY = 0x01,
BLURAY_MARK_LINK = 0x02,
} bd_mark_type_e;
typedef enum {
BLURAY_DYNAMIC_RANGE_SDR = 0,
BLURAY_DYNAMIC_RANGE_HDR10 = 1,
BLURAY_DYNAMIC_RANGE_DOLBY_VISION = 2
} bd_dynamic_range_type_e;
typedef enum {
BLURAY_COLOR_SPACE_BT709 = 1,
BLURAY_COLOR_SPACE_BT2020 = 2
} bd_color_space_e;
typedef struct bd_stream_info {
uint8_t coding_type;
uint8_t format;
uint8_t rate;
uint8_t char_code;
uint8_t lang[4];
uint16_t pid;
uint8_t aspect;
uint8_t subpath_id;
uint8_t dynamic_range_type;
uint8_t color_space;
uint8_t cr_flag;
uint8_t hdr_plus_flag;
} BLURAY_STREAM_INFO;
typedef struct bd_clip {
uint32_t pkt_count;
uint8_t still_mode;
uint16_t still_time;
uint8_t video_stream_count;
uint8_t audio_stream_count;
uint8_t pg_stream_count;
uint8_t ig_stream_count;
uint8_t sec_audio_stream_count;
uint8_t sec_video_stream_count;
uint8_t dv_stream_count;
BLURAY_STREAM_INFO *video_streams;
BLURAY_STREAM_INFO *audio_streams;
BLURAY_STREAM_INFO *pg_streams;
BLURAY_STREAM_INFO *ig_streams;
BLURAY_STREAM_INFO *sec_audio_streams;
BLURAY_STREAM_INFO *sec_video_streams;
BLURAY_STREAM_INFO *dv_streams;
uint64_t start_time;
uint64_t in_time;
uint64_t out_time;
char clip_id[6];
} BLURAY_CLIP_INFO;
typedef struct bd_chapter {
uint32_t idx;
uint64_t start;
uint64_t duration;
uint64_t offset;
unsigned clip_ref;
const char *chapter_name;
} BLURAY_TITLE_CHAPTER;
typedef struct bd_mark {
uint32_t idx;
int type;
uint64_t start;
uint64_t duration;
uint64_t offset;
unsigned clip_ref;
} BLURAY_TITLE_MARK;
typedef struct bd_title_info {
uint32_t idx;
uint32_t playlist;
uint64_t duration;
uint32_t clip_count;
uint8_t angle_count;
uint32_t chapter_count;
uint32_t mark_count;
BLURAY_CLIP_INFO *clips;
BLURAY_TITLE_CHAPTER *chapters;
BLURAY_TITLE_MARK *marks;
uint8_t mvc_base_view_r_flag;
uint8_t sdr_conversion_notification_flag;
} BLURAY_TITLE_INFO;
typedef struct bd_sound_effect {
uint8_t num_channels;
uint32_t num_frames;
const int16_t *samples;
} BLURAY_SOUND_EFFECT;
BD_PUBLIC void bd_get_version(int *major, int *minor, int *micro);
/*
* Disc functions
*/
struct bd_dir_s;
struct bd_file_s;
struct meta_dl;
BD_PUBLIC BLURAY *bd_open(const char *device_path, const char *keyfile_path);
BD_PUBLIC BLURAY *bd_init(void);
BD_PUBLIC int bd_open_disc(BLURAY *bd, const char *device_path, const char *keyfile_path);
BD_PUBLIC int bd_open_stream(BLURAY *bd,
void *read_blocks_handle,
int (*read_blocks)(void *handle, void *buf, int lba, int num_blocks));
BD_PUBLIC int bd_open_files(BLURAY *bd,
void *handle,
struct bd_dir_s *(*open_dir)(void *handle, const char *rel_path),
struct bd_file_s *(*open_file)(void *handle, const char *rel_path));
BD_PUBLIC void bd_close(BLURAY *bd);
BD_PUBLIC const BLURAY_DISC_INFO *bd_get_disc_info(BLURAY *bd);
BD_PUBLIC const struct meta_dl *bd_get_meta(BLURAY *bd);
BD_PUBLIC int bd_get_meta_file(BLURAY *bd, const char *file_name, void **data, int64_t *size);
/*
* Title selection without on-disc menus
*/
BD_PUBLIC uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length);
BD_PUBLIC int bd_get_main_title(BLURAY *bd);
BD_PUBLIC BLURAY_TITLE_INFO* bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle);
BD_PUBLIC void bd_free_title_info(BLURAY_TITLE_INFO *title_info);
BD_PUBLIC int bd_select_title(BLURAY *bd, uint32_t title);
BD_PUBLIC int bd_select_playlist(BLURAY *bd, uint32_t playlist);
BD_PUBLIC uint32_t bd_get_current_title(BLURAY *bd);
BD_PUBLIC int bd_read(BLURAY *bd, unsigned char *buf, int len);
/*
* Playback control functions
*/
BD_PUBLIC int64_t bd_seek(BLURAY *bd, uint64_t pos);
BD_PUBLIC int64_t bd_seek_time(BLURAY *bd, uint64_t tick);
BD_PUBLIC int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter);
BD_PUBLIC int64_t bd_seek_mark(BLURAY *bd, unsigned mark);
BD_PUBLIC int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref);
BD_PUBLIC int bd_select_angle(BLURAY *bd, unsigned angle);
BD_PUBLIC void bd_seamless_angle_change(BLURAY *bd, unsigned angle);
BD_PUBLIC int bd_select_stream(BLURAY *bd, uint32_t stream_type, uint32_t stream_id, uint32_t enable_flag);
#define BLURAY_AUDIO_STREAM 0
#define BLURAY_PG_TEXTST_STREAM 1
/*
* Playback status functions
*/
BD_PUBLIC int64_t bd_chapter_pos(BLURAY *bd, unsigned chapter);
BD_PUBLIC uint32_t bd_get_current_chapter(BLURAY *bd);
BD_PUBLIC uint64_t bd_get_title_size(BLURAY *bd);
BD_PUBLIC unsigned bd_get_current_angle(BLURAY *bd);
BD_PUBLIC uint64_t bd_tell(BLURAY *bd);
BD_PUBLIC uint64_t bd_tell_time(BLURAY *bd);
/*
* player settings
*/
typedef enum {
BLURAY_PLAYER_SETTING_AUDIO_LANG = 16,
BLURAY_PLAYER_SETTING_PG_LANG = 17,
BLURAY_PLAYER_SETTING_MENU_LANG = 18,
BLURAY_PLAYER_SETTING_COUNTRY_CODE = 19,
BLURAY_PLAYER_SETTING_REGION_CODE = 20,
BLURAY_PLAYER_SETTING_OUTPUT_PREFER = 21,
BLURAY_PLAYER_SETTING_PARENTAL = 13,
BLURAY_PLAYER_SETTING_AUDIO_CAP = 15,
BLURAY_PLAYER_SETTING_VIDEO_CAP = 29,
BLURAY_PLAYER_SETTING_DISPLAY_CAP = 23,
BLURAY_PLAYER_SETTING_3D_CAP = 24,
BLURAY_PLAYER_SETTING_UHD_CAP = 25,
BLURAY_PLAYER_SETTING_UHD_DISPLAY_CAP = 26,
BLURAY_PLAYER_SETTING_HDR_PREFERENCE = 27,
BLURAY_PLAYER_SETTING_SDR_CONV_PREFER = 28,
BLURAY_PLAYER_SETTING_TEXT_CAP = 30,
BLURAY_PLAYER_SETTING_PLAYER_PROFILE = 31,
BLURAY_PLAYER_SETTING_DECODE_PG = 0x100,
BLURAY_PLAYER_SETTING_PERSISTENT_STORAGE = 0x101,
BLURAY_PLAYER_SETTING_UO_RESTRICTION_LEVEL = 0x102,
BLURAY_PLAYER_PERSISTENT_ROOT = 0x200,
BLURAY_PLAYER_CACHE_ROOT = 0x201,
BLURAY_PLAYER_JAVA_HOME = 0x202,
} bd_player_setting;
BD_PUBLIC int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value);
BD_PUBLIC int bd_set_player_setting_str(BLURAY *bd, uint32_t idx, const char *value);
/*
* events
*/
typedef enum {
BD_EVENT_NONE = 0,
/*
* errors
*/
BD_EVENT_ERROR = 1,
BD_EVENT_READ_ERROR = 2,
BD_EVENT_ENCRYPTED = 3,
/*
* current playback position
*/
BD_EVENT_ANGLE = 4,
BD_EVENT_TITLE = 5,
BD_EVENT_PLAYLIST = 6,
BD_EVENT_PLAYITEM = 7,
BD_EVENT_CHAPTER = 8,
BD_EVENT_PLAYMARK = 9,
BD_EVENT_END_OF_TITLE = 10,
/*
* stream selection
*/
BD_EVENT_AUDIO_STREAM = 11,
BD_EVENT_IG_STREAM = 12,
BD_EVENT_PG_TEXTST_STREAM = 13,
BD_EVENT_PIP_PG_TEXTST_STREAM = 14,
BD_EVENT_SECONDARY_AUDIO_STREAM = 15,
BD_EVENT_SECONDARY_VIDEO_STREAM = 16,
BD_EVENT_PG_TEXTST = 17,
BD_EVENT_PIP_PG_TEXTST = 18,
BD_EVENT_SECONDARY_AUDIO = 19,
BD_EVENT_SECONDARY_VIDEO = 20,
BD_EVENT_SECONDARY_VIDEO_SIZE = 21,
/*
* playback control
*/
BD_EVENT_PLAYLIST_STOP = 22,
BD_EVENT_DISCONTINUITY = 23,
BD_EVENT_SEEK = 24,
BD_EVENT_STILL = 25,
BD_EVENT_STILL_TIME = 26,
BD_EVENT_SOUND_EFFECT = 27,
/*
* status
*/
BD_EVENT_IDLE = 28,
BD_EVENT_POPUP = 29,
BD_EVENT_MENU = 30,
BD_EVENT_STEREOSCOPIC_STATUS = 31,
BD_EVENT_KEY_INTEREST_TABLE = 32,
BD_EVENT_UO_MASK_CHANGED = 33,
/*BD_EVENT_LAST = 33, */
} bd_event_e;
typedef struct {
uint32_t event;
uint32_t param;
} BD_EVENT;
/* BD_EVENT_ERROR param values */
#define BD_ERROR_HDMV 1
#define BD_ERROR_BDJ 2
/* BD_EVENT_ENCRYPTED param vlues */
#define BD_ERROR_AACS 3
#define BD_ERROR_BDPLUS 4
/* BD_EVENT_TITLE special titles */
#define BLURAY_TITLE_FIRST_PLAY 0xffff
#define BLURAY_TITLE_TOP_MENU 0
/* BD_EVENT_KEY_INTEREST flags */
#define BLURAY_KIT_PLAY 0x1
#define BLURAY_KIT_STOP 0x2
#define BLURAY_KIT_FFW 0x4
#define BLURAY_KIT_REW 0x8
#define BLURAY_KIT_TRACK_NEXT 0x10
#define BLURAY_KIT_TRACK_PREV 0x20
#define BLURAY_KIT_PAUSE 0x40
#define BLURAY_KIT_STILL_OFF 0x80
#define BLURAY_KIT_SEC_AUDIO 0x100
#define BLURAY_KIT_SEC_VIDEO 0x200
#define BLURAY_KIT_PG_TEXTST 0x400
/* BD_EVENT_UO_MASK_CHANGED flags */
#define BLURAY_UO_MENU_CALL 0x1
#define BLURAY_UO_TITLE_SEARCH 0x2
#define BLURAY_UO_CHAPTER_SEARCH 0x4
#define BLURAY_UO_TIME_SEARCH_MASK 0x8
#define BLURAY_UO_SKIP_TO_NEXT_POINT_MASK 0x10
#define BLURAY_UO_SKIP_BACK_TO_PREVIOUS_POINT_MASK 0x20
#define BLURAY_UO_STOP_MASK 0x40
#define BLURAY_UO_PAUSE_ON_MASK 0x80
#define BLURAY_UO_STILL_OFF_MASK 0x100
#define BLURAY_UO_FORWARD_PLAY_MASK 0x200
#define BLURAY_UO_BACKWARD_PLAY_MASK 0x400
#define BLURAY_UO_RESUME_MASK 0x800
#define BLURAY_UO_MOVE_UP_SELECTED_BUTTON_MASK 0x1000
#define BLURAY_UO_MOVE_DOWN_SELECTED_BUTTON_MASK 0x2000
#define BLURAY_UO_MOVE_LEFT_SELECTED_BUTTON_MASK 0x4000
#define BLURAY_UO_MOVE_RIGHT_SELECTED_BUTTON_MASK 0x8000
#define BLURAY_UO_SELECT_BUTTON_MASK 0x10000
#define BLURAY_UO_ACTIVATE_BUTTON_MASK 0x20000
#define BLURAY_UO_SELECT_AND_ACTIVATE_MASK 0x40000
#define BLURAY_UO_PRIMARY_AUDIO_CHANGE_MASK 0x80000
#define BLURAY_UO_ANGLE_CHANGE_MASK 0x100000
#define BLURAY_UO_POPUP_ON_MASK 0x200000
#define BLURAY_UO_POPUP_OFF_MASK 0x400000
#define BLURAY_UO_PG_TEXTST_ENABLE_DISABLE_MASK 0x800000
#define BLURAY_UO_PG_TEXTST_CHANGE_MASK 0x1000000
#define BLURAY_UO_SECONDARY_VIDEO_ENABLE_DISABLE_MASK 0x2000000
#define BLURAY_UO_SECONDARY_VIDEO_CHANGE_MASK 0x4000000
#define BLURAY_UO_SECONDARY_AUDIO_ENABLE_DISABLE_MASK 0x8000000
#define BLURAY_UO_SECONDARY_AUDIO_CHANGE_MASK 0x10000000
#define BLURAY_UO_PIP_PG_TEXTST_CHANGE_MASK 0x20000000
BD_PUBLIC int bd_get_event(BLURAY *bd, BD_EVENT *event);
BD_PUBLIC const char *bd_event_name(uint32_t /* bd_event_e */ event);
/*
* On-screen display
*/
struct bd_overlay_s; /* defined in overlay.h */
struct bd_argb_overlay_s; /* defined in overlay.h */
struct bd_argb_buffer_s; /* defined in overlay.h */
typedef void (*bd_overlay_proc_f)(void *handle, const struct bd_overlay_s * const event);
typedef void (*bd_argb_overlay_proc_f)(void *handle, const struct bd_argb_overlay_s * const event);
BD_PUBLIC void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func);
BD_PUBLIC void bd_register_argb_overlay_proc(BLURAY *bd, void *handle, bd_argb_overlay_proc_f func, struct bd_argb_buffer_s *buf);
/*
* Playback with on-disc menus
*/
BD_PUBLIC int bd_play(BLURAY *bd);
BD_PUBLIC int bd_play_title(BLURAY *bd, unsigned title);
BD_PUBLIC int bd_menu_call(BLURAY *bd, int64_t pts);
BD_PUBLIC int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event);
BD_PUBLIC int bd_read_skip_still(BLURAY *bd);
BD_PUBLIC BLURAY_TITLE_INFO* bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle);
BD_PUBLIC int bd_get_sound_effect(BLURAY *bd, unsigned sound_id, struct bd_sound_effect *effect);
/*
* User interaction
*/
BD_PUBLIC void bd_set_scr(BLURAY *bd, int64_t pts);
BD_PUBLIC int bd_set_rate(BLURAY *bd, uint32_t rate);
#define BLURAY_RATE_PAUSED 0
#define BLURAY_RATE_NORMAL 90000
BD_PUBLIC int bd_user_input(BLURAY *bd, int64_t pts, uint32_t key);
BD_PUBLIC int bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y);
/*
* Testing and debugging
*
* Note: parsing functions can't be used with UDF images.
*/
/* access to internal information */
struct clpi_cl;
struct mpls_pl;
struct bdjo_data;
struct mobj_objects;
BD_PUBLIC struct clpi_cl *bd_get_clpi(BLURAY *bd, unsigned clip_ref);
BD_PUBLIC struct clpi_cl *bd_read_clpi(const char *clpi_file);
BD_PUBLIC void bd_free_clpi(struct clpi_cl *cl);
BD_PUBLIC struct mpls_pl *bd_read_mpls(const char *mpls_file);
BD_PUBLIC void bd_free_mpls(struct mpls_pl *);
BD_PUBLIC struct mobj_objects *bd_read_mobj(const char *mobj_file);
BD_PUBLIC void bd_free_mobj(struct mobj_objects *);
BD_PUBLIC struct bdjo_data *bd_read_bdjo(const char *bdjo_file);
BD_PUBLIC void bd_free_bdjo(struct bdjo_data *);
/* BD-J testing */
BD_PUBLIC int bd_start_bdj(BLURAY *bd, const char* start_object);
BD_PUBLIC void bd_stop_bdj(BLURAY *bd);
BD_PUBLIC int bd_read_file(BLURAY *bd, const char *path, void **data, int64_t *size);
BD_PUBLIC struct bd_dir_s *bd_open_dir(BLURAY *bd, const char *dir);
BD_PUBLIC struct bd_file_s *bd_open_file_dec(BLURAY *bd, const char *path);
#ifdef __cplusplus
}
#endif
#endif /* BLURAY_H_ */
bd_open_disc
BD_PUBLIC int bd_open_disc(BLURAY *bd, const char *device_path, const char *keyfile_path)
Open BluRay disc.
bd_seek
BD_PUBLIC int64_t bd_seek(BLURAY *bd, uint64_t pos)
Seek to pos in currently selected title.
bd_play
BD_PUBLIC int bd_play(BLURAY *bd)
Start playing disc with on-disc menus.
bd_get_meta_file
BD_PUBLIC int bd_get_meta_file(BLURAY *bd, const char *file_name, void **data, int64_t *size)
Read metadata file from BluRay disc.
bd_overlay_proc_f
void(* bd_overlay_proc_f)(void *handle, const struct bd_overlay_s *const event)
YUV overlay handler function type.
Definition bluray.h:979
bd_tell
BD_PUBLIC uint64_t bd_tell(BLURAY *bd)
Return current pos.
bd_seek_playitem
BD_PUBLIC int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref)
Seek to a playitem.
bd_get_playlist_info
BD_PUBLIC BLURAY_TITLE_INFO * bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle)
Get information about a playlist.
bd_register_overlay_proc
BD_PUBLIC void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func)
Register handler for compressed YUV overlays.
bd_read_ext
BD_PUBLIC int bd_read_ext(BLURAY *bd, unsigned char *buf, int len, BD_EVENT *event)
Read from currently playing title.
bd_set_player_setting_str
BD_PUBLIC int bd_set_player_setting_str(BLURAY *bd, uint32_t idx, const char *value)
Update player setting (string).
bd_user_input
BD_PUBLIC int bd_user_input(BLURAY *bd, int64_t pts, uint32_t key)
Pass user input to graphics controller or BD-J.
bd_get_event
BD_PUBLIC int bd_get_event(BLURAY *bd, BD_EVENT *event)
Get event from libbluray event queue.
bd_close
BD_PUBLIC void bd_close(BLURAY *bd)
Close BluRay disc.
bd_read_bdjo
BD_PUBLIC struct bdjo_data * bd_read_bdjo(const char *bdjo_file)
Testing/debugging: Parse BD-J object file (BDJO).
bd_read_mobj
BD_PUBLIC struct mobj_objects * bd_read_mobj(const char *mobj_file)
Testing/debugging: Parse movie objects (MOBJ) file.
bd_free_bdjo
BD_PUBLIC void bd_free_bdjo(struct bdjo_data *)
Testing/debugging: Free parsed BDJO object.
bd_player_setting
bd_player_setting
Player setting.
Definition bluray.h:733
BLURAY_PLAYER_SETTING_DISPLAY_CAP
@ BLURAY_PLAYER_SETTING_DISPLAY_CAP
Display capability.
Definition bluray.h:743
BLURAY_PLAYER_SETTING_PERSISTENT_STORAGE
@ BLURAY_PLAYER_SETTING_PERSISTENT_STORAGE
Enable/disable BD-J persistent storage.
Definition bluray.h:753
BLURAY_PLAYER_SETTING_AUDIO_LANG
@ BLURAY_PLAYER_SETTING_AUDIO_LANG
Initial audio language.
Definition bluray.h:734
BLURAY_PLAYER_SETTING_COUNTRY_CODE
@ BLURAY_PLAYER_SETTING_COUNTRY_CODE
Player country code.
Definition bluray.h:737
BLURAY_PLAYER_SETTING_OUTPUT_PREFER
@ BLURAY_PLAYER_SETTING_OUTPUT_PREFER
Output mode preference.
Definition bluray.h:739
BLURAY_PLAYER_CACHE_ROOT
@ BLURAY_PLAYER_CACHE_ROOT
Root path to the BD_J cache storage location.
Definition bluray.h:757
BLURAY_PLAYER_SETTING_HDR_PREFERENCE
@ BLURAY_PLAYER_SETTING_HDR_PREFERENCE
HDR preference.
Definition bluray.h:747
BLURAY_PLAYER_SETTING_VIDEO_CAP
@ BLURAY_PLAYER_SETTING_VIDEO_CAP
Video capability.
Definition bluray.h:742
BLURAY_PLAYER_SETTING_TEXT_CAP
@ BLURAY_PLAYER_SETTING_TEXT_CAP
Text Subtitle capability.
Definition bluray.h:749
BLURAY_PLAYER_SETTING_PLAYER_PROFILE
@ BLURAY_PLAYER_SETTING_PLAYER_PROFILE
Player profile and version.
Definition bluray.h:750
BLURAY_PLAYER_SETTING_REGION_CODE
@ BLURAY_PLAYER_SETTING_REGION_CODE
Player region code.
Definition bluray.h:738
BLURAY_PLAYER_SETTING_PG_LANG
@ BLURAY_PLAYER_SETTING_PG_LANG
Initial PG/SPU language.
Definition bluray.h:735
BLURAY_PLAYER_SETTING_3D_CAP
@ BLURAY_PLAYER_SETTING_3D_CAP
3D capability.
Definition bluray.h:744
BLURAY_PLAYER_SETTING_PARENTAL
@ BLURAY_PLAYER_SETTING_PARENTAL
Age for parental control.
Definition bluray.h:740
BLURAY_PLAYER_SETTING_SDR_CONV_PREFER
@ BLURAY_PLAYER_SETTING_SDR_CONV_PREFER
SDR conversion preference.
Definition bluray.h:748
BLURAY_PLAYER_SETTING_UHD_CAP
@ BLURAY_PLAYER_SETTING_UHD_CAP
UHD capability.
Definition bluray.h:745
BLURAY_PLAYER_SETTING_MENU_LANG
@ BLURAY_PLAYER_SETTING_MENU_LANG
Initial menu language.
Definition bluray.h:736
BLURAY_PLAYER_SETTING_UO_RESTRICTION_LEVEL
@ BLURAY_PLAYER_SETTING_UO_RESTRICTION_LEVEL
Set User Operations (UO) restriction mask enforcement level.
Definition bluray.h:754
BLURAY_PLAYER_SETTING_DECODE_PG
@ BLURAY_PLAYER_SETTING_DECODE_PG
Enable/disable PG (subtitle) decoder.
Definition bluray.h:752
BLURAY_PLAYER_SETTING_UHD_DISPLAY_CAP
@ BLURAY_PLAYER_SETTING_UHD_DISPLAY_CAP
UHD display capability.
Definition bluray.h:746
BLURAY_PLAYER_SETTING_AUDIO_CAP
@ BLURAY_PLAYER_SETTING_AUDIO_CAP
Audio capability.
Definition bluray.h:741
BLURAY_PLAYER_PERSISTENT_ROOT
@ BLURAY_PLAYER_PERSISTENT_ROOT
Root path to the BD_J persistent storage location.
Definition bluray.h:756
BLURAY_PLAYER_JAVA_HOME
@ BLURAY_PLAYER_JAVA_HOME
Location of JRE.
Definition bluray.h:758
bd_event_name
BD_PUBLIC const char * bd_event_name(uint32_t event)
Get name of event.
bd_get_main_title
BD_PUBLIC int bd_get_main_title(BLURAY *bd)
Get main title Returned number is an index to the list created by bd_get_titles().
bd_get_current_angle
BD_PUBLIC unsigned bd_get_current_angle(BLURAY *bd)
Return the current angle.
bd_open_stream
BD_PUBLIC int bd_open_stream(BLURAY *bd, void *read_blocks_handle, int(*read_blocks)(void *handle, void *buf, int lba, int num_blocks))
Open BluRay disc.
bd_read_clpi
BD_PUBLIC struct clpi_cl * bd_read_clpi(const char *clpi_file)
Testing/debugging: Parse clip information (CLPI) file.
bd_tell_time
BD_PUBLIC uint64_t bd_tell_time(BLURAY *bd)
Return current time.
bd_argb_overlay_proc_f
void(* bd_argb_overlay_proc_f)(void *handle, const struct bd_argb_overlay_s *const event)
ARGB overlay handler function type.
Definition bluray.h:987
bd_mark_type_e
bd_mark_type_e
Mark type.
Definition bluray.h:229
BLURAY_MARK_ENTRY
@ BLURAY_MARK_ENTRY
entry mark for chapter search
Definition bluray.h:230
BLURAY_MARK_LINK
@ BLURAY_MARK_LINK
link point
Definition bluray.h:231
bd_play_title
BD_PUBLIC int bd_play_title(BLURAY *bd, unsigned title)
Play a title (from disc index).
bd_select_title
BD_PUBLIC int bd_select_title(BLURAY *bd, uint32_t title)
Select the title from the list created by bd_get_titles().
bd_set_player_setting
BD_PUBLIC int bd_set_player_setting(BLURAY *bd, uint32_t idx, uint32_t value)
Update player setting.
bd_dynamic_range_type_e
bd_dynamic_range_type_e
Clip dynamic range.
Definition bluray.h:235
bd_video_rate_e
bd_video_rate_e
Stream video frame rate.
Definition bluray.h:176
BLURAY_VIDEO_RATE_60000_1001
@ BLURAY_VIDEO_RATE_60000_1001
59.94 Hz
Definition bluray.h:182
BLURAY_VIDEO_RATE_24000_1001
@ BLURAY_VIDEO_RATE_24000_1001
23.976 Hz
Definition bluray.h:177
BLURAY_VIDEO_RATE_50
@ BLURAY_VIDEO_RATE_50
50 Hz
Definition bluray.h:181
BLURAY_VIDEO_RATE_24
@ BLURAY_VIDEO_RATE_24
24 Hz
Definition bluray.h:178
BLURAY_VIDEO_RATE_25
@ BLURAY_VIDEO_RATE_25
25 Hz
Definition bluray.h:179
BLURAY_VIDEO_RATE_30000_1001
@ BLURAY_VIDEO_RATE_30000_1001
29.97 Hz
Definition bluray.h:180
bd_read
BD_PUBLIC int bd_read(BLURAY *bd, unsigned char *buf, int len)
Read from currently selected title file, decrypt if possible.
bd_get_current_chapter
BD_PUBLIC uint32_t bd_get_current_chapter(BLURAY *bd)
Get the current chapter.
bd_free_title_info
BD_PUBLIC void bd_free_title_info(BLURAY_TITLE_INFO *title_info)
Free BLURAY_TITLE_INFO object.
bd_free_mobj
BD_PUBLIC void bd_free_mobj(struct mobj_objects *)
Testing/debugging: Free parsed movie objects.
bd_open
BD_PUBLIC BLURAY * bd_open(const char *device_path, const char *keyfile_path)
Open BluRay disc.
bd_menu_call
BD_PUBLIC int bd_menu_call(BLURAY *bd, int64_t pts)
Open BluRay disc Top Menu.
bd_stream_type_e
bd_stream_type_e
Stream video coding type.
Definition bluray.h:141
bd_char_code_e
bd_char_code_e
Text subtitle charset.
Definition bluray.h:211
bd_video_format_e
bd_video_format_e
Stream video format.
Definition bluray.h:164
BLURAY_VIDEO_FORMAT_1080P
@ BLURAY_VIDEO_FORMAT_1080P
SMPTE 274M.
Definition bluray.h:170
BLURAY_VIDEO_FORMAT_720P
@ BLURAY_VIDEO_FORMAT_720P
SMPTE 296M.
Definition bluray.h:169
BLURAY_VIDEO_FORMAT_576P
@ BLURAY_VIDEO_FORMAT_576P
ITU-R BT.1358.
Definition bluray.h:171
BLURAY_VIDEO_FORMAT_576I
@ BLURAY_VIDEO_FORMAT_576I
ITU-R BT.601-4.
Definition bluray.h:166
BLURAY_VIDEO_FORMAT_480P
@ BLURAY_VIDEO_FORMAT_480P
SMPTE 293M.
Definition bluray.h:167
BLURAY_VIDEO_FORMAT_1080I
@ BLURAY_VIDEO_FORMAT_1080I
SMPTE 274M.
Definition bluray.h:168
BLURAY_VIDEO_FORMAT_480I
@ BLURAY_VIDEO_FORMAT_480I
ITU-R BT.601-5.
Definition bluray.h:165
BLURAY_VIDEO_FORMAT_2160P
@ BLURAY_VIDEO_FORMAT_2160P
BT.2020.
Definition bluray.h:172
bd_init
BD_PUBLIC BLURAY * bd_init(void)
Initialize BLURAY object.
bd_read_file
BD_PUBLIC int bd_read_file(BLURAY *bd, const char *path, void **data, int64_t *size)
Read a file from BluRay Virtual File System.
bd_get_titles
BD_PUBLIC uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length)
Get number of titles (playlists).
bd_read_mpls
BD_PUBLIC struct mpls_pl * bd_read_mpls(const char *mpls_file)
Testing/debugging: Parse playlist (MPLS) file.
bd_read_skip_still
BD_PUBLIC int bd_read_skip_still(BLURAY *bd)
Continue reading after still mode clip.
bd_select_stream
BD_PUBLIC int bd_select_stream(BLURAY *bd, uint32_t stream_type, uint32_t stream_id, uint32_t enable_flag)
Select stream (PG / TextST track).
bd_free_mpls
BD_PUBLIC void bd_free_mpls(struct mpls_pl *)
Testing/debugging: Free parsed playlist.
bd_seek_time
BD_PUBLIC int64_t bd_seek_time(BLURAY *bd, uint64_t tick)
Seek to specific time in 90Khz ticks.
bd_set_scr
BD_PUBLIC void bd_set_scr(BLURAY *bd, int64_t pts)
Update current pts.
bd_seek_mark
BD_PUBLIC int64_t bd_seek_mark(BLURAY *bd, unsigned mark)
Seek to a playmark.
bd_open_files
BD_PUBLIC int bd_open_files(BLURAY *bd, void *handle, struct bd_dir_s *(*open_dir)(void *handle, const char *rel_path), struct bd_file_s *(*open_file)(void *handle, const char *rel_path))
Open BluRay disc.
BLURAY
struct bluray BLURAY
This structure is opaque.
Definition bluray.h:51
bd_start_bdj
BD_PUBLIC int bd_start_bdj(BLURAY *bd, const char *start_object)
Testing/debugging: start BD-J from the specified BD-J object (should be a 5 character string).
bd_mouse_select
BD_PUBLIC int bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y)
Select menu button at location (x,y).
bd_get_title_size
BD_PUBLIC uint64_t bd_get_title_size(BLURAY *bd)
Returns file size in bytes of currently selected title, 0 in no title selected.
bd_stop_bdj
BD_PUBLIC void bd_stop_bdj(BLURAY *bd)
Testing/debugging: shutdown BD-J and clean up resources.
bd_get_meta
BD_PUBLIC const struct meta_dl * bd_get_meta(BLURAY *bd)
Get meta information about current BluRay disc.
bd_chapter_pos
BD_PUBLIC int64_t bd_chapter_pos(BLURAY *bd, unsigned chapter)
Find the byte position of a chapter.
bd_free_clpi
BD_PUBLIC void bd_free_clpi(struct clpi_cl *cl)
Free CLPI_CL object.
bd_select_angle
BD_PUBLIC int bd_select_angle(BLURAY *bd, unsigned angle)
Set the angle to play.
bd_get_sound_effect
BD_PUBLIC int bd_get_sound_effect(BLURAY *bd, unsigned sound_id, struct bd_sound_effect *effect)
Get sound effect.
bd_get_clpi
BD_PUBLIC struct clpi_cl * bd_get_clpi(BLURAY *bd, unsigned clip_ref)
Get copy of clip information for requested playitem.
bd_get_disc_info
BD_PUBLIC const BLURAY_DISC_INFO * bd_get_disc_info(BLURAY *bd)
Get information about current BluRay disc.
bd_register_argb_overlay_proc
BD_PUBLIC void bd_register_argb_overlay_proc(BLURAY *bd, void *handle, bd_argb_overlay_proc_f func, struct bd_argb_buffer_s *buf)
Register handler for ARGB overlays.
bd_get_title_info
BD_PUBLIC BLURAY_TITLE_INFO * bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle)
Get information about a title.
bd_open_dir
BD_PUBLIC struct bd_dir_s * bd_open_dir(BLURAY *bd, const char *dir)
Open a directory from BluRay Virtual File System.
bd_seamless_angle_change
BD_PUBLIC void bd_seamless_angle_change(BLURAY *bd, unsigned angle)
Initiate seamless angle change.
bd_select_playlist
BD_PUBLIC int bd_select_playlist(BLURAY *bd, uint32_t playlist)
Select a playlist.
bd_get_current_title
BD_PUBLIC uint32_t bd_get_current_title(BLURAY *bd)
Returns the current title index.
bd_video_aspect_e
bd_video_aspect_e
Stream video aspect ratio.
Definition bluray.h:186
bd_open_file_dec
BD_PUBLIC struct bd_file_s * bd_open_file_dec(BLURAY *bd, const char *path)
Open a file from BluRay Virtual File System.
bd_audio_format_e
bd_audio_format_e
Stream audio format.
Definition bluray.h:192
bd_audio_rate_e
bd_audio_rate_e
Stream audio rate.
Definition bluray.h:200
bd_set_rate
BD_PUBLIC int bd_set_rate(BLURAY *bd, uint32_t rate)
Set current playback rate.
bd_seek_chapter
BD_PUBLIC int64_t bd_seek_chapter(BLURAY *bd, unsigned chapter)
Seek to a chapter.
bd_get_version
BD_PUBLIC void bd_get_version(int *major, int *minor, int *micro)
Get libbluray version.
bd_event_e
bd_event_e
Event type.
Definition bluray.h:792
BD_EVENT_SEEK
@ BD_EVENT_SEEK
HDMV VM or JVM seeked the stream.
Definition bluray.h:844
BD_EVENT_MENU
@ BD_EVENT_MENU
Interactive menu visible.
Definition bluray.h:868
BD_EVENT_PIP_PG_TEXTST_STREAM
@ BD_EVENT_PIP_PG_TEXTST_STREAM
1..255, 0xfff = none
Definition bluray.h:823
BD_EVENT_STILL_TIME
@ BD_EVENT_STILL_TIME
Still playback for n seconds (reached end of still mode play item).
Definition bluray.h:851
BD_EVENT_SECONDARY_VIDEO_STREAM
@ BD_EVENT_SECONDARY_VIDEO_STREAM
1..32, 0xff = none
Definition bluray.h:825
BD_EVENT_TITLE
@ BD_EVENT_TITLE
current title, 1...N (0 = top menu)
Definition bluray.h:809
BD_EVENT_PG_TEXTST_STREAM
@ BD_EVENT_PG_TEXTST_STREAM
1..255, 0xfff = none
Definition bluray.h:822
BD_EVENT_STEREOSCOPIC_STATUS
@ BD_EVENT_STEREOSCOPIC_STATUS
3D
Definition bluray.h:871
BD_EVENT_PIP_PG_TEXTST
@ BD_EVENT_PIP_PG_TEXTST
0 - disable, 1 - enable
Definition bluray.h:828
BD_EVENT_IDLE
@ BD_EVENT_IDLE
Nothing to do.
Definition bluray.h:862
BD_EVENT_PLAYLIST
@ BD_EVENT_PLAYLIST
current playlist (xxxxx.mpls)
Definition bluray.h:810
BD_EVENT_PG_TEXTST
@ BD_EVENT_PG_TEXTST
0 - disable, 1 - enable
Definition bluray.h:827
BD_EVENT_CHAPTER
@ BD_EVENT_CHAPTER
current chapter, 1...N
Definition bluray.h:812
BD_EVENT_ANGLE
@ BD_EVENT_ANGLE
current angle, 1...N
Definition bluray.h:808
BD_EVENT_PLAYITEM
@ BD_EVENT_PLAYITEM
current play item, 0...N-1
Definition bluray.h:811
BD_EVENT_UO_MASK_CHANGED
@ BD_EVENT_UO_MASK_CHANGED
UO mask changed.
Definition bluray.h:877
BD_EVENT_ENCRYPTED
@ BD_EVENT_ENCRYPTED
.m2ts file is encrypted and can't be played
Definition bluray.h:802
BD_EVENT_POPUP
@ BD_EVENT_POPUP
Pop-Up menu available.
Definition bluray.h:865
BD_EVENT_PLAYLIST_STOP
@ BD_EVENT_PLAYLIST_STOP
HDMV VM or JVM stopped playlist playback.
Definition bluray.h:838
BD_EVENT_SECONDARY_VIDEO
@ BD_EVENT_SECONDARY_VIDEO
0 - disable, 1 - enable
Definition bluray.h:830
BD_EVENT_KEY_INTEREST_TABLE
@ BD_EVENT_KEY_INTEREST_TABLE
BD-J key interest table changed.
Definition bluray.h:874
BD_EVENT_END_OF_TITLE
@ BD_EVENT_END_OF_TITLE
end of title reached
Definition bluray.h:814
BD_EVENT_IG_STREAM
@ BD_EVENT_IG_STREAM
1..32
Definition bluray.h:821
BD_EVENT_PLAYMARK
@ BD_EVENT_PLAYMARK
playmark reached
Definition bluray.h:813
BD_EVENT_SECONDARY_AUDIO
@ BD_EVENT_SECONDARY_AUDIO
0 - disable, 1 - enable
Definition bluray.h:829
BD_EVENT_SOUND_EFFECT
@ BD_EVENT_SOUND_EFFECT
Play sound effect.
Definition bluray.h:854
BD_EVENT_SECONDARY_VIDEO_SIZE
@ BD_EVENT_SECONDARY_VIDEO_SIZE
0 - PIP, 0xf - fullscreen
Definition bluray.h:831
BD_EVENT_STILL
@ BD_EVENT_STILL
still playback (pause)
Definition bluray.h:847
BD_EVENT_DISCONTINUITY
@ BD_EVENT_DISCONTINUITY
discontinuity in the stream (non-seamless connection).
Definition bluray.h:841
BD_EVENT_NONE
@ BD_EVENT_NONE
no pending events
Definition bluray.h:794
BD_EVENT_SECONDARY_AUDIO_STREAM
@ BD_EVENT_SECONDARY_AUDIO_STREAM
1..32, 0xff = none
Definition bluray.h:824
BD_EVENT_ERROR
@ BD_EVENT_ERROR
Fatal error.
Definition bluray.h:800
BD_EVENT_AUDIO_STREAM
@ BD_EVENT_AUDIO_STREAM
1..32, 0xff = none
Definition bluray.h:820
BD_EVENT_READ_ERROR
@ BD_EVENT_READ_ERROR
Reading of .m2ts aligned unit failed.
Definition bluray.h:801
bd_still_mode_e
bd_still_mode_e
Clip still mode type.
Definition bluray.h:222
BLURAY_STILL_INFINITE
@ BLURAY_STILL_INFINITE
Infinite still.
Definition bluray.h:225
BLURAY_STILL_TIME
@ BLURAY_STILL_TIME
Still playback for fixed time.
Definition bluray.h:224
BLURAY_STILL_NONE
@ BLURAY_STILL_NONE
No still (normal playback).
Definition bluray.h:223
BD_EVENT
Event.
Definition bluray.h:884
BD_EVENT::event
uint32_t event
Event type (bd_event_e).
Definition bluray.h:885
BD_EVENT::param
uint32_t param
Event data.
Definition bluray.h:886
BLURAY_CLIP_INFO
Clip information.
Definition bluray.h:263
BLURAY_CLIP_INFO::still_time
uint16_t still_time
Still time (seconds) if still_mode == BD_STILL_TIME.
Definition bluray.h:266
BLURAY_CLIP_INFO::sec_video_stream_count
uint8_t sec_video_stream_count
Number of secondary video streams.
Definition bluray.h:272
BLURAY_CLIP_INFO::audio_streams
BLURAY_STREAM_INFO * audio_streams
Audio streams information.
Definition bluray.h:275
BLURAY_CLIP_INFO::pg_stream_count
uint8_t pg_stream_count
Number of PG (Presentation Graphics) streams.
Definition bluray.h:269
BLURAY_CLIP_INFO::start_time
uint64_t start_time
start media time, 90kHz, ("playlist time")
Definition bluray.h:282
BLURAY_CLIP_INFO::pg_streams
BLURAY_STREAM_INFO * pg_streams
PG (Presentation Graphics) streams information.
Definition bluray.h:276
BLURAY_CLIP_INFO::sec_audio_stream_count
uint8_t sec_audio_stream_count
Number of secondary audio streams.
Definition bluray.h:271
BLURAY_CLIP_INFO::out_time
uint64_t out_time
end timestamp, 90kHz
Definition bluray.h:284
BLURAY_CLIP_INFO::audio_stream_count
uint8_t audio_stream_count
Number of audio streams.
Definition bluray.h:268
BLURAY_CLIP_INFO::in_time
uint64_t in_time
start timestamp, 90kHz
Definition bluray.h:283
BLURAY_CLIP_INFO::clip_id
char clip_id[6]
Clip identifier (.m2ts file name).
Definition bluray.h:285
BLURAY_CLIP_INFO::pkt_count
uint32_t pkt_count
Number of mpeg-ts packets.
Definition bluray.h:264
BLURAY_CLIP_INFO::video_streams
BLURAY_STREAM_INFO * video_streams
Video streams information.
Definition bluray.h:274
BLURAY_CLIP_INFO::video_stream_count
uint8_t video_stream_count
Number of video streams.
Definition bluray.h:267
BLURAY_CLIP_INFO::ig_stream_count
uint8_t ig_stream_count
Number of IG (Interactive Graphics) streams.
Definition bluray.h:270
BLURAY_CLIP_INFO::sec_audio_streams
BLURAY_STREAM_INFO * sec_audio_streams
Secondary audio streams information.
Definition bluray.h:278
BLURAY_CLIP_INFO::ig_streams
BLURAY_STREAM_INFO * ig_streams
IG (Interactive Graphics) streams information.
Definition bluray.h:277
BLURAY_CLIP_INFO::sec_video_streams
BLURAY_STREAM_INFO * sec_video_streams
Secondary video streams information.
Definition bluray.h:279
BLURAY_CLIP_INFO::still_mode
uint8_t still_mode
Clip still mode (bd_still_mode_e).
Definition bluray.h:265
BLURAY_DISC_INFO
BluRay disc information.
Definition bluray.h:77
BLURAY_DISC_INFO::top_menu
const BLURAY_TITLE * top_menu
titles[0].
Definition bluray.h:93
BLURAY_DISC_INFO::libjvm_detected
uint8_t libjvm_detected
1 if usable Java VM was found
Definition bluray.h:102
BLURAY_DISC_INFO::frame_rate
uint8_t frame_rate
bd_video_rate_e
Definition bluray.h:110
BLURAY_DISC_INFO::bdplus_detected
uint8_t bdplus_detected
1 if disc is using BD+ encoding
Definition bluray.h:124
BLURAY_DISC_INFO::titles
const BLURAY_TITLE *const * titles
index is title number 1 ... N
Definition bluray.h:91
BLURAY_DISC_INFO::content_exist_3D
uint8_t content_exist_3D
1 if 3D content exists on the disc
Definition bluray.h:111
BLURAY_DISC_INFO::initial_dynamic_range_type
uint8_t initial_dynamic_range_type
bd_dynamic_range_type_e
Definition bluray.h:132
BLURAY_DISC_INFO::bdplus_date
uint32_t bdplus_date
BD+ content code relese date ((year<<16)|(month<<8)|day).
Definition bluray.h:129
BLURAY_DISC_INFO::libaacs_detected
uint8_t libaacs_detected
1 if usable AACS decoding library was found
Definition bluray.h:117
BLURAY_DISC_INFO::bdplus_gen
uint8_t bdplus_gen
BD+ content code generation.
Definition bluray.h:128
BLURAY_DISC_INFO::bdj_disc_id
char bdj_disc_id[33]
(BD-J) disc ID
Definition bluray.h:106
BLURAY_DISC_INFO::num_unsupported_titles
uint32_t num_unsupported_titles
number of unsupported titles
Definition bluray.h:97
BLURAY_DISC_INFO::provider_data
uint8_t provider_data[32]
Content provider data.
Definition bluray.h:113
BLURAY_DISC_INFO::disc_name
const char * disc_name
optional disc name in preferred language
Definition bluray.h:81
BLURAY_DISC_INFO::aacs_handled
uint8_t aacs_handled
1 if disc is using supported AACS encoding
Definition bluray.h:118
BLURAY_DISC_INFO::first_play_supported
uint8_t first_play_supported
1 if First Play title is present on the disc and can be played
Definition bluray.h:87
BLURAY_DISC_INFO::disc_id
uint8_t disc_id[20]
Disc ID.
Definition bluray.h:83
BLURAY_DISC_INFO::bdj_supported
uint8_t bdj_supported
(deprecated)
Definition bluray.h:101
BLURAY_DISC_INFO::udf_volume_id
const char * udf_volume_id
optional UDF volume identifier
Definition bluray.h:82
BLURAY_DISC_INFO::no_menu_support
uint8_t no_menu_support
HDMV / BD-J titles.
Definition bluray.h:86
BLURAY_DISC_INFO::bdplus_handled
uint8_t bdplus_handled
1 if disc is using supporred BD+ encoding
Definition bluray.h:126
BLURAY_DISC_INFO::bdj_detected
uint8_t bdj_detected
BD-J info (valid only if disc uses BD-J).
Definition bluray.h:100
BLURAY_DISC_INFO::num_hdmv_titles
uint32_t num_hdmv_titles
number of HDMV titles
Definition bluray.h:95
BLURAY_DISC_INFO::num_bdj_titles
uint32_t num_bdj_titles
number of BD-J titles
Definition bluray.h:96
BLURAY_DISC_INFO::initial_output_mode_preference
uint8_t initial_output_mode_preference
0 - 2D, 1 - 3D
Definition bluray.h:112
BLURAY_DISC_INFO::bluray_detected
uint8_t bluray_detected
1 if BluRay disc was detected
Definition bluray.h:78
BLURAY_DISC_INFO::first_play
const BLURAY_TITLE * first_play
titles[N+1].
Definition bluray.h:92
BLURAY_DISC_INFO::aacs_error_code
int aacs_error_code
AACS error code (BD_AACS_*).
Definition bluray.h:120
BLURAY_DISC_INFO::aacs_mkbv
int aacs_mkbv
AACS MKB version.
Definition bluray.h:121
BLURAY_DISC_INFO::bdj_org_id
char bdj_org_id[9]
(BD-J) disc organization ID
Definition bluray.h:105
BLURAY_DISC_INFO::top_menu_supported
uint8_t top_menu_supported
1 if Top Menu title is present on the disc and can be played
Definition bluray.h:88
BLURAY_DISC_INFO::libbdplus_detected
uint8_t libbdplus_detected
1 if usable BD+ decoding library was found
Definition bluray.h:125
BLURAY_DISC_INFO::bdj_handled
uint8_t bdj_handled
1 if usable Java VM + libbluray.jar was found
Definition bluray.h:103
BLURAY_DISC_INFO::aacs_detected
uint8_t aacs_detected
1 if disc is using AACS encoding
Definition bluray.h:116
BLURAY_DISC_INFO::num_titles
uint32_t num_titles
number of titles on the disc, not including "First Play" and "Top Menu"
Definition bluray.h:90
BLURAY_DISC_INFO::video_format
uint8_t video_format
bd_video_format_e
Definition bluray.h:109
BLURAY_SOUND_EFFECT
Sound effect data.
Definition bluray.h:328
BLURAY_SOUND_EFFECT::samples
const int16_t * samples
48000 Hz, 16 bit LPCM.
Definition bluray.h:331
BLURAY_SOUND_EFFECT::num_frames
uint32_t num_frames
Number of audio frames.
Definition bluray.h:330
BLURAY_SOUND_EFFECT::num_channels
uint8_t num_channels
1 - mono, 2 - stereo
Definition bluray.h:329
BLURAY_STREAM_INFO
Clip substream information.
Definition bluray.h:247
BLURAY_STREAM_INFO::lang
uint8_t lang[4]
Language code.
Definition bluray.h:252
BLURAY_STREAM_INFO::aspect
uint8_t aspect
Stream video aspect ratio (bd_video_aspect_e).
Definition bluray.h:254
BLURAY_STREAM_INFO::rate
uint8_t rate
Stream frame rate (bd_audio_rate_e or bd_video_rate_e).
Definition bluray.h:250
BLURAY_STREAM_INFO::format
uint8_t format
Stream format (bd_video_format_e or bd_audio_format_e).
Definition bluray.h:249
BLURAY_STREAM_INFO::char_code
uint8_t char_code
Text subtitle charachter code (bd_char_code_e).
Definition bluray.h:251
BLURAY_STREAM_INFO::subpath_id
uint8_t subpath_id
Sub path identifier (= separate mpeg-ts mux / .m2ts file).
Definition bluray.h:255
BLURAY_STREAM_INFO::coding_type
uint8_t coding_type
Stream coding (bd_stream_type_e).
Definition bluray.h:248
BLURAY_STREAM_INFO::pid
uint16_t pid
mpeg-ts PID
Definition bluray.h:253
BLURAY_TITLE_CHAPTER
Chapter entry.
Definition bluray.h:289
BLURAY_TITLE_CHAPTER::idx
uint32_t idx
Chapter index (number - 1).
Definition bluray.h:290
BLURAY_TITLE_CHAPTER::start
uint64_t start
start media time, 90kHz, ("playlist time")
Definition bluray.h:291
BLURAY_TITLE_CHAPTER::clip_ref
unsigned clip_ref
Clip reference (index to playlist clips list).
Definition bluray.h:294
BLURAY_TITLE_CHAPTER::offset
uint64_t offset
distance from title start, bytes
Definition bluray.h:293
BLURAY_TITLE_CHAPTER::duration
uint64_t duration
duration
Definition bluray.h:292
BLURAY_TITLE_CHAPTER::chapter_name
const char * chapter_name
Chapter name in preferred language (optional, libbluray >= 1.5.0).
Definition bluray.h:297
BLURAY_TITLE_INFO
Playlist information.
Definition bluray.h:311
BLURAY_TITLE_INFO::mvc_base_view_r_flag
uint8_t mvc_base_view_r_flag
MVC base view (0 - left, 1 - right).
Definition bluray.h:323
BLURAY_TITLE_INFO::clips
BLURAY_CLIP_INFO * clips
Clip information.
Definition bluray.h:319
BLURAY_TITLE_INFO::chapter_count
uint32_t chapter_count
Number of chapters.
Definition bluray.h:317
BLURAY_TITLE_INFO::angle_count
uint8_t angle_count
Number of angles.
Definition bluray.h:316
BLURAY_TITLE_INFO::chapters
BLURAY_TITLE_CHAPTER * chapters
Chapter information.
Definition bluray.h:320
BLURAY_TITLE_INFO::mark_count
uint32_t mark_count
Number of playmarks.
Definition bluray.h:318
BLURAY_TITLE_INFO::clip_count
uint32_t clip_count
Number of clips.
Definition bluray.h:315
BLURAY_TITLE_INFO::marks
BLURAY_TITLE_MARK * marks
Playmark information.
Definition bluray.h:321
BLURAY_TITLE_INFO::duration
uint64_t duration
Playlist duration, 90 kHz.
Definition bluray.h:314
BLURAY_TITLE_INFO::idx
uint32_t idx
Playlist index number (filled only with bd_get_title_info()).
Definition bluray.h:312
BLURAY_TITLE_INFO::playlist
uint32_t playlist
Playlist ID (mpls file name).
Definition bluray.h:313
BLURAY_TITLE_MARK
Playmark information.
Definition bluray.h:301
BLURAY_TITLE_MARK::clip_ref
unsigned clip_ref
Clip reference (index to playlist clips list).
Definition bluray.h:307
BLURAY_TITLE_MARK::duration
uint64_t duration
time to next mark
Definition bluray.h:305
BLURAY_TITLE_MARK::start
uint64_t start
mark media time, 90kHz, ("playlist time")
Definition bluray.h:304
BLURAY_TITLE_MARK::idx
uint32_t idx
Mark index (number - 1).
Definition bluray.h:302
BLURAY_TITLE_MARK::type
int type
bd_mark_type_e
Definition bluray.h:303
BLURAY_TITLE_MARK::offset
uint64_t offset
mark distance from title start, bytes
Definition bluray.h:306
BLURAY_TITLE
HDMV / BD-J title information.
Definition bluray.h:66
BLURAY_TITLE::bdj
uint8_t bdj
0 - HDMV title.
Definition bluray.h:72
BLURAY_TITLE::interactive
uint8_t interactive
1 if title is interactive (title length and playback position should not be shown in UI)
Definition bluray.h:68
BLURAY_TITLE::id_ref
uint32_t id_ref
Movie Object number / bdjo file number.
Definition bluray.h:73
BLURAY_TITLE::hidden
uint8_t hidden
1 if title number should not be shown during playback
Definition bluray.h:70
BLURAY_TITLE::accessible
uint8_t accessible
1 if it is allowed to jump into this title
Definition bluray.h:69
BLURAY_TITLE::name
const char * name
optional title name in preferred language
Definition bluray.h:67
bd_dir_s
Directory access.
Definition filesystem.h:132
bd_file_s
File access.
Definition filesystem.h:49