• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:mb_type

160 static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){
168 const int is_b8x8 = IS_8X8(*mb_type);
177 await_reference_mb_row(h, &h->ref_list[1][0], s->mb_y + !!IS_INTERLACED(*mb_type));
217 *mb_type &= mask;
224 *mb_type |= MB_TYPE_L0L1;
233 *mb_type= (*mb_type & ~(MB_TYPE_8x8|MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_P1L0|MB_TYPE_P1L1))|MB_TYPE_16x16|MB_TYPE_DIRECT2;
237 if (IS_INTERLACED(h->ref_list[1][0].f.mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL
238 if (!IS_INTERLACED(*mb_type)) { // AFR/FR -> AFL/FL
248 if(IS_INTERLACED(*mb_type)){ // AFL /FL -> AFR/FR
251 mb_type_col[0] = h->ref_list[1][0].f.mb_type[mb_xy];
252 mb_type_col[1] = h->ref_list[1][0].f.mb_type[mb_xy + s->mb_stride];
264 *mb_type |= MB_TYPE_16x8 |MB_TYPE_DIRECT2; /* B_16x8 */
266 *mb_type |= MB_TYPE_8x8;
271 mb_type_col[1] = h->ref_list[1][0].f.mb_type[mb_xy];
275 *mb_type |= MB_TYPE_16x16|MB_TYPE_DIRECT2; /* B_16x16 */
277 *mb_type |= MB_TYPE_DIRECT2 | (mb_type_col[0] & (MB_TYPE_16x8|MB_TYPE_8x16));
284 *mb_type |= MB_TYPE_8x8;
305 if(IS_INTERLACED(*mb_type) != IS_INTERLACED(mb_type_col[0])){
337 *mb_type= (*mb_type & ~(MB_TYPE_8x8|MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_P1L0|MB_TYPE_P1L1))|MB_TYPE_16x16|MB_TYPE_DIRECT2;
338 }else if(IS_16X16(*mb_type)){
407 *mb_type= (*mb_type & ~(MB_TYPE_8x8|MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_P1L0|MB_TYPE_P1L1))|MB_TYPE_16x16|MB_TYPE_DIRECT2;
411 static void pred_temp_direct_motion(H264Context * const h, int *mb_type){
419 const int is_b8x8 = IS_8X8(*mb_type);
425 await_reference_mb_row(h, &h->ref_list[1][0], s->mb_y + !!IS_INTERLACED(*mb_type));
427 if (IS_INTERLACED(h->ref_list[1][0].f.mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL
428 if (!IS_INTERLACED(*mb_type)) { // AFR/FR -> AFL/FL
438 if(IS_INTERLACED(*mb_type)){ // AFL /FL -> AFR/FR
441 mb_type_col[0] = h->ref_list[1][0].f.mb_type[mb_xy];
442 mb_type_col[1] = h->ref_list[1][0].f.mb_type[mb_xy + s->mb_stride];
455 *mb_type |= MB_TYPE_16x8 |MB_TYPE_L0L1|MB_TYPE_DIRECT2; /* B_16x8 */
457 *mb_type |= MB_TYPE_8x8|MB_TYPE_L0L1;
462 mb_type_col[1] = h->ref_list[1][0].f.mb_type[mb_xy];
466 *mb_type |= MB_TYPE_16x16|MB_TYPE_P0L0|MB_TYPE_P0L1|MB_TYPE_DIRECT2; /* B_16x16 */
468 *mb_type |= MB_TYPE_L0L1|MB_TYPE_DIRECT2 | (mb_type_col[0] & (MB_TYPE_16x8|MB_TYPE_8x16));
475 *mb_type |= MB_TYPE_8x8|MB_TYPE_L0L1;
500 if(FRAME_MBAFF && IS_INTERLACED(*mb_type)){
507 if(IS_INTERLACED(*mb_type) != IS_INTERLACED(mb_type_col[0])){
508 int y_shift = 2*!IS_INTERLACED(*mb_type);
553 if(IS_16X16(*mb_type)){
623 void ff_h264_pred_direct_motion(H264Context * const h, int *mb_type){
625 pred_spatial_direct_motion(h, mb_type);
627 pred_temp_direct_motion(h, mb_type);