Mercurial > libavcodec.hg
comparison h264.h @ 11284:aaca4b58880f libavcodec
unroll tiny and trivial loop. Same speed but clearer.
author | michael |
---|---|
date | Thu, 25 Feb 2010 12:51:32 +0000 |
parents | 853e93a50fe5 |
children | 613370892df2 |
comparison
equal
deleted
inserted
replaced
11283:853e93a50fe5 | 11284:aaca4b58880f |
---|---|
1428 uint8_t (*mvd_src)[2] = &h->mvd_cache[list][scan8[0]]; | 1428 uint8_t (*mvd_src)[2] = &h->mvd_cache[list][scan8[0]]; |
1429 if(IS_SKIP(mb_type)) | 1429 if(IS_SKIP(mb_type)) |
1430 AV_ZERO128(mvd_dst); | 1430 AV_ZERO128(mvd_dst); |
1431 else{ | 1431 else{ |
1432 AV_COPY64(mvd_dst, mvd_src + 8*3); | 1432 AV_COPY64(mvd_dst, mvd_src + 8*3); |
1433 for(y=0; y<3; y++){ | 1433 AV_COPY16(mvd_dst + 3 + 3, mvd_src + 3 + 8*0); |
1434 AV_COPY16(mvd_dst + 3 + 3 - y, mvd_src + 3 + 8*y); | 1434 AV_COPY16(mvd_dst + 3 + 2, mvd_src + 3 + 8*1); |
1435 } | 1435 AV_COPY16(mvd_dst + 3 + 1, mvd_src + 3 + 8*2); |
1436 } | 1436 } |
1437 } | 1437 } |
1438 | 1438 |
1439 { | 1439 { |
1440 int8_t *ref_index = &s->current_picture.ref_index[list][b8_xy]; | 1440 int8_t *ref_index = &s->current_picture.ref_index[list][b8_xy]; |