Mercurial > libavcodec.hg
comparison cavs.h @ 5241:74b6423a5a0d libavcodec
setting special motion vectors in intra macroblocks
is now in its own inline function
author | stefang |
---|---|
date | Sat, 07 Jul 2007 06:34:30 +0000 |
parents | 1701ce572fed |
children | deb5b8213d4e |
comparison
equal
deleted
inserted
replaced
5240:1701ce572fed | 5241:74b6423a5a0d |
---|---|
226 | 226 |
227 extern const int_fast8_t ff_left_modifier_l[8]; | 227 extern const int_fast8_t ff_left_modifier_l[8]; |
228 extern const int_fast8_t ff_top_modifier_l[8]; | 228 extern const int_fast8_t ff_top_modifier_l[8]; |
229 extern const int_fast8_t ff_left_modifier_c[7]; | 229 extern const int_fast8_t ff_left_modifier_c[7]; |
230 extern const int_fast8_t ff_top_modifier_c[7]; | 230 extern const int_fast8_t ff_top_modifier_c[7]; |
231 extern const vector_t ff_cavs_intra_mv; | |
231 extern const vector_t ff_cavs_un_mv; | 232 extern const vector_t ff_cavs_un_mv; |
232 | 233 |
233 static inline void load_intra_pred_luma(AVSContext *h, uint8_t *top, | 234 static inline void load_intra_pred_luma(AVSContext *h, uint8_t *top, |
234 uint8_t **left, int block) { | 235 uint8_t **left, int block) { |
235 int i; | 236 int i; |
341 case BLK_8X16: | 342 case BLK_8X16: |
342 mv[MV_STRIDE] = mv[0]; | 343 mv[MV_STRIDE] = mv[0]; |
343 break; | 344 break; |
344 } | 345 } |
345 } | 346 } |
347 | |
348 static inline void set_mv_intra(AVSContext *h) { | |
349 h->mv[MV_FWD_X0] = ff_cavs_intra_mv; | |
350 set_mvs(&h->mv[MV_FWD_X0], BLK_16X16); | |
351 h->mv[MV_BWD_X0] = ff_cavs_intra_mv; | |
352 set_mvs(&h->mv[MV_BWD_X0], BLK_16X16); | |
353 if(h->pic_type != FF_B_TYPE) | |
354 *h->col_type = I_8X8; | |
355 } | |
356 | |
346 | 357 |
347 /** | 358 /** |
348 * initialise predictors for motion vectors and intra prediction | 359 * initialise predictors for motion vectors and intra prediction |
349 */ | 360 */ |
350 static inline void init_mb(AVSContext *h) { | 361 static inline void init_mb(AVSContext *h) { |