annotate dvdnav_events.h @ 43:0ba15bf3dc25 src

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.
author richwareham
date Thu, 06 Jun 2002 15:03:09 +0000
parents 3c1df0cb3aee
children 5674fbd44f26
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
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
24 #ifndef DVDNAV_EVENTS_H_INCLUDED
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
25 #define DVDNAV_EVENTS_H_INCLUDED
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
26
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
27 #include <dvdread/ifo_types.h>
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
28 #include <dvdread/nav_types.h>
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
29 #include <dvdread/dvd_reader.h>
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
30
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
31 /**
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
32 * \file dvdnav_events.h
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
33 * This header defines events and event types
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
34 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
35
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
36 /*** EVENTS ***/
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
37
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
38 #define DVDNAV_BLOCK_OK 0 /*!< The next black was returned */
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
39 #define DVDNAV_NOP 1 /*!< No action should be taken */
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
40 #define DVDNAV_STILL_FRAME 2 /*!< The preceeding block was the last in a
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
41 still frame. */
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
42 #define DVDNAV_SPU_STREAM_CHANGE 3 /*!< The SPU stream was changed */
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
43 #define DVDNAV_AUDIO_STREAM_CHANGE 4 /*!< The Audio stream was changed */
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
44 #define DVDNAV_VTS_CHANGE 5 /*!< We have changed VTS */
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
45 #define DVDNAV_CELL_CHANGE 6 /*!< We have jumped to a new cell */
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
46 #define DVDNAV_NAV_PACKET 7 /*!< The packet just passed was the NAV packet */
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
47 #define DVDNAV_STOP 8 /*!< The last block was final, no more are coming */
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 #define DVDNAV_HIGHLIGHT 9 /*!< Change highlight region */
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 #define DVDNAV_SPU_CLUT_CHANGE 10 /*!< SPU CLUT */
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
50 #define DVDNAV_SEEK_DONE 11 /*!< Seek done, subtitles should be reset */
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
51 #define DVDNAV_HOP_CHANNEL 12 /*!< Sent when non-seemless stream change has happed
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 E.g. Menu button pressed causing change in menu */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
53
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
54 /*** EVENT TYPES ***/
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
55
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
56 /**
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
57 * Structure providing information on DVDNAV_STILL_FRAME events.
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
58 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
59 typedef struct {
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
60 int length; /*!<
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
61 The length (in seconds) the still frame
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
62 should be displayed for, or 0xff if
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 indefinate. */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
64 } dvdnav_still_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
65
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
66 /**
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
67 * Structure providing information on DVDNAV_*_STREAM_CHANGE events.
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
68 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
69 typedef struct {
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
70 int physical; /*!< The physical (MPEG) stream number. */
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
71 int logical; /*!< The logical (DVD) stream number. */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
72 } dvdnav_stream_change_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
73
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
74 /**
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
75 * Structure providing information on DVDNAV_VTS_CHANGE events.
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
76 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
77 typedef struct {
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
78 int old_vtsN; /*!< The old VTS number */
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
79 dvd_read_domain_t old_domain; /*!< The old domain */
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
80 int new_vtsN; /*!< The new VTS number */
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
81 dvd_read_domain_t new_domain; /*!< The new domain */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
82 } dvdnav_vts_change_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
83
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
84 /**
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
85 * Structure providing information on DVDNAV_CELL_CHANGE events.
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
86 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
87 typedef struct {
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
88 cell_playback_t *old_cell; /*!< The old cell (or NULL if this is
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
89 the first 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
90 cell_playback_t *new_cell; /*!< The cell_playback_t for the new cell */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
91 } dvdnav_cell_change_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
92
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
93 /**
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
94 * Structure providing information on DVDNAV_NAV_PACKET events.
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
95 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
96 typedef struct {
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
97 pci_t *pci;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
98 dsi_t *dsi;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
99 } dvdnav_nav_packet_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
100
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
101 /**
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
102 * Structure providing information on DVDNAV_HIGHLIGHT events.
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
103 */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
104 typedef struct {
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 int display; /*!< 0 - hide, 1 - show, entries below only guaranteed useful
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
106 if this is '1' */
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
107 uint32_t palette; /*!< The CLUT entries for the highlight palette
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
108 (4-bits per entry -> 4 entries) */
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
109 uint16_t sx,sy,ex,ey; /*!< The start/end x,y positions */
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
110 uint32_t pts; /*!< Highlight PTS to match with SPU */
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
111 uint32_t buttonN; /*!< Button number for the SPU decoder. */
0
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
112 } dvdnav_highlight_event_t;
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
113
3ddf0eaece51 Initial revision
richwareham
parents:
diff changeset
114 #endif /* DVDNAV_EVENTS_H_INCLUDED */