• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:mb_type

162 static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){
169 const int is_b8x8 = IS_8X8(*mb_type);
178 await_reference_mb_row(h, &h->ref_list[1][0], h->mb_y + !!IS_INTERLACED(*mb_type));
219 *mb_type &= mask;
226 *mb_type |= MB_TYPE_L0L1;
235 *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;
239 if (IS_INTERLACED(h->ref_list[1][0].mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL
240 if (!IS_INTERLACED(*mb_type)) { // AFR/FR -> AFL/FL
250 if(IS_INTERLACED(*mb_type)){ // AFL /FL -> AFR/FR
253 mb_type_col[0] = h->ref_list[1][0].mb_type[mb_xy];
254 mb_type_col[1] = h->ref_list[1][0].mb_type[mb_xy + h->mb_stride];
266 *mb_type |= MB_TYPE_16x8 |MB_TYPE_DIRECT2; /* B_16x8 */
268 *mb_type |= MB_TYPE_8x8;
273 mb_type_col[1] = h->ref_list[1][0].mb_type[mb_xy];
277 *mb_type |= MB_TYPE_16x16|MB_TYPE_DIRECT2; /* B_16x16 */
279 *mb_type |= MB_TYPE_DIRECT2 | (mb_type_col[0] & (MB_TYPE_16x8|MB_TYPE_8x16));
286 *mb_type |= MB_TYPE_8x8;
307 if(IS_INTERLACED(*mb_type) != IS_INTERLACED(mb_type_col[0])){
339 *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;
340 }else if(IS_16X16(*mb_type)){
409 *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;
413 static void pred_temp_direct_motion(H264Context * const h, int *mb_type){
420 const int is_b8x8 = IS_8X8(*mb_type);
426 await_reference_mb_row(h, &h->ref_list[1][0], h->mb_y + !!IS_INTERLACED(*mb_type));
428 if (IS_INTERLACED(h->ref_list[1][0].mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL
429 if (!IS_INTERLACED(*mb_type)) { // AFR/FR -> AFL/FL
439 if(IS_INTERLACED(*mb_type)){ // AFL /FL -> AFR/FR
442 mb_type_col[0] = h->ref_list[1][0].mb_type[mb_xy];
443 mb_type_col[1] = h->ref_list[1][0].mb_type[mb_xy + h->mb_stride];
456 *mb_type |= MB_TYPE_16x8 |MB_TYPE_L0L1|MB_TYPE_DIRECT2; /* B_16x8 */
458 *mb_type |= MB_TYPE_8x8|MB_TYPE_L0L1;
463 mb_type_col[1] = h->ref_list[1][0].mb_type[mb_xy];
467 *mb_type |= MB_TYPE_16x16|MB_TYPE_P0L0|MB_TYPE_P0L1|MB_TYPE_DIRECT2; /* B_16x16 */
469 *mb_type |= MB_TYPE_L0L1|MB_TYPE_DIRECT2 | (mb_type_col[0] & (MB_TYPE_16x8|MB_TYPE_8x16));
476 *mb_type |= MB_TYPE_8x8|MB_TYPE_L0L1;
501 if (FRAME_MBAFF(h) && IS_INTERLACED(*mb_type)) {
508 if(IS_INTERLACED(*mb_type) != IS_INTERLACED(mb_type_col[0])){
509 int y_shift = 2*!IS_INTERLACED(*mb_type);
554 if(IS_16X16(*mb_type)){
624 void ff_h264_pred_direct_motion(H264Context * const h, int *mb_type){
626 pred_spatial_direct_motion(h, mb_type);
628 pred_temp_direct_motion(h, mb_type);