Revision 31f6e3c1

View differences:

libavcodec/h264_loopfilter.c
434 434
    const int edges = (mb_type & (MB_TYPE_16x16|MB_TYPE_SKIP))
435 435
                              == (MB_TYPE_16x16|MB_TYPE_SKIP) ? 1 : 4;
436 436
    // how often to recheck mv-based bS when iterating between edges
437
    const int mask_edge = (mb_type & (MB_TYPE_16x16 | (MB_TYPE_16x8 << dir))) ? 3 :
438
                          (mb_type & (MB_TYPE_8x16 >> dir)) ? 1 : 0;
437
    static const uint8_t mask_edge_tab[2][8]={{0,3,3,3,1,1,1,1},
438
                                              {0,3,1,1,3,3,3,3}};
439
    const int mask_edge = mask_edge_tab[dir][(mb_type>>3)&7];
439 440
    // how often to recheck mv-based bS when iterating along each edge
440 441
    const int mask_par0 = mb_type & (MB_TYPE_16x16 | (MB_TYPE_8x16 >> dir));
441 442
    int start =   h->slice_table[mbm_xy] == 0xFFFF

Also available in: Unified diff