| 2507 | } |
| 2508 | |
| 2509 | static void predict_field_decoding_flag(const H264Context *h, H264SliceContext *sl) |
| 2510 | { |
| 2511 | const int mb_xy = sl->mb_x + sl->mb_y * h->mb_stride; |
| 2512 | int mb_type = (h->slice_table[mb_xy - 1] == sl->slice_num) ? |
| 2513 | h->cur_pic.mb_type[mb_xy - 1] : |
| 2514 | (h->slice_table[mb_xy - h->mb_stride] == sl->slice_num) ? |
| 2515 | h->cur_pic.mb_type[mb_xy - h->mb_stride] : 0; |
| 2516 | sl->mb_mbaff = sl->mb_field_decoding_flag = IS_INTERLACED(mb_type) ? 1 : 0; |
| 2517 | } |
| 2518 | |
| 2519 | /** |
| 2520 | * Draw edges and report progress for the last MB row. |