Mercurial > libavcodec.hg
comparison h264.h @ 11191:5e583a785508 libavcodec
Move check for and call of predict_field_decoding_flag() from the mb code to
the row code. This function would only be needed on a MB basis for MBAFF+FMO
author | michael |
---|---|
date | Wed, 17 Feb 2010 02:14:02 +0000 |
parents | d1a855cb0a0c |
children | e1b4f03037d5 |
comparison
equal
deleted
inserted
replaced
11190:afc60af2d008 | 11191:5e583a785508 |
---|---|
1451 return !(*(uint64_t*)h->sub_mb_type & ((MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_8x8|MB_TYPE_DIRECT2)*0x0001000100010001ULL)); | 1451 return !(*(uint64_t*)h->sub_mb_type & ((MB_TYPE_16x8|MB_TYPE_8x16|MB_TYPE_8x8|MB_TYPE_DIRECT2)*0x0001000100010001ULL)); |
1452 } | 1452 } |
1453 | 1453 |
1454 static void predict_field_decoding_flag(H264Context *h){ | 1454 static void predict_field_decoding_flag(H264Context *h){ |
1455 MpegEncContext * const s = &h->s; | 1455 MpegEncContext * const s = &h->s; |
1456 const int mb_xy= h->mb_xy; | 1456 const int mb_xy= s->mb_x + s->mb_y*s->mb_stride; |
1457 int mb_type = (h->slice_table[mb_xy-1] == h->slice_num) | 1457 int mb_type = (h->slice_table[mb_xy-1] == h->slice_num) |
1458 ? s->current_picture.mb_type[mb_xy-1] | 1458 ? s->current_picture.mb_type[mb_xy-1] |
1459 : (h->slice_table[mb_xy-s->mb_stride] == h->slice_num) | 1459 : (h->slice_table[mb_xy-s->mb_stride] == h->slice_num) |
1460 ? s->current_picture.mb_type[mb_xy-s->mb_stride] | 1460 ? s->current_picture.mb_type[mb_xy-s->mb_stride] |
1461 : 0; | 1461 : 0; |