Mercurial > libdvdnav.hg
comparison dvdnav_internal.h @ 388:90ca650854e0 src
Remove all trailing whitespace,
patch by Erik Hovland *erik$hovland dot org%
author | rathann |
---|---|
date | Sat, 06 Sep 2008 21:55:51 +0000 |
parents | d80a041928be |
children | d3c273ced49c |
comparison
equal
deleted
inserted
replaced
387:4e28052eb201 | 388:90ca650854e0 |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2001-2004 Rich Wareham <richwareham@users.sourceforge.net> | 2 * Copyright (C) 2001-2004 Rich Wareham <richwareham@users.sourceforge.net> |
3 * | 3 * |
4 * This file is part of libdvdnav, a DVD navigation library. | 4 * This file is part of libdvdnav, a DVD navigation library. |
5 * | 5 * |
6 * libdvdnav is free software; you can redistribute it and/or modify | 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 | 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 | 8 * the Free Software Foundation; either version 2 of the License, or |
9 * (at your option) any later version. | 9 * (at your option) any later version. |
10 * | 10 * |
11 * libdvdnav is distributed in the hope that it will be useful, | 11 * libdvdnav is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 * GNU General Public License for more details. | 14 * GNU General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU General Public License | 16 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software | 17 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
19 * | 19 * |
20 * $Id$ | 20 * $Id$ |
81 | 81 |
82 typedef struct read_cache_s read_cache_t; | 82 typedef struct read_cache_s read_cache_t; |
83 | 83 |
84 /* | 84 /* |
85 * These are defined here because they are | 85 * These are defined here because they are |
86 * not in ifo_types.h, they maybe one day | 86 * not in ifo_types.h, they maybe one day |
87 */ | 87 */ |
88 | 88 |
89 #ifndef audio_status_t | 89 #ifndef audio_status_t |
90 typedef struct { | 90 typedef struct { |
91 #ifdef WORDS_BIGENDIAN | 91 #ifdef WORDS_BIGENDIAN |
94 unsigned int stream_number : 3; | 94 unsigned int stream_number : 3; |
95 uint8_t zero2; | 95 uint8_t zero2; |
96 #else | 96 #else |
97 uint8_t zero2; | 97 uint8_t zero2; |
98 unsigned int stream_number : 3; | 98 unsigned int stream_number : 3; |
99 unsigned int zero1 : 4; | 99 unsigned int zero1 : 4; |
100 unsigned int available : 1; | 100 unsigned int available : 1; |
101 #endif | 101 #endif |
102 } ATTRIBUTE_PACKED audio_status_t; | 102 } ATTRIBUTE_PACKED audio_status_t; |
103 #endif | 103 #endif |
104 | 104 |
131 typedef struct dvdnav_vobu_s { | 131 typedef struct dvdnav_vobu_s { |
132 int32_t vobu_start; /* Logical Absolute. MAX needed is 0x300000 */ | 132 int32_t vobu_start; /* Logical Absolute. MAX needed is 0x300000 */ |
133 int32_t vobu_length; | 133 int32_t vobu_length; |
134 int32_t blockN; /* Relative offset */ | 134 int32_t blockN; /* Relative offset */ |
135 int32_t vobu_next; /* Relative offset */ | 135 int32_t vobu_next; /* Relative offset */ |
136 } dvdnav_vobu_t; | 136 } dvdnav_vobu_t; |
137 | 137 |
138 /** The main DVDNAV type **/ | 138 /** The main DVDNAV type **/ |
139 | 139 |
140 struct dvdnav_s { | 140 struct dvdnav_s { |
141 /* General data */ | 141 /* General data */ |
142 char path[MAX_PATH_LEN]; /* Path to DVD device/dir */ | 142 char path[MAX_PATH_LEN]; /* Path to DVD device/dir */ |
143 dvd_file_t *file; /* Currently opened file */ | 143 dvd_file_t *file; /* Currently opened file */ |
144 | 144 |
145 /* Position data */ | 145 /* Position data */ |
146 vm_position_t position_next; | 146 vm_position_t position_next; |
147 vm_position_t position_current; | 147 vm_position_t position_current; |
148 dvdnav_vobu_t vobu; | 148 dvdnav_vobu_t vobu; |
149 | 149 |
150 /* NAV data */ | 150 /* NAV data */ |
151 pci_t pci; | 151 pci_t pci; |
152 dsi_t dsi; | 152 dsi_t dsi; |
153 uint32_t last_cmd_nav_lbn; /* detects when a command is issued on an already left NAV */ | 153 uint32_t last_cmd_nav_lbn; /* detects when a command is issued on an already left NAV */ |
154 | 154 |
155 /* Flags */ | 155 /* Flags */ |
156 int skip_still; /* Set when skipping a still */ | 156 int skip_still; /* Set when skipping a still */ |
157 int sync_wait; /* applications should wait till they are in sync with us */ | 157 int sync_wait; /* applications should wait till they are in sync with us */ |
158 int sync_wait_skip; /* Set when skipping wait state */ | 158 int sync_wait_skip; /* Set when skipping wait state */ |
159 int spu_clut_changed; /* The SPU CLUT changed */ | 159 int spu_clut_changed; /* The SPU CLUT changed */ |
160 int started; /* vm_start has been called? */ | 160 int started; /* vm_start has been called? */ |
161 int use_read_ahead; /* 1 - use read-ahead cache, 0 - don't */ | 161 int use_read_ahead; /* 1 - use read-ahead cache, 0 - don't */ |
162 int pgc_based; /* positioning works PGC based instead of PG based */ | 162 int pgc_based; /* positioning works PGC based instead of PG based */ |
163 int cur_cell_time; /* time expired since the beginning of the current cell, read from the dsi */ | 163 int cur_cell_time; /* time expired since the beginning of the current cell, read from the dsi */ |
164 | 164 |
165 /* VM */ | 165 /* VM */ |
166 vm_t *vm; | 166 vm_t *vm; |
167 pthread_mutex_t vm_lock; | 167 pthread_mutex_t vm_lock; |
168 | 168 |
169 /* Read-ahead cache */ | 169 /* Read-ahead cache */ |