comparison dvdread/ifo_types.h @ 348:5300b5982b85 src

video_attr_t is now defined and read correctly, rather than relying on conditional bitfields
author nicodvb
date Fri, 02 May 2008 08:27:21 +0000
parents 049808d4a560
children 8a711d89e294
comparison
equal deleted inserted replaced
347:a5319a5c34f4 348:5300b5982b85
73 73
74 /** 74 /**
75 * Video Attributes. 75 * Video Attributes.
76 */ 76 */
77 typedef struct { 77 typedef struct {
78 #ifdef WORDS_BIGENDIAN
79 unsigned char mpeg_version : 2; 78 unsigned char mpeg_version : 2;
80 unsigned char video_format : 2; 79 unsigned char video_format : 2;
81 unsigned char display_aspect_ratio : 2; 80 unsigned char display_aspect_ratio : 2;
82 unsigned char permitted_df : 2; 81 unsigned char permitted_df : 2;
83 82
87 unsigned char bit_rate : 1; 86 unsigned char bit_rate : 1;
88 87
89 unsigned char picture_size : 2; 88 unsigned char picture_size : 2;
90 unsigned char letterboxed : 1; 89 unsigned char letterboxed : 1;
91 unsigned char film_mode : 1; 90 unsigned char film_mode : 1;
92 #else
93 unsigned char permitted_df : 2;
94 unsigned char display_aspect_ratio : 2;
95 unsigned char video_format : 2;
96 unsigned char mpeg_version : 2;
97
98 unsigned char film_mode : 1;
99 unsigned char letterboxed : 1;
100 unsigned char picture_size : 2;
101
102 unsigned char bit_rate : 1;
103 unsigned char unknown1 : 1;
104 unsigned char line21_cc_2 : 1;
105 unsigned char line21_cc_1 : 1;
106 #endif
107 } ATTRIBUTE_PACKED video_attr_t; 91 } ATTRIBUTE_PACKED video_attr_t;
108 92
109 /** 93 /**
110 * Audio Attributes. 94 * Audio Attributes.
111 */ 95 */