Mercurial > libavcodec.hg
comparison dsputil.c @ 945:463f7260b155 libavcodec
trellis quantization
author | michaelni |
---|---|
date | Tue, 31 Dec 2002 17:23:56 +0000 |
parents | caa77cd960c0 |
children | 13aec7e50c52 |
comparison
equal
deleted
inserted
replaced
944:927c246f1f6d | 945:463f7260b155 |
---|---|
1465 | 1465 |
1466 static int sad8x8_c(void *s, uint8_t *a, uint8_t *b, int stride){ | 1466 static int sad8x8_c(void *s, uint8_t *a, uint8_t *b, int stride){ |
1467 return pix_abs8x8_c(a,b,stride); | 1467 return pix_abs8x8_c(a,b,stride); |
1468 } | 1468 } |
1469 | 1469 |
1470 void ff_block_permute(INT16 *block, UINT8 *permutation, const UINT8 *scantable, int last) | 1470 void ff_block_permute(DCTELEM *block, UINT8 *permutation, const UINT8 *scantable, int last) |
1471 { | 1471 { |
1472 int i; | 1472 int i; |
1473 INT16 temp[64]; | 1473 DCTELEM temp[64]; |
1474 | 1474 |
1475 if(last<=0) return; | 1475 if(last<=0) return; |
1476 //if(permutation[1]==1) return; //FIXME its ok but not clean and might fail for some perms | 1476 //if(permutation[1]==1) return; //FIXME its ok but not clean and might fail for some perms |
1477 | 1477 |
1478 for(i=0; i<=last; i++){ | 1478 for(i=0; i<=last; i++){ |