<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libbluray: src/libbluray/bluray.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li id="searchli"> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>src/libbluray/bluray.h</h1> </div> </div> <div class="contents"> <a href="bluray_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * This file is part of libbluray</span> <a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2009-2010 Obliter0n</span> <a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2009-2010 John Stebbins</span> <a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2010 hpi1</span> <a name="l00006"></a>00006 <span class="comment"> *</span> <a name="l00007"></a>00007 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00008"></a>00008 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span> <a name="l00009"></a>00009 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00010"></a>00010 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span> <a name="l00011"></a>00011 <span class="comment"> *</span> <a name="l00012"></a>00012 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00015"></a>00015 <span class="comment"> * Lesser General Public License for more details.</span> <a name="l00016"></a>00016 <span class="comment"> *</span> <a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span> <a name="l00018"></a>00018 <span class="comment"> * License along with this library. If not, see</span> <a name="l00019"></a>00019 <span class="comment"> * <http://www.gnu.org/licenses/>.</span> <a name="l00020"></a>00020 <span class="comment"> */</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="preprocessor">#ifndef BLURAY_H_</span> <a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define BLURAY_H_</span> <a name="l00024"></a>00024 <span class="preprocessor"></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <stdint.h></span> <a name="l00031"></a>00031 <a name="l00032"></a><a class="code" href="bluray_8h.html#a8171948955795009c5721ea7dca62eb7">00032</a> <span class="preprocessor">#define TITLES_ALL 0 </span> <a name="l00033"></a><a class="code" href="bluray_8h.html#a2ec2e4ff6ad6dddae72285bf6f3c10f3">00033</a> <span class="preprocessor">#define TITLES_FILTER_DUP_TITLE 0x01 </span> <a name="l00034"></a><a class="code" href="bluray_8h.html#ad8d9789869457bbc68e69a2f936950e6">00034</a> <span class="preprocessor">#define TITLES_FILTER_DUP_CLIP 0x02 </span> <a name="l00036"></a><a class="code" href="bluray_8h.html#a78662035fc138714da4f73d69473692d">00036</a> <span class="preprocessor">#define TITLES_RELEVANT \</span> <a name="l00037"></a>00037 <span class="preprocessor"> (TITLES_FILTER_DUP_TITLE | TITLES_FILTER_DUP_CLIP) </span> <a name="l00040"></a>00040 <span class="preprocessor">typedef struct bluray BLURAY;</span> <a name="l00041"></a>00041 <span class="preprocessor"></span> <a name="l00042"></a>00042 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00043"></a>00043 BLURAY_STREAM_TYPE_VIDEO_MPEG1 = 0x01, <a name="l00044"></a>00044 BLURAY_STREAM_TYPE_VIDEO_MPEG2 = 0x02, <a name="l00045"></a>00045 BLURAY_STREAM_TYPE_AUDIO_MPEG1 = 0x03, <a name="l00046"></a>00046 BLURAY_STREAM_TYPE_AUDIO_MPEG2 = 0x04, <a name="l00047"></a>00047 BLURAY_STREAM_TYPE_AUDIO_LPCM = 0x80, <a name="l00048"></a>00048 BLURAY_STREAM_TYPE_AUDIO_AC3 = 0x81, <a name="l00049"></a>00049 BLURAY_STREAM_TYPE_AUDIO_DTS = 0x82, <a name="l00050"></a>00050 BLURAY_STREAM_TYPE_AUDIO_TRUHD = 0x83, <a name="l00051"></a>00051 BLURAY_STREAM_TYPE_AUDIO_AC3PLUS = 0x84, <a name="l00052"></a>00052 BLURAY_STREAM_TYPE_AUDIO_DTSHD = 0x85, <a name="l00053"></a>00053 BLURAY_STREAM_TYPE_AUDIO_DTSHD_MASTER = 0x86, <a name="l00054"></a>00054 BLURAY_STREAM_TYPE_VIDEO_VC1 = 0xea, <a name="l00055"></a>00055 BLURAY_STREAM_TYPE_VIDEO_H264 = 0x1b, <a name="l00056"></a>00056 BLURAY_STREAM_TYPE_SUB_PG = 0x90, <a name="l00057"></a>00057 BLURAY_STREAM_TYPE_SUB_IG = 0x91, <a name="l00058"></a>00058 BLURAY_STREAM_TYPE_SUB_TEXT = 0x92 <a name="l00059"></a>00059 } bd_stream_type_e; <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00062"></a>00062 BLURAY_VIDEO_FORMAT_480I = 1, <span class="comment">// ITU-R BT.601-5</span> <a name="l00063"></a>00063 BLURAY_VIDEO_FORMAT_576I = 2, <span class="comment">// ITU-R BT.601-4</span> <a name="l00064"></a>00064 BLURAY_VIDEO_FORMAT_480P = 3, <span class="comment">// SMPTE 293M</span> <a name="l00065"></a>00065 BLURAY_VIDEO_FORMAT_1080I = 4, <span class="comment">// SMPTE 274M</span> <a name="l00066"></a>00066 BLURAY_VIDEO_FORMAT_720P = 5, <span class="comment">// SMPTE 296M</span> <a name="l00067"></a>00067 BLURAY_VIDEO_FORMAT_1080P = 6, <span class="comment">// SMPTE 274M</span> <a name="l00068"></a>00068 BLURAY_VIDEO_FORMAT_576P = 7 <span class="comment">// ITU-R BT.1358</span> <a name="l00069"></a>00069 } bd_video_format_e; <a name="l00070"></a>00070 <a name="l00071"></a>00071 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00072"></a>00072 BLURAY_VIDEO_RATE_24000_1001 = 1, <span class="comment">// 23.976</span> <a name="l00073"></a>00073 BLURAY_VIDEO_RATE_24 = 2, <a name="l00074"></a>00074 BLURAY_VIDEO_RATE_25 = 3, <a name="l00075"></a>00075 BLURAY_VIDEO_RATE_30000_1001 = 4, <span class="comment">// 29.97</span> <a name="l00076"></a>00076 BLURAY_VIDEO_RATE_50 = 6, <a name="l00077"></a>00077 BLURAY_VIDEO_RATE_60000_1001 = 7 <span class="comment">// 59.94</span> <a name="l00078"></a>00078 } bd_video_rate_e; <a name="l00079"></a>00079 <a name="l00080"></a>00080 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00081"></a>00081 BLURAY_ASPECT_RATIO_4_3 = 2, <a name="l00082"></a>00082 BLURAY_ASPECT_RATIO_16_9 = 3 <a name="l00083"></a>00083 } bd_video_aspect_e; <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00086"></a>00086 BLURAY_AUDIO_FORMAT_MONO = 1, <a name="l00087"></a>00087 BLURAY_AUDIO_FORMAT_STEREO = 3, <a name="l00088"></a>00088 BLURAY_AUDIO_FORMAT_MULTI_CHAN = 6, <a name="l00089"></a>00089 BLURAY_AUDIO_FORMAT_COMBO = 12 <span class="comment">// Stereo ac3/dts, </span> <a name="l00090"></a>00090 } bd_audio_format_e; <a name="l00091"></a>00091 <span class="comment">// multi mlp/dts-hd</span> <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00094"></a>00094 BLURAY_AUDIO_RATE_48 = 1, <a name="l00095"></a>00095 BLURAY_AUDIO_RATE_96 = 4, <a name="l00096"></a>00096 BLURAY_AUDIO_RATE_192 = 5, <a name="l00097"></a>00097 BLURAY_AUDIO_RATE_192_COMBO = 12, <span class="comment">// 48 or 96 ac3/dts</span> <a name="l00098"></a>00098 <span class="comment">// 192 mpl/dts-hd</span> <a name="l00099"></a>00099 BLURAY_AUDIO_RATE_96_COMBO = 14 <span class="comment">// 48 ac3/dts</span> <a name="l00100"></a>00100 <span class="comment">// 96 mpl/dts-hd</span> <a name="l00101"></a>00101 } bd_audio_rate_e; <a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00104"></a>00104 BLURAY_TEXT_CHAR_CODE_UTF8 = 0x01, <a name="l00105"></a>00105 BLURAY_TEXT_CHAR_CODE_UTF16BE = 0x02, <a name="l00106"></a>00106 BLURAY_TEXT_CHAR_CODE_SHIFT_JIS = 0x03, <a name="l00107"></a>00107 BLURAY_TEXT_CHAR_CODE_EUC_KR = 0x04, <a name="l00108"></a>00108 BLURAY_TEXT_CHAR_CODE_GB18030_20001 = 0x05, <a name="l00109"></a>00109 BLURAY_TEXT_CHAR_CODE_CN_GB = 0x06, <a name="l00110"></a>00110 BLURAY_TEXT_CHAR_CODE_BIG5 = 0x07 <a name="l00111"></a>00111 } bd_char_code_e; <a name="l00112"></a>00112 <a name="l00113"></a><a class="code" href="structbd__stream__info.html">00113</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbd__stream__info.html">bd_stream_info</a> { <a name="l00114"></a>00114 uint8_t coding_type; <a name="l00115"></a>00115 uint8_t format; <a name="l00116"></a>00116 uint8_t rate; <a name="l00117"></a>00117 uint8_t char_code; <a name="l00118"></a>00118 uint8_t lang[4]; <a name="l00119"></a>00119 uint16_t pid; <a name="l00120"></a>00120 uint8_t aspect; <a name="l00121"></a>00121 } <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a>; <a name="l00122"></a>00122 <a name="l00123"></a><a class="code" href="structbd__clip.html">00123</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbd__clip.html">bd_clip</a> { <a name="l00124"></a>00124 uint32_t pkt_count; <a name="l00125"></a>00125 uint8_t video_stream_count; <a name="l00126"></a>00126 uint8_t audio_stream_count; <a name="l00127"></a>00127 uint8_t pg_stream_count; <a name="l00128"></a>00128 uint8_t ig_stream_count; <a name="l00129"></a>00129 uint8_t sec_audio_stream_count; <a name="l00130"></a>00130 uint8_t sec_video_stream_count; <a name="l00131"></a>00131 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *video_streams; <a name="l00132"></a>00132 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *audio_streams; <a name="l00133"></a>00133 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *pg_streams; <a name="l00134"></a>00134 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *ig_streams; <a name="l00135"></a>00135 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *sec_audio_streams; <a name="l00136"></a>00136 <a class="code" href="structbd__stream__info.html">BLURAY_STREAM_INFO</a> *sec_video_streams; <a name="l00137"></a>00137 } <a class="code" href="structbd__clip.html">BLURAY_CLIP_INFO</a>; <a name="l00138"></a>00138 <a name="l00139"></a><a class="code" href="structbd__chapter.html">00139</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbd__chapter.html">bd_chapter</a> { <a name="l00140"></a>00140 uint32_t idx; <a name="l00141"></a>00141 uint64_t start; <a name="l00142"></a>00142 uint64_t duration; <a name="l00143"></a>00143 uint64_t offset; <a name="l00144"></a>00144 } <a class="code" href="structbd__chapter.html">BLURAY_TITLE_CHAPTER</a>; <a name="l00145"></a>00145 <a name="l00146"></a><a class="code" href="structbd__title__info.html">00146</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbd__title__info.html">bd_title_info</a> { <a name="l00147"></a>00147 uint32_t idx; <a name="l00148"></a>00148 uint32_t playlist; <a name="l00149"></a>00149 uint64_t duration; <a name="l00150"></a>00150 uint32_t clip_count; <a name="l00151"></a>00151 uint8_t angle_count; <a name="l00152"></a>00152 uint32_t chapter_count; <a name="l00153"></a>00153 <a class="code" href="structbd__clip.html">BLURAY_CLIP_INFO</a> *clips; <a name="l00154"></a>00154 <a class="code" href="structbd__chapter.html">BLURAY_TITLE_CHAPTER</a> *chapters; <a name="l00155"></a>00155 } <a class="code" href="structbd__title__info.html">BLURAY_TITLE_INFO</a>; <a name="l00156"></a>00156 <a name="l00167"></a>00167 uint32_t <a class="code" href="bluray_8h.html#a1fc9ea33d206c823875a2ae7a4c30728">bd_get_titles</a>(BLURAY *bd, uint8_t flags); <a name="l00168"></a>00168 <a name="l00177"></a>00177 <a class="code" href="structbd__title__info.html">BLURAY_TITLE_INFO</a>* <a class="code" href="bluray_8h.html#ac084d45e4a89b3b84010691331ba6aa4">bd_get_title_info</a>(BLURAY *bd, uint32_t title_idx); <a name="l00178"></a>00178 <a name="l00187"></a>00187 <a class="code" href="structbd__title__info.html">BLURAY_TITLE_INFO</a>* <a class="code" href="bluray_8h.html#ad622501849d1d3c2c4c6c50d2d893193">bd_get_playlist_info</a>(BLURAY *bd, uint32_t playlist); <a name="l00188"></a>00188 <a name="l00195"></a>00195 <span class="keywordtype">void</span> <a class="code" href="bluray_8h.html#a48075acd83a9a4c86c83eab797f53056">bd_free_title_info</a>(<a class="code" href="structbd__title__info.html">BLURAY_TITLE_INFO</a> *title_info); <a name="l00196"></a>00196 <a name="l00204"></a>00204 BLURAY *<a class="code" href="bluray_8h.html#a6250c70fd06a2478e6df57b30ad2fec8">bd_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* device_path, <span class="keyword">const</span> <span class="keywordtype">char</span>* keyfile_path); <a name="l00205"></a>00205 <a name="l00211"></a>00211 <span class="keywordtype">void</span> <a class="code" href="bluray_8h.html#a7a5a79c6babeabaf5867e1f1a2d35250">bd_close</a>(BLURAY *bd); <a name="l00212"></a>00212 <a name="l00220"></a>00220 int64_t <a class="code" href="bluray_8h.html#abc3e83196c9bd4579578b2a882caed31">bd_seek</a>(BLURAY *bd, uint64_t pos); <a name="l00221"></a>00221 <a name="l00230"></a>00230 int64_t <a class="code" href="bluray_8h.html#a2c1d062c5e49ea734e62a27513d39b25">bd_seek_time</a>(BLURAY *bd, uint64_t tick); <a name="l00231"></a>00231 <a name="l00241"></a>00241 <span class="keywordtype">int</span> <a class="code" href="bluray_8h.html#a74cc3ead8953a0e863f3e93fe6f9fb50">bd_read</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> len); <a name="l00242"></a>00242 <a name="l00251"></a>00251 int64_t <a class="code" href="bluray_8h.html#a8fc8255d0470a73e652daf95009e92c1">bd_seek_chapter</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> chapter); <a name="l00252"></a>00252 <a name="l00261"></a>00261 int64_t <a class="code" href="bluray_8h.html#a03c729252cab3cc2832c176e2d38558c">bd_chapter_pos</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> chapter); <a name="l00262"></a>00262 <a name="l00270"></a>00270 uint32_t <a class="code" href="bluray_8h.html#a9db9c8834a624e2c6be95943bfc89fa9">bd_get_current_chapter</a>(BLURAY *bd); <a name="l00271"></a>00271 <a name="l00280"></a>00280 int64_t <a class="code" href="bluray_8h.html#a06c4e34e1c44f1237aa5271fa94c0fd1">bd_seek_mark</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> mark); <a name="l00281"></a>00281 <a name="l00290"></a>00290 <span class="keywordtype">int</span> <a class="code" href="bluray_8h.html#ac681a285453c293918b1df56bc94fc5c">bd_select_playlist</a>(BLURAY *bd, uint32_t playlist); <a name="l00291"></a>00291 <a name="l00300"></a>00300 <span class="keywordtype">int</span> <a class="code" href="bluray_8h.html#ab72b7ca4870bee9fc6140b699a9008f1">bd_select_title</a>(BLURAY *bd, uint32_t title); <a name="l00301"></a>00301 <a name="l00310"></a>00310 <span class="keywordtype">int</span> <a class="code" href="bluray_8h.html#a81c6d723741a0e4f65dfb6dd3e095f13">bd_select_angle</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> angle); <a name="l00311"></a>00311 <a name="l00319"></a>00319 <span class="keywordtype">void</span> <a class="code" href="bluray_8h.html#a7bf7944d0a77f1fdad3ab56c46aaf1c4">bd_seamless_angle_change</a>(BLURAY *bd, <span class="keywordtype">unsigned</span> angle); <a name="l00320"></a>00320 <a name="l00330"></a>00330 uint64_t <a class="code" href="bluray_8h.html#a165ab592596e1efc1f8012da0d4f23e6">bd_get_title_size</a>(BLURAY *bd); <a name="l00331"></a>00331 <a name="l00339"></a>00339 uint32_t <a class="code" href="bluray_8h.html#a3220955817e1f019223dba8458e572ac">bd_get_current_title</a>(BLURAY *bd); <a name="l00340"></a>00340 <a name="l00348"></a>00348 <span class="keywordtype">unsigned</span> <a class="code" href="bluray_8h.html#a7918716d04048039f62ff9329b0c31d5">bd_get_current_angle</a>(BLURAY *bd); <a name="l00349"></a>00349 <a name="l00357"></a>00357 uint64_t <a class="code" href="bluray_8h.html#ab8a5d7413a4c4997716505c68c596b03">bd_tell</a>(BLURAY *bd); <a name="l00358"></a>00358 <a name="l00366"></a>00366 uint64_t <a class="code" href="bluray_8h.html#ae150342f07078ede2fcbf07f8407f5f6">bd_tell_time</a>(BLURAY *bd); <a name="l00367"></a>00367 <a name="l00368"></a>00368 <span class="comment">/*</span> <a name="l00369"></a>00369 <span class="comment"> * Disc info</span> <a name="l00370"></a>00370 <span class="comment"> */</span> <a name="l00371"></a>00371 <a name="l00372"></a><a class="code" href="structBLURAY__DISC__INFO.html">00372</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00373"></a>00373 uint8_t bluray_detected; <a name="l00374"></a>00374 <a name="l00375"></a>00375 uint8_t first_play_supported; <a name="l00376"></a>00376 uint8_t top_menu_supported; <a name="l00377"></a>00377 <a name="l00378"></a>00378 uint32_t num_hdmv_titles; <a name="l00379"></a>00379 uint32_t num_bdj_titles; <a name="l00380"></a>00380 uint32_t num_unsupported_titles; <a name="l00381"></a>00381 <a name="l00382"></a>00382 uint8_t aacs_detected; <a name="l00383"></a>00383 uint8_t libaacs_detected; <a name="l00384"></a>00384 uint8_t aacs_handled; <a name="l00385"></a>00385 <a name="l00386"></a>00386 uint8_t bdplus_detected; <a name="l00387"></a>00387 uint8_t libbdplus_detected; <a name="l00388"></a>00388 uint8_t bdplus_handled; <a name="l00389"></a>00389 <a name="l00390"></a>00390 } <a class="code" href="structBLURAY__DISC__INFO.html">BLURAY_DISC_INFO</a>; <a name="l00391"></a>00391 <a name="l00392"></a>00392 <span class="keyword">const</span> <a class="code" href="structBLURAY__DISC__INFO.html">BLURAY_DISC_INFO</a> *bd_get_disc_info(BLURAY*); <a name="l00393"></a>00393 <a name="l00394"></a>00394 <span class="comment">/*</span> <a name="l00395"></a>00395 <span class="comment"> * player settings</span> <a name="l00396"></a>00396 <span class="comment"> */</span> <a name="l00397"></a>00397 <a name="l00398"></a>00398 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00399"></a>00399 BLURAY_PLAYER_SETTING_PARENTAL = 13, <span class="comment">/* Age for parental control (years) */</span> <a name="l00400"></a>00400 BLURAY_PLAYER_SETTING_AUDIO_CAP = 15, <span class="comment">/* Player capability for audio (bit mask) */</span> <a name="l00401"></a>00401 BLURAY_PLAYER_SETTING_AUDIO_LANG = 16, <span class="comment">/* Initial audio language: ISO 639-2 string, ex. "eng" */</span> <a name="l00402"></a>00402 BLURAY_PLAYER_SETTING_PG_LANG = 17, <span class="comment">/* Initial PG/SPU language: ISO 639-2 string, ex. "eng" */</span> <a name="l00403"></a>00403 BLURAY_PLAYER_SETTING_MENU_LANG = 18, <span class="comment">/* Initial menu language: ISO 639-2 string, ex. "eng" */</span> <a name="l00404"></a>00404 BLURAY_PLAYER_SETTING_COUNTRY_CODE = 19, <span class="comment">/* Player country code: ISO 3166-1 string, ex. "de" */</span> <a name="l00405"></a>00405 BLURAY_PLAYER_SETTING_REGION_CODE = 20, <span class="comment">/* Player region code: 1 - region A, 2 - B, 4 - C */</span> <a name="l00406"></a>00406 BLURAY_PLAYER_SETTING_VIDEO_CAP = 29, <span class="comment">/* Player capability for video (bit mask) */</span> <a name="l00407"></a>00407 BLURAY_PLAYER_SETTING_TEXT_CAP = 30, <span class="comment">/* Player capability for text subtitle (bit mask) */</span> <a name="l00408"></a>00408 BLURAY_PLAYER_SETTING_PLAYER_PROFILE = 31, <span class="comment">/* Profile1: 0, Profile1+: 1, Profile2: 3, Profile3: 8 */</span> <a name="l00409"></a>00409 } bd_player_setting; <a name="l00410"></a>00410 <a name="l00421"></a>00421 <span class="keywordtype">int</span> <a class="code" href="bluray_8h.html#a84473bc166b70bcd88f5ff63b46536e3">bd_set_player_setting</a>(BLURAY *bd, uint32_t idx, uint32_t value); <a name="l00422"></a>00422 <span class="keywordtype">int</span> bd_set_player_setting_str(BLURAY *bd, uint32_t idx, <span class="keyword">const</span> <span class="keywordtype">char</span> *s); <a name="l00423"></a>00423 <a name="l00424"></a>00424 <span class="comment">/*</span> <a name="l00425"></a>00425 <span class="comment"> * Java</span> <a name="l00426"></a>00426 <span class="comment"> */</span> <a name="l00427"></a>00427 <span class="keywordtype">int</span> bd_start_bdj(BLURAY *bd, <span class="keyword">const</span> <span class="keywordtype">char</span>* start_object); <span class="comment">// start BD-J from the specified BD-J object (should be a 5 character string)</span> <a name="l00428"></a>00428 <span class="keywordtype">void</span> bd_stop_bdj(BLURAY *bd); <span class="comment">// shutdown BD-J and clean up resources</span> <a name="l00429"></a>00429 <a name="l00430"></a>00430 <span class="comment">/*</span> <a name="l00431"></a>00431 <span class="comment"> * navigaton mode</span> <a name="l00432"></a>00432 <span class="comment"> */</span> <a name="l00433"></a>00433 <a name="l00434"></a>00434 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00435"></a>00435 BD_EVENT_NONE = 0, <a name="l00436"></a>00436 BD_EVENT_ERROR, <a name="l00437"></a>00437 <a name="l00438"></a>00438 <span class="comment">/* current playback position */</span> <a name="l00439"></a>00439 BD_EVENT_ANGLE, <span class="comment">/* current angle, 1...N */</span> <a name="l00440"></a>00440 BD_EVENT_TITLE, <span class="comment">/* current title, 1...N (0 = top menu) */</span> <a name="l00441"></a>00441 BD_EVENT_PLAYLIST, <span class="comment">/* current playlist (xxxxx.mpls) */</span> <a name="l00442"></a>00442 BD_EVENT_PLAYITEM, <span class="comment">/* current play item */</span> <a name="l00443"></a>00443 BD_EVENT_CHAPTER, <span class="comment">/* current chapter, 1...N */</span> <a name="l00444"></a>00444 <a name="l00445"></a>00445 <span class="comment">/* stream selection */</span> <a name="l00446"></a>00446 BD_EVENT_AUDIO_STREAM, <span class="comment">/* 1..32, 0xff = none */</span> <a name="l00447"></a>00447 BD_EVENT_IG_STREAM, <span class="comment">/* 1..32 */</span> <a name="l00448"></a>00448 BD_EVENT_PG_TEXTST_STREAM, <span class="comment">/* 1..255, 0xfff = none */</span> <a name="l00449"></a>00449 BD_EVENT_PIP_PG_TEXTST_STREAM, <span class="comment">/* 1..255, 0xfff = none */</span> <a name="l00450"></a>00450 BD_EVENT_SECONDARY_AUDIO_STREAM, <span class="comment">/* 1..32, 0xff = none */</span> <a name="l00451"></a>00451 BD_EVENT_SECONDARY_VIDEO_STREAM, <span class="comment">/* 1..32, 0xff = none */</span> <a name="l00452"></a>00452 <a name="l00453"></a>00453 BD_EVENT_PG_TEXTST, <span class="comment">/* 0 - disable, 1 - enable */</span> <a name="l00454"></a>00454 BD_EVENT_PIP_PG_TEXTST, <span class="comment">/* 0 - disable, 1 - enable */</span> <a name="l00455"></a>00455 BD_EVENT_SECONDARY_AUDIO, <span class="comment">/* 0 - disable, 1 - enable */</span> <a name="l00456"></a>00456 BD_EVENT_SECONDARY_VIDEO, <span class="comment">/* 0 - disable, 1 - enable */</span> <a name="l00457"></a>00457 BD_EVENT_SECONDARY_VIDEO_SIZE, <span class="comment">/* 0 - PIP, 0xf - fullscreen */</span> <a name="l00458"></a>00458 <a name="l00459"></a>00459 <span class="comment">/* Interactive Graphics */</span> <a name="l00460"></a>00460 BD_EVENT_MENU_PAGE_ID, <span class="comment">/* 0..0xfe */</span> <a name="l00461"></a>00461 BD_EVENT_SELECTED_BUTTON_ID, <span class="comment">/* 0..0x1fdf, 0xffff = invalid */</span> <a name="l00462"></a>00462 BD_EVENT_POPUP_OFF, <a name="l00463"></a>00463 BD_EVENT_ENABLE_BUTTON, <span class="comment">/* param: button id */</span> <a name="l00464"></a>00464 BD_EVENT_DISABLE_BUTTON, <span class="comment">/* param: button id */</span> <a name="l00465"></a>00465 <a name="l00466"></a>00466 <span class="comment">/* still */</span> <a name="l00467"></a>00467 BD_EVENT_STILL, <span class="comment">/* 0 - off, 1 - on */</span> <a name="l00468"></a>00468 <a name="l00469"></a>00469 } bd_event_e; <a name="l00470"></a>00470 <a name="l00471"></a><a class="code" href="structBD__EVENT.html">00471</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00472"></a>00472 uint32_t event; <span class="comment">/* bd_event_e */</span> <a name="l00473"></a>00473 uint32_t param; <a name="l00474"></a>00474 } <a class="code" href="structBD__EVENT.html">BD_EVENT</a>; <a name="l00475"></a>00475 <a name="l00476"></a>00476 <span class="keyword">struct </span>bd_overlay_s; <a name="l00477"></a>00477 <span class="keyword">typedef</span> void (*bd_overlay_proc_f)(<span class="keywordtype">void</span> *, <span class="keyword">const</span> <span class="keyword">struct </span>bd_overlay_s * <span class="keyword">const</span>); <a name="l00478"></a>00478 <a name="l00479"></a>00479 <span class="keywordtype">int</span> bd_play(BLURAY *bd); <span class="comment">/* start playing disc in navigation mode */</span> <a name="l00480"></a>00480 <span class="keywordtype">int</span> bd_read_ext(BLURAY *bd, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> len, <a class="code" href="structBD__EVENT.html">BD_EVENT</a> *event); <a name="l00481"></a>00481 <span class="keywordtype">int</span> bd_get_event(BLURAY *bd, <a class="code" href="structBD__EVENT.html">BD_EVENT</a> *event); <a name="l00482"></a>00482 <a name="l00483"></a>00483 <span class="keywordtype">int</span> bd_play_title(BLURAY *bd, <span class="keywordtype">unsigned</span> title); <span class="comment">/* play title (from disc index) */</span> <a name="l00484"></a>00484 <span class="keywordtype">int</span> bd_menu_call(BLURAY *bd); <span class="comment">/* open disc root menu */</span> <a name="l00485"></a>00485 <a name="l00486"></a>00486 <span class="keywordtype">void</span> bd_register_overlay_proc(BLURAY *bd, <span class="keywordtype">void</span> *handle, bd_overlay_proc_f func); <a name="l00487"></a>00487 <span class="keywordtype">void</span> bd_user_input(BLURAY *bd, int64_t pts, uint32_t key); <a name="l00488"></a>00488 <a name="l00489"></a>00489 <span class="preprocessor">#endif </span><span class="comment">/* BLURAY_H_ */</span> </pre></div></div> </div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr size="1"> <div id="footer"> <small> Generated on Tue Nov 9 2010 09:20:19 for libbluray by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1<br /> Copyright © 2010 John Stebbins et al.<br /> <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" border="0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png"/></a><br/> This documentation is licensed and distributed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.<br/> </small> </div> </body> </html>