Mercurial > libavcodec.hg
comparison h264.h @ 11307:eefbe8dadcd2 libavcodec
Merge h->slice_table[left_xy[0/1] ] checks, 4 cpu cycles speedup
author | michael |
---|---|
date | Sat, 27 Feb 2010 04:09:48 +0000 |
parents | c3d8a8eb1a45 |
children | e0428148bcf7 |
comparison
equal
deleted
inserted
replaced
11306:c3d8a8eb1a45 | 11307:eefbe8dadcd2 |
---|---|
819 h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ; | 819 h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ; |
820 | 820 |
821 if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0; | 821 if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0; |
822 if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0; | 822 if(h->slice_table[top_xy ] != h->slice_num) h->top_type = 0; |
823 if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0; | 823 if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0; |
824 if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = 0; | 824 if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0; |
825 if(h->slice_table[left_xy[1] ] != h->slice_num) h->left_type[1] = 0; | |
826 } | 825 } |
827 | 826 |
828 static void fill_decode_caches(H264Context *h, int mb_type){ | 827 static void fill_decode_caches(H264Context *h, int mb_type){ |
829 MpegEncContext * const s = &h->s; | 828 MpegEncContext * const s = &h->s; |
830 int topleft_xy, top_xy, topright_xy, left_xy[2]; | 829 int topleft_xy, top_xy, topright_xy, left_xy[2]; |