Mercurial > libavcodec.hg
comparison h264.c @ 2926:dfdbef4bfdc5 libavcodec
no mixing of code and declarations
author | mru |
---|---|
date | Fri, 28 Oct 2005 18:18:04 +0000 |
parents | d98f385b3933 |
children | 16d67170715c |
comparison
equal
deleted
inserted
replaced
2925:89ce06bb1c87 | 2926:dfdbef4bfdc5 |
---|---|
6580 const int mbm_xy = dir == 0 ? mb_xy -1 : h->top_mb_xy; | 6580 const int mbm_xy = dir == 0 ? mb_xy -1 : h->top_mb_xy; |
6581 const int mb_type = s->current_picture.mb_type[mb_xy]; | 6581 const int mb_type = s->current_picture.mb_type[mb_xy]; |
6582 const int mbm_type = s->current_picture.mb_type[mbm_xy]; | 6582 const int mbm_type = s->current_picture.mb_type[mbm_xy]; |
6583 int start = h->slice_table[mbm_xy] == 255 ? 1 : 0; | 6583 int start = h->slice_table[mbm_xy] == 255 ? 1 : 0; |
6584 | 6584 |
6585 if (first_vertical_edge_done) { | |
6586 start = 1; | |
6587 first_vertical_edge_done = 0; | |
6588 } | |
6589 | |
6590 if (h->deblocking_filter==2 && h->slice_table[mbm_xy] != h->slice_table[mb_xy]) | |
6591 start = 1; | |
6592 | |
6593 const int edges = ((mb_type & mbm_type) & (MB_TYPE_16x16|MB_TYPE_SKIP)) | 6585 const int edges = ((mb_type & mbm_type) & (MB_TYPE_16x16|MB_TYPE_SKIP)) |
6594 == (MB_TYPE_16x16|MB_TYPE_SKIP) ? 1 : 4; | 6586 == (MB_TYPE_16x16|MB_TYPE_SKIP) ? 1 : 4; |
6595 // how often to recheck mv-based bS when iterating between edges | 6587 // how often to recheck mv-based bS when iterating between edges |
6596 const int mask_edge = (mb_type & (MB_TYPE_16x16 | (MB_TYPE_16x8 << dir))) ? 3 : | 6588 const int mask_edge = (mb_type & (MB_TYPE_16x16 | (MB_TYPE_16x8 << dir))) ? 3 : |
6597 (mb_type & (MB_TYPE_8x16 >> dir)) ? 1 : 0; | 6589 (mb_type & (MB_TYPE_8x16 >> dir)) ? 1 : 0; |
6598 // how often to recheck mv-based bS when iterating along each edge | 6590 // how often to recheck mv-based bS when iterating along each edge |
6599 const int mask_par0 = mb_type & (MB_TYPE_16x16 | (MB_TYPE_8x16 >> dir)); | 6591 const int mask_par0 = mb_type & (MB_TYPE_16x16 | (MB_TYPE_8x16 >> dir)); |
6592 | |
6593 if (first_vertical_edge_done) { | |
6594 start = 1; | |
6595 first_vertical_edge_done = 0; | |
6596 } | |
6597 | |
6598 if (h->deblocking_filter==2 && h->slice_table[mbm_xy] != h->slice_table[mb_xy]) | |
6599 start = 1; | |
6600 | 6600 |
6601 /* Calculate bS */ | 6601 /* Calculate bS */ |
6602 for( edge = start; edge < edges; edge++ ) { | 6602 for( edge = start; edge < edges; edge++ ) { |
6603 /* mbn_xy: neighbor macroblock */ | 6603 /* mbn_xy: neighbor macroblock */ |
6604 const int mbn_xy = edge > 0 ? mb_xy : mbm_xy; | 6604 const int mbn_xy = edge > 0 ? mb_xy : mbm_xy; |