comparison vp3.c @ 2706:a23c44f7ed60 libavcodec

reduce size of Vp3Fragment from 32byte to 16byte
author michael
date Wed, 18 May 2005 09:07:26 +0000
parents 2f9f51297218
children a119d4eb53d7
comparison
equal deleted inserted replaced
2705:2f9f51297218 2706:a23c44f7ed60
134 static inline void debug_idct(const char *format, ...) { } 134 static inline void debug_idct(const char *format, ...) { }
135 #endif 135 #endif
136 136
137 typedef struct Vp3Fragment { 137 typedef struct Vp3Fragment {
138 DCTELEM *coeffs; 138 DCTELEM *coeffs;
139 int coding_method;
140 int coeff_count;
141 int last_coeff;
142 int motion_x;
143 int motion_y;
144 /* address of first pixel taking into account which plane the fragment 139 /* address of first pixel taking into account which plane the fragment
145 * lives on as well as the plane stride */ 140 * lives on as well as the plane stride */
146 int first_pixel; 141 int first_pixel;
147 /* this is the macroblock that the fragment belongs to */ 142 /* this is the macroblock that the fragment belongs to */
148 int macroblock; 143 uint16_t macroblock;
144 uint8_t coding_method;
145 uint8_t coeff_count;
146 int8_t last_coeff;
147 int8_t motion_x;
148 int8_t motion_y;
149 } Vp3Fragment; 149 } Vp3Fragment;
150 150
151 #define SB_NOT_CODED 0 151 #define SB_NOT_CODED 0
152 #define SB_PARTIALLY_CODED 1 152 #define SB_PARTIALLY_CODED 1
153 #define SB_FULLY_CODED 2 153 #define SB_FULLY_CODED 2