[svn] / trunk / xvidcore / src / global.h Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/global.h

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

revision 677, Tue Nov 26 23:44:11 2002 UTC revision 723, Sun Dec 15 01:21:12 2002 UTC
# Line 50  Line 50 
50   *  exception also makes it possible to release a modified version which   *  exception also makes it possible to release a modified version which
51   *  carries forward this exception.   *  carries forward this exception.
52   *   *
53   * $Id: global.h,v 1.17 2002-11-26 23:44:10 edgomez Exp $   * $Id: global.h,v 1.18 2002-12-15 01:21:12 edgomez Exp $
54   *   *
55   ****************************************************************************/   ****************************************************************************/
56    
# Line 155  Line 155 
155                  return 8;                  return 8;
156    
157          if (quant < 25 && !lum)          if (quant < 25 && !lum)
158                  return (quant + 13) / 2;                  return (int8_t)((quant + 13) / 2);
159    
160          if (quant < 9)          if (quant < 9)
161                  return 2 * quant;                  return (int8_t)(2 * quant);
162    
163          if (quant < 25)          if (quant < 25)
164                  return quant + 8;                  return (int8_t)(quant + 8);
165    
166          if (lum)          if (lum)
167                  return 2 * quant - 16;                  return (int8_t)(2 * quant - 16);
168          else          else
169                  return quant - 6;                  return (int8_t)(quant - 6);
170  }  }
171    
172  /* useful macros */  /* useful macros */

Legend:
Removed from v.677  
changed lines
  Added in v.723

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