comparison h264.c @ 2110:96b05a70a154 libavcodec

1000l
author michael
date Wed, 30 Jun 2004 22:39:01 +0000
parents acc845e25a68
children 48d9f86fb047
comparison
equal deleted inserted replaced
2109:84637c6ca74e 2110:96b05a70a154
4477 else 4477 else
4478 ref[list][i] = 0; 4478 ref[list][i] = 0;
4479 } else { 4479 } else {
4480 ref[list][i] = -1; 4480 ref[list][i] = -1;
4481 } 4481 }
4482 h->ref_cache[list][ scan8[4*i] ]=h->ref_cache[list][ scan8[4*i]+1 ]= 4482 h->ref_cache[list][ scan8[4*i]+1 ]=
4483 h->ref_cache[list][ scan8[4*i]+8 ]=h->ref_cache[list][ scan8[4*i]+9 ]= ref[list][i]; 4483 h->ref_cache[list][ scan8[4*i]+8 ]=h->ref_cache[list][ scan8[4*i]+9 ]= ref[list][i];
4484 } 4484 }
4485 } 4485 }
4486 } 4486 }
4487 4487
4488 for(list=0; list<2; list++){ 4488 for(list=0; list<2; list++){
4489
4490 for(i=0; i<4; i++){ 4489 for(i=0; i<4; i++){
4491 //h->ref_cache[list][ scan8[4*i] ]=h->ref_cache[list][ scan8[4*i]+1 ]= 4490 h->ref_cache[list][ scan8[4*i] ]=h->ref_cache[list][ scan8[4*i]+1 ];
4492 //h->ref_cache[list][ scan8[4*i]+8 ]=h->ref_cache[list][ scan8[4*i]+9 ]= ref[list][i];
4493 4491
4494 if(IS_DIR(h->sub_mb_type[i], 0, list) && !IS_DIRECT(h->sub_mb_type[i])){ 4492 if(IS_DIR(h->sub_mb_type[i], 0, list) && !IS_DIRECT(h->sub_mb_type[i])){
4495 const int sub_mb_type= h->sub_mb_type[i]; 4493 const int sub_mb_type= h->sub_mb_type[i];
4496 const int block_width= (sub_mb_type & (MB_TYPE_16x16|MB_TYPE_16x8)) ? 2 : 1; 4494 const int block_width= (sub_mb_type & (MB_TYPE_16x16|MB_TYPE_16x8)) ? 2 : 1;
4497 for(j=0; j<sub_partition_count[i]; j++){ 4495 for(j=0; j<sub_partition_count[i]; j++){