annotate dvdnav_events.h @ 194:0ee10bd2292a src

Oops! We like still menus really.
author jcdutton
date Sun, 11 May 2003 00:53:28 +0000
parents 90b1f6f0520e
children 52877d182e96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
1 /*
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
2 * Copyright (C) 2001 Rich Wareham <richwareham@users.sourceforge.net>
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
3 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
4 * This file is part of libdvdnav, a DVD navigation library.
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
5 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
6 * libdvdnav is free software; you can redistribute it and/or modify
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
9 * (at your option) any later version.
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
10 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
11 * libdvdnav is distributed in the hope that it will be useful,
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
14 * GNU General Public License for more details.
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
15 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
19 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
20 * $Id$
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
21 *
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
22 */
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
23
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
24 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
25 * This header defines events and event types
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
26 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
27
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
28 #ifndef DVDNAV_EVENTS_H_INCLUDED
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
29 #define DVDNAV_EVENTS_H_INCLUDED
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
30
169
90b1f6f0520e Modified libdvdnav to do without libdvdread.
jcdutton
parents: 161
diff changeset
31 #include "ifo_types.h"
90b1f6f0520e Modified libdvdnav to do without libdvdread.
jcdutton
parents: 161
diff changeset
32 #include "dvd_reader.h"
90b1f6f0520e Modified libdvdnav to do without libdvdread.
jcdutton
parents: 161
diff changeset
33 #include "nav_types.h"
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
34
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
35
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
36 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
37 * DVDNAV_BLOCK_OK
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
38 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
39 * A regular data block from the DVD has been returned.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
40 * This one should be demuxed and decoded for playback.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
41 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
42 #define DVDNAV_BLOCK_OK 0
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
43
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
44
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
45 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
46 * DVDNAV_NOP
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
47 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
48 * Just ignore this.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
49 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
50 #define DVDNAV_NOP 1
114
b6834e6359cf big libdvdnav cleanup, quoting the ChangeLog:
mroi
parents: 55
diff changeset
51
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
52
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
53 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
54 * DVDNAV_STILL_FRAME
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
55 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
56 * We have reached a still frame. The player application should wait
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
57 * the amount of time specified by the still's length while still handling
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
58 * user input to make menus and other interactive stills work.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
59 * The last delivered frame should be kept showing.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
60 * Once the still has timed out, call dvdnav_skip_still().
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
61 * A length of 0xff means an infinite still which has to be skipped
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
62 * indirectly by some user interaction.
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
63 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
64 #define DVDNAV_STILL_FRAME 2
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
65
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
66 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
67 /* The length (in seconds) the still frame should be displayed for,
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
68 * or 0xff if infinite. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
69 int length;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
70 } dvdnav_still_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
71
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
72
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
73 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
74 * DVDNAV_SPU_STREAM_CHANGE
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
75 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
76 * Inform the SPU decoding/overlaying engine to switch SPU channels.
55
5674fbd44f26 report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents: 43
diff changeset
77 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
78 #define DVDNAV_SPU_STREAM_CHANGE 3
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
79
55
5674fbd44f26 report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents: 43
diff changeset
80 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
81 /* The physical (MPEG) stream number for widescreen SPU display.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
82 * Use this, if you blend the SPU on an anamorphic image before
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
83 * unsqueezing it. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
84 int physical_wide;
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
85
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
86 /* The physical (MPEG) stream number for letterboxed display.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
87 * Use this, if you blend the SPU on an anamorphic image after
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
88 * unsqueezing it. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
89 int physical_letterbox;
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
90
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
91 /* The physical (MPEG) stream number for pan&scan display.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
92 * Use this, if you blend the SPU on an anamorphic image after
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
93 * unsqueezing it the pan&scan way. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
94 int physical_pan_scan;
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
95
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
96 /* The logical (DVD) stream number. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
97 int logical;
55
5674fbd44f26 report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents: 43
diff changeset
98 } dvdnav_spu_stream_change_event_t;
5674fbd44f26 report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents: 43
diff changeset
99
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
100
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
101 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
102 * DVDNAV_AUDIO_STREAM_CHANGE
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
103 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
104 * Inform the audio decoder to switch channels.
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
105 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
106 #define DVDNAV_AUDIO_STREAM_CHANGE 4
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
107
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
108 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
109 /* The physical (MPEG) stream number. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
110 int physical;
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
111
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
112 /* The logical (DVD) stream number. */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
113 int logical;
55
5674fbd44f26 report all spu types (widescreen, letterbox and pan&scan), not widescreen
mroi
parents: 43
diff changeset
114 } dvdnav_audio_stream_change_event_t;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
115
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
116
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
117 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
118 * DVDNAV_VTS_CHANGE
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
119 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
120 * Some status information like video aspect and video scale permissions do
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
121 * not change inside a VTS. Therefore this event can be used to query such
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
122 * information only when necessary and update the decoding/displaying
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
123 * accordingly.
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
124 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
125 #define DVDNAV_VTS_CHANGE 5
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
126
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
127 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
128 int old_vtsN; /* the old VTS number */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
129 dvd_read_domain_t old_domain; /* the old domain */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
130 int new_vtsN; /* the new VTS number */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
131 dvd_read_domain_t new_domain; /* the new domain */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
132 } dvdnav_vts_change_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
133
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
134
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
135 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
136 * DVDNAV_CELL_CHANGE
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
137 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
138 * Some status information like the current Title and Part numbers do not
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
139 * change inside a cell. Therefore this event can be used to query such
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
140 * information only when necessary and update the decoding/displaying
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
141 * accordingly.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
142 * Some useful information for accurate time display is also reported
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
143 * together with this event.
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 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
145 #define DVDNAV_CELL_CHANGE 6
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
146
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
147 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
148 int cellN; /* the new cell number */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
149 int pgN; /* the current program number */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
150 int64_t cell_length; /* the length of the current cell in PTS ticks */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
151 int64_t pg_length; /* the length of the current program in PTS ticks */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
152 int64_t pgc_length; /* the length of the current program chain in PTS ticks */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
153 int64_t cell_start; /* the start time of the current cell relatively to the PGC in PTS ticks */
161
81b9602f780c report start of PG as well
mroi
parents: 150
diff changeset
154 int64_t pg_start; /* the start time of the current PG relatively to the PGC in PTS ticks */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
155 } dvdnav_cell_change_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
156
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
157
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
158 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
159 * DVDNAV_NAV_PACKET
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
160 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
161 * NAV packets are useful for various purposes. They define the button
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
162 * highlight areas and VM commands of DVD menus, so they should in any
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
163 * case be sent to the SPU decoder/overlaying engine for the menus to work.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
164 * NAV packets also provide a way to detect PTS discontinuities, because
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
165 * they carry the start and end PTS values for the current VOBU.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
166 * (pci.vobu_s_ptm and pci.vobu_e_ptm) Whenever the start PTS of the
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
167 * current NAV does not match the end PTS of the previous NAV, a PTS
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
168 * discontinuity has occured.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
169 * NAV packets can also be used for time display, because they are
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
170 * timestamped relatively to the current Cell.
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
171 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
172 #define DVDNAV_NAV_PACKET 7
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
173
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
174
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
175 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
176 * DVDNAV_STOP
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
177 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
178 * Applications should end playback here. A subsequent dvdnav_get_next_block()
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
179 * call will restart the VM from the beginning of the DVD.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
180 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
181 #define DVDNAV_STOP 8
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
182
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
183
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
184 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
185 * DVDNAV_HIGHLIGHT
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
186 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
187 * The current button highlight changed. Inform the overlaying engine to
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
188 * highlight a different button. Please note, that at the moment only mode 1
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
189 * highlights are reported this way. That means, when the button highlight
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
190 * has been moved around by some function call, you will receive an event
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
191 * telling you the new button. But when a button gets activated, you have
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
192 * to handle the mode 2 highlighting (that is some different colour the
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
193 * button turns to on activation) in your application.
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
194 */
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
195 #define DVDNAV_HIGHLIGHT 9
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
196
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
197 typedef struct {
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
198 /* highlight mode: 0 - hide, 1 - show, 2 - activate, currently always 1 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
199 int display;
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
200
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
201 /* FIXME: these fields are currently not set */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
202 uint32_t palette; /* The CLUT entries for the highlight palette
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
203 (4-bits per entry -> 4 entries) */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
204 uint16_t sx,sy,ex,ey; /* The start/end x,y positions */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
205 uint32_t pts; /* Highlight PTS to match with SPU */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
206
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
207 /* button number for the SPU decoder/overlaying engine */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
208 uint32_t buttonN;
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
209 } dvdnav_highlight_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
210
150
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
211
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
212 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
213 * DVDNAV_SPU_CLUT_CHANGE
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
214 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
215 * Inform the SPU decoder/overlaying engine to update its colour lookup table.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
216 * The CLUT is given as 16 uint32_t's in the buffer.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
217 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
218 #define DVDNAV_SPU_CLUT_CHANGE 10
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
219
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
220
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
221 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
222 * DVDNAV_HOP_CHANNEL
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
223 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
224 * A non-seamless operation has been performed. Applications can drop all
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
225 * their internal fifo's content, which will speed up the response.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
226 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
227 #define DVDNAV_HOP_CHANNEL 12
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
228
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
229
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
230 /*
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
231 * DVDNAV_WAIT
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
232 *
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
233 * We have reached a point in DVD playback, where timing is critical.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
234 * Player application with internal fifos can introduce state
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
235 * inconsistencies, because libdvdnav is always the fifo's length
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
236 * ahead in the stream compared to what the application sees.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
237 * Such applications should wait until their fifos are empty
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
238 * when they receive this type of event.
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
239 * Once this is achieved, call dvdnav_skip_wait().
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
240 */
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
241 #define DVDNAV_WAIT 13
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
242
593b267a963a elaborate the comments
mroi
parents: 134
diff changeset
243
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
244 #endif /* DVDNAV_EVENTS_H_INCLUDED */