Mercurial > libdvdnav.hg
annotate dvdnav/dvdnav.h @ 409:9b8bfc56a7fe src
Add dvdnav_program_play & dvdnav_current_title_program
Using title parts w/ dvdnav_part_play and dvdnav_current_title_info
is not reliable for use as chapter marks in files made from
transcoding. The start of a part does not necessarily fall strictly
inside the main title. Parts can have an intro sequence before
getting into the title. So we use program boundaries instead of
part markers to test when we have reached a chapter point during
encoding of the title. The same would apply to displaying the
current chapter during playback. The program boundaries
should be checked instead of looking for a part.
Patch from John Stebbins. Thanks!
author | erik |
---|---|
date | Fri, 30 Jul 2010 23:34:16 +0000 |
parents | 390fbf2a9602 |
children | f30f443d3841 |
rev | line source |
---|---|
388 | 1 /* |
0 | 2 * Copyright (C) 2001 Rich Wareham <richwareham@users.sourceforge.net> |
388 | 3 * |
0 | 4 * This file is part of libdvdnav, a DVD navigation library. |
388 | 5 * |
0 | 6 * libdvdnav is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
388 | 10 * |
0 | 11 * libdvdnav is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
388 | 15 * |
389
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
16 * You should have received a copy of the GNU General Public License along |
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
17 * with libdvdnav; if not, write to the Free Software Foundation, Inc., |
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
0 | 19 */ |
20 | |
147 | 21 /* |
22 * This is the main header file applications should include if they want | |
23 * to access dvdnav functionality. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
24 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
25 |
391 | 26 #ifndef LIBDVDNAV_DVDNAV_H |
27 #define LIBDVDNAV_DVDNAV_H | |
0 | 28 |
385 | 29 #define MP_DVDNAV 1 |
30 | |
5
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
31 #ifdef __cplusplus |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
32 extern "C" { |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
33 #endif |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
34 |
395
9c5aef10d165
Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory.
reimar
parents:
392
diff
changeset
|
35 #include <dvdnav/dvd_types.h> |
9c5aef10d165
Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory.
reimar
parents:
392
diff
changeset
|
36 #include <dvdread/dvd_reader.h> |
9c5aef10d165
Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory.
reimar
parents:
392
diff
changeset
|
37 #include <dvdread/nav_types.h> |
9c5aef10d165
Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory.
reimar
parents:
392
diff
changeset
|
38 #include <dvdread/ifo_types.h> /* For vm_cmd_t */ |
9c5aef10d165
Move dvd_types.h, dvdnav_events.h and dvdnav.h into a dvdnav directory.
reimar
parents:
392
diff
changeset
|
39 #include <dvdnav/dvdnav_events.h> |
0 | 40 |
41 | |
147 | 42 |
43 /********************************************************************* | |
44 * dvdnav data types * | |
45 *********************************************************************/ | |
46 | |
47 /* | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
48 * Opaque data-type can be viewed as a 'DVD handle'. You should get |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
49 * a pointer to a dvdnav_t from the dvdnav_open() function. |
147 | 50 * Never call free() on the pointer, you have to give it back with |
51 * dvdnav_close(). | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
52 */ |
0 | 53 typedef struct dvdnav_s dvdnav_t; |
54 | |
147 | 55 /* Status as reported by most of libdvdnav's functions */ |
195 | 56 typedef int32_t dvdnav_status_t; |
0 | 57 |
147 | 58 /* |
59 * Unless otherwise stated, all functions return DVDNAV_STATUS_OK if | |
60 * they succeeded, otherwise DVDNAV_STATUS_ERR is returned and the error may | |
61 * be obtained by calling dvdnav_err_to_string(). | |
62 */ | |
193 | 63 #define DVDNAV_STATUS_ERR 0 |
64 #define DVDNAV_STATUS_OK 1 | |
0 | 65 |
266 | 66 #define DVDNAV_FORMAT_AC3 0 |
67 #define DVDNAV_FORMAT_MPEGAUDIO 3 | |
68 #define DVDNAV_FORMAT_LPCM 4 | |
69 #define DVDNAV_FORMAT_DTS 5 | |
70 #define DVDNAV_FORMAT_SDDS 6 | |
147 | 71 |
72 /********************************************************************* | |
73 * initialisation & housekeeping functions * | |
74 *********************************************************************/ | |
75 | |
76 /* | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
77 * These functions allow you to open a DVD device and associate it |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
78 * with a dvdnav_t. |
0 | 79 */ |
80 | |
147 | 81 /* |
82 * Attempts to open the DVD drive at the specified path and pre-cache | |
83 * the CSS-keys. libdvdread is used to access the DVD, so any source | |
84 * supported by libdvdread can be given with "path". Currently, | |
85 * libdvdread can access: DVD drives, DVD image files, DVD file-by-file | |
86 * copies. | |
0 | 87 * |
147 | 88 * The resulting dvdnav_t handle will be written to *dest. |
0 | 89 */ |
147 | 90 dvdnav_status_t dvdnav_open(dvdnav_t **dest, const char *path); |
0 | 91 |
147 | 92 /* |
388 | 93 * Closes a dvdnav_t previously opened with dvdnav_open(), freeing any |
0 | 94 * memory associated with it. |
95 */ | |
96 dvdnav_status_t dvdnav_close(dvdnav_t *self); | |
97 | |
147 | 98 /* |
99 * Resets the DVD virtual machine and cache buffers. | |
4
99bed5d6db2f
Added reset patch from Kees Cook <kees@outflux.net>
richwareham
parents:
0
diff
changeset
|
100 */ |
99bed5d6db2f
Added reset patch from Kees Cook <kees@outflux.net>
richwareham
parents:
0
diff
changeset
|
101 dvdnav_status_t dvdnav_reset(dvdnav_t *self); |
99bed5d6db2f
Added reset patch from Kees Cook <kees@outflux.net>
richwareham
parents:
0
diff
changeset
|
102 |
147 | 103 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
104 * Fills a pointer with a value pointing to a string describing |
147 | 105 * the path associated with an open dvdnav_t. It assigns *path to NULL |
0 | 106 * on error. |
107 */ | |
147 | 108 dvdnav_status_t dvdnav_path(dvdnav_t *self, const char **path); |
0 | 109 |
147 | 110 /* |
0 | 111 * Returns a human-readable string describing the last error. |
112 */ | |
114 | 113 const char* dvdnav_err_to_string(dvdnav_t *self); |
0 | 114 |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
115 |
147 | 116 /********************************************************************* |
117 * changing and reading DVD player characteristics * | |
118 *********************************************************************/ | |
119 | |
120 /* | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
121 * These functions allow you to manipulate the various global characteristics |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
122 * of the DVD playback engine. |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
123 */ |
0 | 124 |
147 | 125 /* |
126 * Sets the region mask (bit 0 set implies region 1, bit 1 set implies | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
127 * region 2, etc) of the virtual machine. Generally you will only need to set |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
128 * this if you are playing RCE discs which query the virtual machine as to its |
388 | 129 * region setting. |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
130 * |
147 | 131 * This has _nothing_ to do with the region setting of the DVD drive. |
0 | 132 */ |
195 | 133 dvdnav_status_t dvdnav_set_region_mask(dvdnav_t *self, int32_t region_mask); |
0 | 134 |
147 | 135 /* |
136 * Returns the region mask (bit 0 set implies region 1, bit 1 set implies | |
137 * region 2, etc) of the virtual machine. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
138 * |
147 | 139 * This has _nothing_ to do with the region setting of the DVD drive. |
0 | 140 */ |
195 | 141 dvdnav_status_t dvdnav_get_region_mask(dvdnav_t *self, int32_t *region_mask); |
0 | 142 |
147 | 143 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
144 * Specify whether read-ahead caching should be used. You may not want this if your |
114 | 145 * decoding engine does its own buffering. |
147 | 146 * |
147 * The default read-ahead cache does not use an additional thread for the reading | |
148 * (see read_cache.c for a threaded cache, but note that this code is currently | |
149 * unmaintained). It prebuffers on VOBU level by reading ahead several buffers | |
150 * on every read request. The speed of this prebuffering has been optimized to | |
151 * also work on slow DVD drives. | |
0 | 152 * |
147 | 153 * If in addition you want to prevent memcpy's to improve performance, have a look |
154 * at dvdnav_get_next_cache_block(). | |
0 | 155 */ |
195 | 156 dvdnav_status_t dvdnav_set_readahead_flag(dvdnav_t *self, int32_t read_ahead_flag); |
0 | 157 |
147 | 158 /* |
159 * Query whether read-ahead caching/buffering will be used. | |
160 */ | |
195 | 161 dvdnav_status_t dvdnav_get_readahead_flag(dvdnav_t *self, int32_t *read_ahead_flag); |
147 | 162 |
163 /* | |
132 | 164 * Specify whether the positioning works PGC or PG based. |
147 | 165 * Programs (PGs) on DVDs are similar to Chapters and a program chain (PGC) |
132 | 166 * usually covers a whole feature. This affects the behaviour of the |
147 | 167 * functions dvdnav_get_position() and dvdnav_sector_search(). See there. |
132 | 168 * Default is PG based positioning. |
169 */ | |
195 | 170 dvdnav_status_t dvdnav_set_PGC_positioning_flag(dvdnav_t *self, int32_t pgc_based_flag); |
132 | 171 |
147 | 172 /* |
132 | 173 * Query whether positioning is PG or PGC based. |
174 */ | |
195 | 175 dvdnav_status_t dvdnav_get_PGC_positioning_flag(dvdnav_t *self, int32_t *pgc_based_flag); |
147 | 176 |
132 | 177 |
147 | 178 /********************************************************************* |
179 * reading data * | |
180 *********************************************************************/ | |
181 | |
182 /* | |
388 | 183 * These functions are used to poll the playback enginge and actually get data |
147 | 184 * off the DVD. |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
185 */ |
0 | 186 |
147 | 187 /* |
388 | 188 * Attempts to get the next block off the DVD and copies it into the buffer 'buf'. |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
189 * If there is any special actions that may need to be performed, the value |
147 | 190 * pointed to by 'event' gets set accordingly. |
0 | 191 * |
192 * If 'event' is DVDNAV_BLOCK_OK then 'buf' is filled with the next block | |
193 * (note that means it has to be at /least/ 2048 bytes big). 'len' is | |
194 * then set to 2048. | |
195 * | |
196 * Otherwise, buf is filled with an appropriate event structure and | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
197 * len is set to the length of that structure. |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
198 * |
147 | 199 * See the dvdnav_events.h header for information on the various events. |
0 | 200 */ |
195 | 201 dvdnav_status_t dvdnav_get_next_block(dvdnav_t *self, uint8_t *buf, |
202 int32_t *event, int32_t *len); | |
0 | 203 |
147 | 204 /* |
60 | 205 * This basically does the same as dvdnav_get_next_block. The only difference is |
206 * that it avoids a memcopy, when the requested block was found in the cache. | |
207 * I such a case (cache hit) this function will return a different pointer than | |
208 * the one handed in, pointing directly into the relevant block in the cache. | |
147 | 209 * Those pointers must _never_ be freed but instead returned to the library via |
114 | 210 * dvdnav_free_cache_block(). |
60 | 211 */ |
195 | 212 dvdnav_status_t dvdnav_get_next_cache_block(dvdnav_t *self, uint8_t **buf, |
213 int32_t *event, int32_t *len); | |
60 | 214 |
147 | 215 /* |
114 | 216 * All buffers which came from the internal cache (when dvdnav_get_next_cache_block() |
60 | 217 * returned a buffer different from the one handed in) have to be freed with this |
218 * function. Although handing in other buffers not from the cache doesn't cause any harm. | |
219 */ | |
220 dvdnav_status_t dvdnav_free_cache_block(dvdnav_t *self, unsigned char *buf); | |
221 | |
147 | 222 /* |
223 * If we are currently in a still-frame this function skips it. | |
55
5674fbd44f26
report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents:
44
diff
changeset
|
224 * |
147 | 225 * See also the DVDNAV_STILL_FRAME event. |
0 | 226 */ |
227 dvdnav_status_t dvdnav_still_skip(dvdnav_t *self); | |
228 | |
147 | 229 /* |
116 | 230 * If we are currently in WAIT state, that is: the application is required to |
231 * wait for its fifos to become empty, calling this signals libdvdnav that this | |
232 * is achieved and that it can continue. | |
233 * | |
147 | 234 * See also the DVDNAV_WAIT event. |
116 | 235 */ |
236 dvdnav_status_t dvdnav_wait_skip(dvdnav_t *self); | |
237 | |
147 | 238 /* |
239 * Returns the still time from the currently playing cell. | |
240 * The still time is given in seconds with 0xff meaning an indefinite still. | |
114 | 241 * |
147 | 242 * This function can be used to detect still frames before they are reached. |
243 * Some players might need this to prepare for a frame to be shown for a | |
244 * longer time than usual. | |
114 | 245 */ |
246 uint32_t dvdnav_get_next_still_flag(dvdnav_t *self); | |
247 | |
147 | 248 /* |
249 * Stops playback. The next event obtained with one of the get_next_block | |
250 * functions will be a DVDNAV_STOP event. | |
0 | 251 * |
147 | 252 * It is not required to call this before dvdnav_close(). |
253 */ | |
254 dvdnav_status_t dvdnav_stop(dvdnav_t *self); | |
255 | |
256 | |
257 /********************************************************************* | |
258 * title/part navigation * | |
259 *********************************************************************/ | |
260 | |
261 /* | |
262 * Returns the number of titles on the disk. | |
263 */ | |
195 | 264 dvdnav_status_t dvdnav_get_number_of_titles(dvdnav_t *self, int32_t *titles); |
147 | 265 |
266 /* | |
267 * Returns the number of parts within the given title. | |
268 */ | |
195 | 269 dvdnav_status_t dvdnav_get_number_of_parts(dvdnav_t *self, int32_t title, int32_t *parts); |
147 | 270 |
271 /* | |
272 * Plays the specified title of the DVD from its beginning (that is: part 1). | |
0 | 273 */ |
195 | 274 dvdnav_status_t dvdnav_title_play(dvdnav_t *self, int32_t title); |
0 | 275 |
147 | 276 /* |
277 * Plays the specified title, starting from the specified part. | |
0 | 278 */ |
195 | 279 dvdnav_status_t dvdnav_part_play(dvdnav_t *self, int32_t title, int32_t part); |
0 | 280 |
147 | 281 /* |
409
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
282 * Plays the specified title, starting from the specified program |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
283 */ |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
284 dvdnav_status_t dvdnav_program_play(dvdnav_t *this, int32_t title, int32_t pgcn, int32_t pgn); |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
285 |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
286 /* |
313 | 287 * Stores in *times an array (that the application *must* free) of |
288 * dvdtimes corresponding to the chapter times for the chosen title. | |
315
9abc06e356ff
now dvdnav_describe_title_chapters() also returns the duration of the title
nicodvb
parents:
313
diff
changeset
|
289 * *duration will have the duration of the title |
313 | 290 * The number of entries in *times is the result of the function. |
291 * On error *times is NULL and the output is 0 | |
292 */ | |
382
5a28a534ecf9
change the prototype of dvdnav_describe_title_chapters() to use 'self' instead of 'this' for compatibility with c++ compilers
nicodvb
parents:
368
diff
changeset
|
293 uint32_t dvdnav_describe_title_chapters(dvdnav_t *self, int32_t title, uint64_t **times, uint64_t *duration); |
313 | 294 |
295 /* | |
0 | 296 * Play the specified amount of parts of the specified title of |
297 * the DVD then STOP. | |
298 * | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
299 * Currently unimplemented! |
0 | 300 */ |
195 | 301 dvdnav_status_t dvdnav_part_play_auto_stop(dvdnav_t *self, int32_t title, |
302 int32_t part, int32_t parts_to_play); | |
0 | 303 |
147 | 304 /* |
305 * Play the specified title starting from the specified time. | |
0 | 306 * |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
307 * Currently unimplemented! |
0 | 308 */ |
195 | 309 dvdnav_status_t dvdnav_time_play(dvdnav_t *self, int32_t title, |
310 uint64_t time); | |
0 | 311 |
147 | 312 /* |
123 | 313 * Stop playing the current position and jump to the specified menu. |
114 | 314 * |
147 | 315 * See also DVDMenuID_t from libdvdread |
114 | 316 */ |
317 dvdnav_status_t dvdnav_menu_call(dvdnav_t *self, DVDMenuID_t menu); | |
318 | |
147 | 319 /* |
164 | 320 * Return the title number and part currently being played. |
321 * A title of 0 indicates, we are in a menu. In this case, part | |
322 * is set to the current menu's ID. | |
114 | 323 */ |
195 | 324 dvdnav_status_t dvdnav_current_title_info(dvdnav_t *self, int32_t *title, |
325 int32_t *part); | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
326 |
147 | 327 /* |
409
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
328 * Return the title number, pgcn and pgn currently being played. |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
329 * A title of 0 indicates, we are in a menu. |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
330 */ |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
331 dvdnav_status_t dvdnav_current_title_program(dvdnav_t *self, int32_t *title, |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
332 int32_t *pgcn, int32_t *pgn); |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
333 |
9b8bfc56a7fe
Add dvdnav_program_play & dvdnav_current_title_program
erik
parents:
401
diff
changeset
|
334 /* |
147 | 335 * Return the current position (in blocks) within the current |
336 * title and the length (in blocks) of said title. | |
388 | 337 * |
147 | 338 * Current implementation is wrong and likely to behave unpredictably! |
339 * Use is discouraged! | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
340 */ |
147 | 341 dvdnav_status_t dvdnav_get_position_in_title(dvdnav_t *self, |
195 | 342 uint32_t *pos, |
343 uint32_t *len); | |
0 | 344 |
147 | 345 /* |
346 * This function is only available for compatibility reasons. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
347 * |
147 | 348 * Stop playing the current position and start playback of the current title |
349 * from the specified part. | |
0 | 350 */ |
195 | 351 dvdnav_status_t dvdnav_part_search(dvdnav_t *self, int32_t part); |
147 | 352 |
0 | 353 |
147 | 354 /********************************************************************* |
355 * program chain/program navigation * | |
356 *********************************************************************/ | |
357 | |
358 /* | |
123 | 359 * Stop playing the current position and start playback from the last |
360 * VOBU boundary before the given sector. The sector number is not | |
361 * meant to be an absolute physical DVD sector, but a relative sector | |
362 * in the current program. This function cannot leave the current | |
363 * program and will fail, if asked to do so. | |
0 | 364 * |
147 | 365 * If program chain based positioning is enabled |
366 * (see dvdnav_set_PGC_positioning_flag()), this will seek to the relative | |
367 * sector inside the current program chain. | |
368 * | |
369 * 'origin' can be one of SEEK_SET, SEEK_CUR, SEEK_END as defined in | |
370 * fcntl.h. | |
0 | 371 */ |
388 | 372 dvdnav_status_t dvdnav_sector_search(dvdnav_t *self, |
195 | 373 uint64_t offset, int32_t origin); |
0 | 374 |
147 | 375 /* |
269
77e472cef5f8
implemented dvdnav_get_current_time() with obvious meaning
nicodvb
parents:
268
diff
changeset
|
376 returns the current stream time in PTS ticks as reported by the IFO structures |
77e472cef5f8
implemented dvdnav_get_current_time() with obvious meaning
nicodvb
parents:
268
diff
changeset
|
377 divide it by 90000 to get the current play time in seconds |
77e472cef5f8
implemented dvdnav_get_current_time() with obvious meaning
nicodvb
parents:
268
diff
changeset
|
378 */ |
308
494842974e55
- fix compilation of C++ code using dvdnav.h (this is a reserved C++ keyword)
rathann
parents:
307
diff
changeset
|
379 int64_t dvdnav_get_current_time(dvdnav_t *self); |
269
77e472cef5f8
implemented dvdnav_get_current_time() with obvious meaning
nicodvb
parents:
268
diff
changeset
|
380 |
77e472cef5f8
implemented dvdnav_get_current_time() with obvious meaning
nicodvb
parents:
268
diff
changeset
|
381 /* |
147 | 382 * Stop playing the current position and start playback of the title |
383 * from the specified timecode. | |
0 | 384 * |
147 | 385 * Currently unimplemented! |
0 | 386 */ |
388 | 387 dvdnav_status_t dvdnav_time_search(dvdnav_t *self, |
195 | 388 uint64_t time); |
0 | 389 |
147 | 390 /* |
391 * Stop playing current position and play the "GoUp"-program chain. | |
392 * (which generally leads to the title menu or a higer-level menu). | |
393 */ | |
394 dvdnav_status_t dvdnav_go_up(dvdnav_t *self); | |
395 | |
396 /* | |
123 | 397 * Stop playing the current position and start playback at the |
398 * previous program (if it exists). | |
0 | 399 */ |
400 dvdnav_status_t dvdnav_prev_pg_search(dvdnav_t *self); | |
401 | |
147 | 402 /* |
123 | 403 * Stop playing the current position and start playback at the |
404 * first program. | |
0 | 405 */ |
406 dvdnav_status_t dvdnav_top_pg_search(dvdnav_t *self); | |
407 | |
147 | 408 /* |
123 | 409 * Stop playing the current position and start playback at the |
410 * next program (if it exists). | |
0 | 411 */ |
412 dvdnav_status_t dvdnav_next_pg_search(dvdnav_t *self); | |
413 | |
147 | 414 /* |
0 | 415 * Return the current position (in blocks) within the current |
123 | 416 * program and the length (in blocks) of current program. |
147 | 417 * |
418 * If program chain based positioning is enabled | |
419 * (see dvdnav_set_PGC_positioning_flag()), this will return the | |
420 * relative position in and the length of the current program chain. | |
0 | 421 */ |
195 | 422 dvdnav_status_t dvdnav_get_position(dvdnav_t *self, uint32_t *pos, |
423 uint32_t *len); | |
8
66708b4a1b5e
Stop C++ bitching about some things and extend the menus example
richwareham
parents:
5
diff
changeset
|
424 |
0 | 425 |
147 | 426 /********************************************************************* |
427 * menu highlights * | |
428 *********************************************************************/ | |
0 | 429 |
147 | 430 /* |
114 | 431 * Most functions related to highlights take a NAV PCI packet as a parameter. |
432 * While you can get the such a packet from libdvdnav, for players with internal | |
433 * FIFOs, this will result in errors, because due to the FIFO length, libdvdnav will | |
434 * be ahead in the stream compared to what the user is seeing on screen. | |
435 * Therefore, player applications who have a NAV packet available, which is | |
436 * better in sync with the actual playback should always pass this one to these | |
437 * functions. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
438 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
439 |
147 | 440 /* |
388 | 441 * Get the currently highlighted button |
147 | 442 * number (1..36) or 0 if no button is highlighted. |
0 | 443 */ |
195 | 444 dvdnav_status_t dvdnav_get_current_highlight(dvdnav_t *self, int32_t *button); |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
445 |
147 | 446 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
447 * Returns the Presentation Control Information (PCI) structure associated |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
448 * with the current position. |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
449 * |
147 | 450 * Read the general notes above. |
451 * See also libdvdreads nav_types.h for definition of pci_t. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
452 */ |
22
3c1df0cb3aee
Start of rewrite of libdvdnav. Still need to re-implement seeking.
jcdutton
parents:
21
diff
changeset
|
453 pci_t* dvdnav_get_current_nav_pci(dvdnav_t *self); |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
454 |
147 | 455 /* |
456 * Returns the DSI (data search information) structure associated | |
66
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
457 * with the current position. |
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
458 * |
147 | 459 * Read the general notes above. |
460 * See also libdvdreads nav_types.h for definition of dsi_t. | |
66
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
461 */ |
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
462 dsi_t* dvdnav_get_current_nav_dsi(dvdnav_t *self); |
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
463 |
147 | 464 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
465 * Get the area associated with a certain button. |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
466 */ |
147 | 467 dvdnav_status_t dvdnav_get_highlight_area(pci_t *nav_pci , int32_t button, int32_t mode, |
468 dvdnav_highlight_area_t *highlight); | |
0 | 469 |
147 | 470 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
471 * Move button highlight around as suggested by function name (e.g. with arrow keys). |
0 | 472 */ |
98 | 473 dvdnav_status_t dvdnav_upper_button_select(dvdnav_t *self, pci_t *pci); |
474 dvdnav_status_t dvdnav_lower_button_select(dvdnav_t *self, pci_t *pci); | |
475 dvdnav_status_t dvdnav_right_button_select(dvdnav_t *self, pci_t *pci); | |
476 dvdnav_status_t dvdnav_left_button_select(dvdnav_t *self, pci_t *pci); | |
0 | 477 |
147 | 478 /* |
479 * Activate ("press") the currently highlighted button. | |
0 | 480 */ |
98 | 481 dvdnav_status_t dvdnav_button_activate(dvdnav_t *self, pci_t *pci); |
0 | 482 |
147 | 483 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
484 * Highlight a specific button. |
0 | 485 */ |
195 | 486 dvdnav_status_t dvdnav_button_select(dvdnav_t *self, pci_t *pci, int32_t button); |
0 | 487 |
147 | 488 /* |
489 * Activate ("press") specified button. | |
0 | 490 */ |
195 | 491 dvdnav_status_t dvdnav_button_select_and_activate(dvdnav_t *self, pci_t *pci, int32_t button); |
0 | 492 |
147 | 493 /* |
91
df9712507b30
Add a new API function, to allow for more flexible menu button control.
jcdutton
parents:
90
diff
changeset
|
494 * Activate (press) a button and execute specified command. |
df9712507b30
Add a new API function, to allow for more flexible menu button control.
jcdutton
parents:
90
diff
changeset
|
495 */ |
df9712507b30
Add a new API function, to allow for more flexible menu button control.
jcdutton
parents:
90
diff
changeset
|
496 dvdnav_status_t dvdnav_button_activate_cmd(dvdnav_t *self, int32_t button, vm_cmd_t *cmd); |
df9712507b30
Add a new API function, to allow for more flexible menu button control.
jcdutton
parents:
90
diff
changeset
|
497 |
147 | 498 /* |
499 * Select button at specified video frame coordinates. | |
0 | 500 */ |
195 | 501 dvdnav_status_t dvdnav_mouse_select(dvdnav_t *self, pci_t *pci, int32_t x, int32_t y); |
0 | 502 |
147 | 503 /* |
504 * Activate ("press") button at specified video frame coordinates. | |
0 | 505 */ |
195 | 506 dvdnav_status_t dvdnav_mouse_activate(dvdnav_t *self, pci_t *pci, int32_t x, int32_t y); |
0 | 507 |
147 | 508 |
509 /********************************************************************* | |
510 * languages * | |
511 *********************************************************************/ | |
512 | |
388 | 513 /* |
147 | 514 * The language codes expected by these functions are two character |
515 * codes as defined in ISO639. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
516 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
517 |
147 | 518 /* |
207 | 519 * Set which menu language we should use per default. |
0 | 520 */ |
44 | 521 dvdnav_status_t dvdnav_menu_language_select(dvdnav_t *self, |
522 char *code); | |
523 | |
147 | 524 /* |
207 | 525 * Set which audio language we should use per default. |
44 | 526 */ |
527 dvdnav_status_t dvdnav_audio_language_select(dvdnav_t *self, | |
528 char *code); | |
529 | |
147 | 530 /* |
207 | 531 * Set which spu language we should use per default. |
44 | 532 */ |
533 dvdnav_status_t dvdnav_spu_language_select(dvdnav_t *self, | |
0 | 534 char *code); |
535 | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
536 |
147 | 537 /********************************************************************* |
538 * obtaining stream attributes * | |
539 *********************************************************************/ | |
0 | 540 |
147 | 541 /* |
542 * Return a string describing the title of the DVD. | |
543 * This is an ID string encoded on the disc by the author. In many cases | |
544 * this is a descriptive string such as `THE_MATRIX' but sometimes is sigularly | |
545 * uninformative such as `PDVD-011421'. Some DVD authors even forget to set this, | |
546 * so you may also read the default of the authoring software they used, like | |
547 * `DVDVolume'. | |
0 | 548 */ |
147 | 549 dvdnav_status_t dvdnav_get_title_string(dvdnav_t *self, const char **title_str); |
0 | 550 |
147 | 551 /* |
397
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
552 * Returns a string containing the serial number of the DVD. |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
553 * This has a max of 15 characters and should be more unique than the |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
554 * title string. |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
555 */ |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
556 dvdnav_status_t dvdnav_get_serial_string(dvdnav_t *self, const char **serial_str); |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
557 |
a70f79850e5f
implement and export dvdnav_get_serial_string(); patch by Matthew Wire devel - mrwire - co - uk. Fixed by Erik
nicodvb
parents:
395
diff
changeset
|
558 /* |
147 | 559 * Get video aspect code. |
560 * The aspect code does only change on VTS boundaries. | |
561 * See the DVDNAV_VTS_CHANGE event. | |
388 | 562 * |
147 | 563 * 0 -- 4:3, 2 -- 16:9 |
0 | 564 */ |
147 | 565 uint8_t dvdnav_get_video_aspect(dvdnav_t *self); |
0 | 566 |
147 | 567 /* |
401 | 568 * Get video resolution. |
569 */ | |
570 int dvdnav_get_video_resolution(dvdnav_t *self, uint32_t *width, uint32_t *height); | |
571 | |
572 /* | |
147 | 573 * Get video scaling permissions. |
574 * The scaling permission does only change on VTS boundaries. | |
575 * See the DVDNAV_VTS_CHANGE event. | |
0 | 576 * |
147 | 577 * bit0 set = deny letterboxing, bit1 set = deny pan&scan |
0 | 578 */ |
147 | 579 uint8_t dvdnav_get_video_scale_permission(dvdnav_t *self); |
0 | 580 |
147 | 581 /* |
582 * Converts a *logical* audio stream id into language code | |
583 * (returns 0xffff if no such stream). | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
584 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
585 uint16_t dvdnav_audio_stream_to_lang(dvdnav_t *self, uint8_t stream); |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
586 |
147 | 587 /* |
266 | 588 * Returns the format of *logical* audio stream 'stream' |
589 * (returns 0xffff if no such stream). | |
590 */ | |
271
814e79060099
renamed dvdnav_audio_stream_to_format() as dvdnav_audio_stream_format() as implemeted in dvdnav.c; patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
269
diff
changeset
|
591 uint16_t dvdnav_audio_stream_format(dvdnav_t *self, uint8_t stream); |
266 | 592 |
593 /* | |
272
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
594 * Returns number of channelsn in *logical* audio stream 'stream' |
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
595 * (returns 0xffff if no such stream). |
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
596 */ |
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
597 uint16_t dvdnav_audio_stream_channels(dvdnav_t *self, uint8_t stream); |
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
598 |
baec6f29fb76
added dvdnav_audio_stream_channels(); patch by Andreas Oman (andreas olebyn nu)
nicodvb
parents:
271
diff
changeset
|
599 /* |
388 | 600 * Converts a *logical* subpicture stream id into country code |
147 | 601 * (returns 0xffff if no such stream). |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
602 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
603 uint16_t dvdnav_spu_stream_to_lang(dvdnav_t *self, uint8_t stream); |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
604 |
147 | 605 /* |
606 * Converts a *physical* (MPEG) audio stream id into a logical stream number. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
607 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
608 int8_t dvdnav_get_audio_logical_stream(dvdnav_t *self, uint8_t audio_num); |
0 | 609 |
300
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
610 #define HAVE_GET_AUDIO_ATTR |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
611 /* |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
612 * Get audio attr |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
613 */ |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
614 dvdnav_status_t dvdnav_get_audio_attr(dvdnav_t *self, uint8_t audio_mum, audio_attr_t *audio_attr); |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
615 |
147 | 616 /* |
617 * Converts a *physical* (MPEG) subpicture stream id into a logical stream number. | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
618 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
619 int8_t dvdnav_get_spu_logical_stream(dvdnav_t *self, uint8_t subp_num); |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
620 |
300
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
621 #define HAVE_GET_SPU_ATTR |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
622 /* |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
623 * Get spu attr |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
624 */ |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
625 dvdnav_status_t dvdnav_get_spu_attr(dvdnav_t *self, uint8_t audio_mum, subp_attr_t *subp_attr); |
cbd2b606f343
implemented dvdnav_get_audio_attr and dvdnav_get_spu_attr; patch by Attila Otvos
nicodvb
parents:
295
diff
changeset
|
626 |
147 | 627 /* |
114 | 628 * Get active audio stream. |
629 */ | |
630 int8_t dvdnav_get_active_audio_stream(dvdnav_t *self); | |
631 | |
147 | 632 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
633 * Get active spu stream. |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
634 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
635 int8_t dvdnav_get_active_spu_stream(dvdnav_t *self); |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
636 |
388 | 637 /* |
262 | 638 * Get the set of user operations that are currently prohibited. |
388 | 639 * There are potentially new restrictions right after |
262 | 640 * DVDNAV_CHANNEL_HOP and DVDNAV_NAV_PACKET. |
641 */ | |
642 user_ops_t dvdnav_get_restrictions(dvdnav_t *self); | |
147 | 643 |
264 | 644 |
147 | 645 /********************************************************************* |
646 * multiple angles * | |
647 *********************************************************************/ | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
648 |
147 | 649 /* |
650 * The libdvdnav library abstracts away the difference between seamless and | |
651 * non-seamless angles. From the point of view of the programmer you just set the | |
652 * angle number and all is well in the world. You will always see only the | |
653 * selected angle coming from the get_next_block functions. | |
0 | 654 * |
147 | 655 * Note: |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
656 * It is quite possible that some tremendously strange DVD feature might change the |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
657 * angle number from under you. Generally you should always view the results from |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
658 * dvdnav_get_angle_info() as definitive only up to the next time you call |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
659 * dvdnav_get_next_block(). |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
660 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
661 |
147 | 662 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
663 * Sets the current angle. If you try to follow a non existant angle |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
664 * the call fails. |
0 | 665 */ |
195 | 666 dvdnav_status_t dvdnav_angle_change(dvdnav_t *self, int32_t angle); |
0 | 667 |
147 | 668 /* |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
669 * Returns the current angle and number of angles present. |
0 | 670 */ |
195 | 671 dvdnav_status_t dvdnav_get_angle_info(dvdnav_t *self, int32_t *current_angle, |
672 int32_t *number_of_angles); | |
66
2bd4a78eefce
Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
richwareham
parents:
60
diff
changeset
|
673 |
147 | 674 /********************************************************************* |
675 * domain queries * | |
676 *********************************************************************/ | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
677 |
147 | 678 /* |
679 * Are we in the First Play domain? | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
680 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
681 int8_t dvdnav_is_domain_fp(dvdnav_t *self); |
114 | 682 |
147 | 683 /* |
684 * Are we in the Video management Menu domain? | |
0 | 685 */ |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
686 int8_t dvdnav_is_domain_vmgm(dvdnav_t *self); |
114 | 687 |
147 | 688 /* |
689 * Are we in the Video Title Menu domain? | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
690 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
691 int8_t dvdnav_is_domain_vtsm(dvdnav_t *self); |
114 | 692 |
147 | 693 /* |
694 * Are we in the Video Title Set domain? | |
43
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
695 */ |
0ba15bf3dc25
Biiiiiiig change to let doxygen generate some docs for the library. Note that I'm in no way sure that the autoconf stuff plays nice.
richwareham
parents:
22
diff
changeset
|
696 int8_t dvdnav_is_domain_vts(dvdnav_t *self); |
0 | 697 |
698 | |
5
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
699 #ifdef __cplusplus |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
700 } |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
701 #endif |
c1b55dc1bfed
Add API call to get number of programmes in current title.
richwareham
parents:
4
diff
changeset
|
702 |
391 | 703 #endif /* LIBDVDNAV_DVDNAV_H */ |