[cvs] / xvidcore / src / utils / mbtransquant.c Repository:
ViewVC logotype

Diff of /xvidcore/src/utils/mbtransquant.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21.2.14, Mon Jun 9 13:55:36 2003 UTC revision 1.21.2.15, Thu Jul 24 13:09:14 2003 UTC
# Line 201  Line 201 
201                          sum = quant_inter(&qcoeff[i*64], &data[i*64], pMB->quant);                          sum = quant_inter(&qcoeff[i*64], &data[i*64], pMB->quant);
202                          if ( (sum) && (frame->vop_flags & XVID_VOP_TRELLISQUANT) ) {                          if ( (sum) && (frame->vop_flags & XVID_VOP_TRELLISQUANT) ) {
203                                  sum = dct_quantize_trellis_h263_c(&qcoeff[i*64], &data[i*64], pMB->quant, &scan_tables[0][0], 63)+1;                                  sum = dct_quantize_trellis_h263_c(&qcoeff[i*64], &data[i*64], pMB->quant, &scan_tables[0][0], 63)+1;
204                                  limit = 1;  /*                              limit = 1; // Isibaar: why? deactivated so far - so please complain! ;-) */
205                          }                          }
206                  } else {                  } else {
207                          sum = quant4_inter(&qcoeff[i * 64], &data[i * 64], pMB->quant);                          sum = quant4_inter(&qcoeff[i * 64], &data[i * 64], pMB->quant);
# Line 441  Line 441 
441          /* Set the limit threshold */          /* Set the limit threshold */
442          limit = PVOP_TOOSMALL_LIMIT + ((pMB->quant == 1)? 1 : 0);          limit = PVOP_TOOSMALL_LIMIT + ((pMB->quant == 1)? 1 : 0);
443    
444            if (frame->vop_flags & XVID_VOP_CARTOON)
445                    limit *= 3;
446    
447          /* Quantize the block */          /* Quantize the block */
448          cbp = MBQuantInter(pParam, frame, pMB, data, qcoeff, 0, limit);          cbp = MBQuantInter(pParam, frame, pMB, data, qcoeff, 0, limit);
449    
# Line 479  Line 482 
482          /* Set the limit threshold */          /* Set the limit threshold */
483          limit = BVOP_TOOSMALL_LIMIT;          limit = BVOP_TOOSMALL_LIMIT;
484    
485            if (frame->vop_flags & XVID_VOP_CARTOON)
486                    limit *= 2;
487    
488          /* Quantize the block */          /* Quantize the block */
489          cbp = MBQuantInter(pParam, frame, pMB, data, qcoeff, 1, limit);          cbp = MBQuantInter(pParam, frame, pMB, data, qcoeff, 1, limit);
490    

Legend:
Removed from v.1.21.2.14  
changed lines
  Added in v.1.21.2.15

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4