Mercurial > libavcodec.hg
changeset 10927:bb774f0bc2b6 libavcodec
Optimize top non_zero_count_cache init.
author | michael |
---|---|
date | Mon, 18 Jan 2010 23:31:14 +0000 |
parents | 42cff5346e53 |
children | 03d778b06643 |
files | h264.h |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.h Mon Jan 18 23:30:21 2010 +0000 +++ b/h264.h Mon Jan 18 23:31:14 2010 +0000 @@ -970,16 +970,13 @@ if(for_deblock){ *(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0; }else{ - h->non_zero_count_cache[4+8*0]= - h->non_zero_count_cache[5+8*0]= - h->non_zero_count_cache[6+8*0]= - h->non_zero_count_cache[7+8*0]= h->non_zero_count_cache[1+8*0]= h->non_zero_count_cache[2+8*0]= h->non_zero_count_cache[1+8*3]= - h->non_zero_count_cache[2+8*3]= CABAC && !IS_INTRA(mb_type) ? 0 : 64; + h->non_zero_count_cache[2+8*3]= + *(uint32_t*)&h->non_zero_count_cache[4+8*0]= CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040; } }