Mercurial > libavcodec.hg
comparison vp3.c @ 7875:a57aee2e0ae0 libavcodec
Take idct permutation into account when initializing dequantization matrices
author | conrad |
---|---|
date | Wed, 17 Sep 2008 19:29:40 +0000 |
parents | 5b54bcbae698 |
children | 66226ee647a4 |
comparison
equal
deleted
inserted
replaced
7874:29010c2697da | 7875:a57aee2e0ae0 |
---|---|
625 / (2*s->qr_size[inter][plane][qri]); | 625 / (2*s->qr_size[inter][plane][qri]); |
626 | 626 |
627 int qmin= 8<<(inter + !i); | 627 int qmin= 8<<(inter + !i); |
628 int qscale= i ? ac_scale_factor : dc_scale_factor; | 628 int qscale= i ? ac_scale_factor : dc_scale_factor; |
629 | 629 |
630 s->qmat[inter][plane][i]= av_clip((qscale * coeff)/100 * 4, qmin, 4096); | 630 s->qmat[inter][plane][s->dsp.idct_permutation[i]]= av_clip((qscale * coeff)/100 * 4, qmin, 4096); |
631 } | 631 } |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 memset(s->qscale_table, (FFMAX(s->qmat[0][0][1], s->qmat[0][1][1])+8)/16, 512); //FIXME finetune | 635 memset(s->qscale_table, (FFMAX(s->qmat[0][0][1], s->qmat[0][1][1])+8)/16, 512); //FIXME finetune |