[svn] / branches / release-1_3-branch / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/examples/xvid_encraw.c

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

revision 1928, Tue Dec 28 19:19:57 2010 UTC revision 1932, Thu Dec 30 11:47:06 2010 UTC
# Line 22  Line 22 
22   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
23   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
24   *   *
25   * $Id: xvid_encraw.c,v 1.46.2.1 2010-12-28 19:19:57 Isibaar Exp $   * $Id: xvid_encraw.c,v 1.46.2.2 2010-12-30 11:47:06 Isibaar Exp $
26   *   *
27   ****************************************************************************/   ****************************************************************************/
28    
# Line 485  Line 485 
485                                  memset(&ZONES[NUM_ZONES], 0, sizeof(zone_t));                                  memset(&ZONES[NUM_ZONES], 0, sizeof(zone_t));
486    
487                                  ZONES[NUM_ZONES].frame = startframe;                                  ZONES[NUM_ZONES].frame = startframe;
488                                  ZONES[NUM_ZONES].modifier = (int)atof(options)*100;                                  ZONES[NUM_ZONES].modifier = (int)(atof(options)*100);
489                                  if (toupper(c)=='Q')                                  if (toupper(c)=='Q')
490                                          ZONES[NUM_ZONES].mode = XVID_ZONE_QUANT;                                          ZONES[NUM_ZONES].mode = XVID_ZONE_QUANT;
491                                  else if (toupper(c)=='W')                                  else if (toupper(c)=='W')
# Line 536  Line 536 
536                          else {                          else {
537                                  ZONES[NUM_ZONES].mode = XVID_ZONE_WEIGHT;                                  ZONES[NUM_ZONES].mode = XVID_ZONE_WEIGHT;
538                          }                          }
539                          ZONES[NUM_ZONES].modifier = (int)atof(argv[i+2])*100;                          ZONES[NUM_ZONES].modifier = (int)(atof(argv[i+2])*100);
540                          i++;                          i++;
541              ZONES[NUM_ZONES].frame = atoi(argv[i]);              ZONES[NUM_ZONES].frame = atoi(argv[i]);
542                          i++;                          i++;
# Line 568  Line 568 
568                                  exponent=(int)pow(10.0, (int)(strlen(argv[i])-1-exponent));                                  exponent=(int)pow(10.0, (int)(strlen(argv[i])-1-exponent));
569                          else                          else
570                                  exponent=1;                                  exponent=1;
571                          ARG_DWRATE = (int)atof(argv[i])*exponent;                          ARG_DWRATE = (int)(atof(argv[i])*exponent);
572                          ARG_DWSCALE = exponent;                          ARG_DWSCALE = exponent;
573                          exponent = gcd(ARG_DWRATE, ARG_DWSCALE);                          exponent = gcd(ARG_DWRATE, ARG_DWSCALE);
574                          ARG_DWRATE /= exponent;                          ARG_DWRATE /= exponent;

Legend:
Removed from v.1928  
changed lines
  Added in v.1932

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