Mercurial > libavcodec.hg
comparison mpeg12.c @ 5430:d248295bd595 libavcodec
avoid 2 additions (1 cpu cycle) per MB
author | michael |
---|---|
date | Tue, 31 Jul 2007 20:52:49 +0000 |
parents | 4e7308c09d2e |
children | 192360fa9b06 |
comparison
equal
deleted
inserted
replaced
5429:4e7308c09d2e | 5430:d248295bd595 |
---|---|
1774 xy += wrap; | 1774 xy += wrap; |
1775 } | 1775 } |
1776 } | 1776 } |
1777 | 1777 |
1778 s->dest[0] += 16 >> lowres; | 1778 s->dest[0] += 16 >> lowres; |
1779 s->dest[1] += 16 >> (s->chroma_x_shift + lowres); | 1779 s->dest[1] +=(16 >> lowres) >> s->chroma_x_shift; |
1780 s->dest[2] += 16 >> (s->chroma_x_shift + lowres); | 1780 s->dest[2] +=(16 >> lowres) >> s->chroma_x_shift; |
1781 | 1781 |
1782 MPV_decode_mb(s, s->block); | 1782 MPV_decode_mb(s, s->block); |
1783 | 1783 |
1784 if (++s->mb_x >= s->mb_width) { | 1784 if (++s->mb_x >= s->mb_width) { |
1785 const int mb_size= 16>>s->avctx->lowres; | 1785 const int mb_size= 16>>s->avctx->lowres; |