mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
Optimize *_type init, 1.5 cpu cycles faster.
Originally committed as revision 22192 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
91cfeac668
commit
b46b5ac9f8
@ -824,10 +824,18 @@ static void fill_decode_neighbors(H264Context *h, int mb_type){
|
||||
h->left_type[0] = s->current_picture.mb_type[left_xy[0]] ;
|
||||
h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ;
|
||||
|
||||
if(FMO){
|
||||
if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0;
|
||||
if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0;
|
||||
if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0;
|
||||
if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0;
|
||||
}else{
|
||||
if(h->slice_table[topleft_xy ] != h->slice_num){
|
||||
h->topleft_type = 0;
|
||||
if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0;
|
||||
if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0;
|
||||
}
|
||||
}
|
||||
if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0;
|
||||
}
|
||||
|
||||
static void fill_decode_caches(H264Context *h, int mb_type){
|
||||
|
Loading…
Reference in New Issue
Block a user