Mercurial > libavcodec.hg
comparison mpegvideo.h @ 1162:8c15d82c1893 libavcodec
some static -> dynamic alloc & 16->8 bit
author | michaelni |
---|---|
date | Mon, 31 Mar 2003 11:13:14 +0000 |
parents | 9a5c29575902 |
children | 0e3c0c4a7b3d |
comparison
equal
deleted
inserted
replaced
1161:556b5d0b5228 | 1162:8c15d82c1893 |
---|---|
162 int penalty_factor; | 162 int penalty_factor; |
163 int sub_penalty_factor; | 163 int sub_penalty_factor; |
164 int mb_penalty_factor; | 164 int mb_penalty_factor; |
165 int pre_pass; ///< = 1 for the pre pass | 165 int pre_pass; ///< = 1 for the pre pass |
166 int dia_size; | 166 int dia_size; |
167 uint16_t (*mv_penalty)[MAX_MV*2+1]; ///< amount of bits needed to encode a MV | 167 uint8_t (*mv_penalty)[MAX_MV*2+1]; ///< amount of bits needed to encode a MV |
168 int (*sub_motion_search)(struct MpegEncContext * s, | 168 int (*sub_motion_search)(struct MpegEncContext * s, |
169 int *mx_ptr, int *my_ptr, int dmin, | 169 int *mx_ptr, int *my_ptr, int dmin, |
170 int xmin, int ymin, int xmax, int ymax, | 170 int xmin, int ymin, int xmax, int ymax, |
171 int pred_x, int pred_y, Picture *ref_picture, | 171 int pred_x, int pred_y, Picture *ref_picture, |
172 int n, int size, uint16_t * const mv_penalty); | 172 int n, int size, uint8_t * const mv_penalty); |
173 int (*motion_search[7])(struct MpegEncContext * s, int block, | 173 int (*motion_search[7])(struct MpegEncContext * s, int block, |
174 int *mx_ptr, int *my_ptr, | 174 int *mx_ptr, int *my_ptr, |
175 int P[10][2], int pred_x, int pred_y, | 175 int P[10][2], int pred_x, int pred_y, |
176 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, int16_t (*last_mv)[2], | 176 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, int16_t (*last_mv)[2], |
177 int ref_mv_scale, uint16_t * const mv_penalty); | 177 int ref_mv_scale, uint8_t * const mv_penalty); |
178 int (*pre_motion_search)(struct MpegEncContext * s, int block, | 178 int (*pre_motion_search)(struct MpegEncContext * s, int block, |
179 int *mx_ptr, int *my_ptr, | 179 int *mx_ptr, int *my_ptr, |
180 int P[10][2], int pred_x, int pred_y, | 180 int P[10][2], int pred_x, int pred_y, |
181 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, int16_t (*last_mv)[2], | 181 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, int16_t (*last_mv)[2], |
182 int ref_mv_scale, uint16_t * const mv_penalty); | 182 int ref_mv_scale, uint8_t * const mv_penalty); |
183 int (*get_mb_score)(struct MpegEncContext * s, int mx, int my, int pred_x, int pred_y, Picture *ref_picture, | 183 int (*get_mb_score)(struct MpegEncContext * s, int mx, int my, int pred_x, int pred_y, Picture *ref_picture, |
184 uint16_t * const mv_penalty); | 184 uint8_t * const mv_penalty); |
185 }MotionEstContext; | 185 }MotionEstContext; |
186 | 186 |
187 /** | 187 /** |
188 * MpegEncContext. | 188 * MpegEncContext. |
189 */ | 189 */ |