comparison dvdread/ifo_types.h @ 352:0dae99f22e60 src

read_subp_attr() uses getbits() instead of relying on endianness-specific bitfields
author nicodvb
date Sat, 03 May 2008 08:22:40 +0000
parents 950749fdce4a
children 4cc7655e7b30
comparison
equal deleted inserted replaced
351:c2218d2a9387 352:0dae99f22e60
167 * 1 extended 167 * 1 extended
168 * 2 other 168 * 2 other
169 * language: indicates language if type == 1 169 * language: indicates language if type == 1
170 * lang extension: if type == 1 contains the lang extension 170 * lang extension: if type == 1 contains the lang extension
171 */ 171 */
172 #ifdef WORDS_BIGENDIAN
173 unsigned char code_mode : 3; 172 unsigned char code_mode : 3;
174 unsigned char zero1 : 3; 173 unsigned char zero1 : 3;
175 unsigned char type : 2; 174 unsigned char type : 2;
176 #else
177 unsigned char type : 2;
178 unsigned char zero1 : 3;
179 unsigned char code_mode : 3;
180 #endif
181 uint8_t zero2; 175 uint8_t zero2;
182 uint16_t lang_code; 176 uint16_t lang_code;
183 uint8_t lang_extension; 177 uint8_t lang_extension;
184 uint8_t code_extension; 178 uint8_t code_extension;
185 } ATTRIBUTE_PACKED subp_attr_t; 179 } ATTRIBUTE_PACKED subp_attr_t;