Mercurial > mplayer.hg
comparison libmpcodecs/vf_spp.c @ 30412:41fb4acf3df6
Support more qscale types in most post-processing filters.
author | reimar |
---|---|
date | Fri, 29 Jan 2010 19:13:07 +0000 |
parents | 915be5c7a30c |
children | a7b908875c14 |
comparison
equal
deleted
inserted
replaced
30411:bf19c3502f1b | 30412:41fb4acf3df6 |
---|---|
404 | 404 |
405 if(p->qp) | 405 if(p->qp) |
406 qp= p->qp; | 406 qp= p->qp; |
407 else{ | 407 else{ |
408 qp= qp_store[ (XMIN(x, width-1)>>qps) + (XMIN(y, height-1)>>qps) * qp_stride]; | 408 qp= qp_store[ (XMIN(x, width-1)>>qps) + (XMIN(y, height-1)>>qps) * qp_stride]; |
409 if(p->mpeg2) qp = FFMAX(1, qp>>1); | 409 qp = FFMAX(1, norm_qscale(qp, p->mpeg2)); |
410 } | 410 } |
411 for(i=0; i<count; i++){ | 411 for(i=0; i<count; i++){ |
412 const int x1= x + offset[i+count-1][0]; | 412 const int x1= x + offset[i+count-1][0]; |
413 const int y1= y + offset[i+count-1][1]; | 413 const int y1= y + offset[i+count-1][1]; |
414 const int index= x1 + y1*stride; | 414 const int index= x1 + y1*stride; |