Mercurial > libavcodec.hg
comparison h264.h @ 11354:2a9acfd46715 libavcodec
Optimize *_type init, 1.5 cpu cycles faster.
author | michael |
---|---|
date | Thu, 04 Mar 2010 01:03:15 +0000 |
parents | 33f8308382f5 |
children | 3f7b7e3695c0 |
comparison
equal
deleted
inserted
replaced
11353:1ea249b4c6e7 | 11354:2a9acfd46715 |
---|---|
822 h->top_type = s->current_picture.mb_type[top_xy] ; | 822 h->top_type = s->current_picture.mb_type[top_xy] ; |
823 h->topright_type= s->current_picture.mb_type[topright_xy]; | 823 h->topright_type= s->current_picture.mb_type[topright_xy]; |
824 h->left_type[0] = s->current_picture.mb_type[left_xy[0]] ; | 824 h->left_type[0] = s->current_picture.mb_type[left_xy[0]] ; |
825 h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ; | 825 h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ; |
826 | 826 |
827 if(FMO){ | |
827 if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0; | 828 if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0; |
828 if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0; | 829 if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0; |
830 if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0; | |
831 }else{ | |
832 if(h->slice_table[topleft_xy ] != h->slice_num){ | |
833 h->topleft_type = 0; | |
834 if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0; | |
835 if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0; | |
836 } | |
837 } | |
829 if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0; | 838 if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0; |
830 if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0; | |
831 } | 839 } |
832 | 840 |
833 static void fill_decode_caches(H264Context *h, int mb_type){ | 841 static void fill_decode_caches(H264Context *h, int mb_type){ |
834 MpegEncContext * const s = &h->s; | 842 MpegEncContext * const s = &h->s; |
835 int topleft_xy, top_xy, topright_xy, left_xy[2]; | 843 int topleft_xy, top_xy, topright_xy, left_xy[2]; |