annotate stream/stream_dvdnav.h @ 26375:4319a0b14666

Simplify: use AV_RB24
author reimar
date Sat, 12 Apr 2008 15:14:02 +0000
parents 7ee4ae1648e6
children 2b6d87a07612
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23689
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 21603
diff changeset
1 #ifndef MPLAYER_STREAM_DVDNAV_H
3f0d00abc073 Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents: 21603
diff changeset
2 #define MPLAYER_STREAM_DVDNAV_H
19302
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
3
26184
7ee4ae1648e6 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 25830
diff changeset
4 #include <stdint.h>
7ee4ae1648e6 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 25830
diff changeset
5 #include "stream.h"
7ee4ae1648e6 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 25830
diff changeset
6
19302
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
7 typedef struct {
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
8 int event; /* event number fromd dvdnav_events.h */
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
9 void * details; /* event details */
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
10 int len; /* bytes in details */
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
11 } dvdnav_event_t;
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
12
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
13 typedef struct {
21200
c7b5dd2b2291 better nav highlight handling
ben
parents: 21199
diff changeset
14 uint16_t sx, sy;
c7b5dd2b2291 better nav highlight handling
ben
parents: 21199
diff changeset
15 uint16_t ex, ey;
c7b5dd2b2291 better nav highlight handling
ben
parents: 21199
diff changeset
16 } nav_highlight_t;
c7b5dd2b2291 better nav highlight handling
ben
parents: 21199
diff changeset
17
21197
7ecd9de03435 added code to identify subs language and count; needed for forthcoming support for -slang
nicodvb
parents: 20405
diff changeset
18 int dvdnav_number_of_subs(stream_t *stream);
21600
ca8327c8d1fb added dvdnav_aid_from_lang() to support -alang
nicodvb
parents: 21560
diff changeset
19 int dvdnav_aid_from_lang(stream_t *stream, unsigned char *language);
21603
4bfdaf8bcae5 implemented dvdnav_lang_from_aid() to retrieve audio language
nicodvb
parents: 21600
diff changeset
20 int dvdnav_lang_from_aid(stream_t *stream, int id, unsigned char *buf);
21197
7ecd9de03435 added code to identify subs language and count; needed for forthcoming support for -slang
nicodvb
parents: 20405
diff changeset
21 int dvdnav_sid_from_lang(stream_t *stream, unsigned char *language);
21560
a16219e6d656 added function to return the language of the specified subtitle id. Patch by
nicodvb
parents: 21538
diff changeset
22 int dvdnav_lang_from_sid(stream_t *stream, int sid, unsigned char *buf);
25824
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
23 void mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button);
19851
adfd08588514 report mouse coordinates after movement to dvdnav; this permits to enable button selection using the mouse; patch by Jonas Jermann and me
nicodvb
parents: 19774
diff changeset
24 void mp_dvdnav_update_mouse_pos(stream_t *stream, int32_t x, int32_t y, int* button);
21219
8258747951d7 keep nav highlight event in dvdnav priv structure
ben
parents: 21200
diff changeset
25 void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl);
21538
c9b6588932b5 export spu palette; part of a patch by Otvos Attila
nicodvb
parents: 21219
diff changeset
26 unsigned int *mp_dvdnav_get_spu_clut(stream_t *stream);
25817
883c6c3ae041 Add new command to switch between dvdnav titles
ben
parents: 25537
diff changeset
27 void mp_dvdnav_switch_title(stream_t *stream, int title);
25824
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
28 int mp_dvdnav_is_eof (stream_t *stream);
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
29 int mp_dvdnav_skip_still (stream_t *stream);
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
30 int mp_dvdnav_skip_wait (stream_t *stream);
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
31 void mp_dvdnav_read_wait (stream_t *stream, int mode, int automode);
eb338d06c638 Add support for dvdnav still frames playback.
ben
parents: 25817
diff changeset
32 int mp_dvdnav_cell_has_changed (stream_t *stream, int clear);
25830
32acf35f74e1 add a new state flag to dvdnav in order to notify if
ben
parents: 25824
diff changeset
33 int mp_dvdnav_stream_has_changed (stream_t *stream);
19302
cc4774869fbc renamed dvdnav_stream to stream_dvdnav for consistency
ben
parents:
diff changeset
34
25535
3baf6a2283da Add explanatory comments to the #endif part of multiple inclusion guards.
diego
parents: 24493
diff changeset
35 #endif /* MPLAYER_STREAM_DVDNAV_H */