comparison dsputil.c @ 8976:e7d87561b42b libavcodec

Making the arrays accomodate an extra intra 8x8 cmp function
author romansh
date Thu, 19 Feb 2009 00:28:08 +0000
parents bee83b3f9a6b
children a49197cd37ce
comparison
equal deleted inserted replaced
8975:51d9a28db992 8976:e7d87561b42b
3423 } 3423 }
3424 3424
3425 void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){ 3425 void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){
3426 int i; 3426 int i;
3427 3427
3428 memset(cmp, 0, sizeof(void*)*5); 3428 memset(cmp, 0, sizeof(void*)*6);
3429 3429
3430 for(i=0; i<5; i++){ 3430 for(i=0; i<6; i++){
3431 switch(type&0xFF){ 3431 switch(type&0xFF){
3432 case FF_CMP_SAD: 3432 case FF_CMP_SAD:
3433 cmp[i]= c->sad[i]; 3433 cmp[i]= c->sad[i];
3434 break; 3434 break;
3435 case FF_CMP_SATD: 3435 case FF_CMP_SATD: