[svn] / trunk / xvidcore / src / quant / quant_mpeg.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/quant/quant_mpeg.c

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

revision 1794, Fri Nov 14 15:43:28 2008 UTC revision 1795, Wed Nov 26 01:04:34 2008 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: quant_mpeg.c,v 1.3 2006-07-10 08:09:59 syskin Exp $   * $Id: quant_mpeg.c,v 1.4 2008-11-26 01:04:34 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 81  Line 81 
81          coeff[0] = DIV_DIV(data[0], (int32_t) dcscalar);          coeff[0] = DIV_DIV(data[0], (int32_t) dcscalar);
82    
83          for (i = 1; i < 64; i++) {          for (i = 1; i < 64; i++) {
84                  int level = data[i];                  int32_t level = data[i];
85                  level *= intra_matrix_rec[i];                  level *= intra_matrix_rec[i];
86                  level = (level + rounding)>>(SCALEBITS-3);                  level = (level + rounding)>>(SCALEBITS-3);
87                  coeff[i] = level;                  coeff[i] = level;

Legend:
Removed from v.1794  
changed lines
  Added in v.1795

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