Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
opts.c File Reference
#include <stdio.h>
#include <string.h>
#include "opts.h"
#include <math.h>
Go to the source code of this file.
Define Documentation
  
    
      
        
          |  #define ASCII_TOUPPER | 
          (  | 
          c  | 
                      | 
          )  | 
             ((c>='a') && (c<='z')) ? c-'a'+'A' : c
       |   
     | 
  
Function Documentation
  
    
      
        
          |  void SetupCollectQuantStats _ANSI_ARGS_  | 
          (  | 
          (char *charPtr)  | 
                      | 
          )  | 
           | 
         
       
     | 
  
  
    
      
        
          |  void init_idctref _ANSI_ARGS_  | 
          (  | 
          (void)  | 
                      | 
          )  | 
           | 
         
       
     | 
  
  
    
      
        
          |  void ParseTuneParam  | 
          (  | 
          charPtr  | 
                      | 
          )  | 
           | 
         
       
     | 
  
  
    | 
       
     | 
    
 
 
Definition at line 114 of file opts.c.
 
References collect_quant_fp, decodeRefFrames, i, init_fdct(), init_idctref(), niqtable, outputFileName, printSNR, pureDCT, and qtable.
 
 00115 {
00116   int i;
00117 
00118   
00119   if (collect_quant) {
00120     if (!pureDCT) {
00121       pureDCT = TRUE;
00122       init_idctref();
00123       init_fdct();
00124     }
00125     fprintf(collect_quant_fp, "# %s\n", outputFileName);
00126     fprintf(collect_quant_fp, "#");
00127     for (i=0; i<64; i++) 
00128       fprintf(collect_quant_fp, " %d", qtable[i]);
00129     fprintf(collect_quant_fp, "\n#");
00130     for (i=0; i<64; i++) 
00131       fprintf(collect_quant_fp, " %d", niqtable[i]);
00132     fprintf(collect_quant_fp, "\n# %d %d %d\n\n", 
00133             GetIQScale(), GetPQScale(), GetBQScale());
00134     
00135   }
00136 
00137   if (DoLaplace) {
00138     if (!pureDCT) {
00139       pureDCT = TRUE;
00140       init_idctref();
00141       init_fdct();
00142     }
00143     decodeRefFrames = TRUE;
00144     printSNR = TRUE;
00145   }
00146     
00147 }
      | 
  
Variable Documentation
  
    
      
        
          |  int collect_distortion_detailed = 0
       |   
     | 
  
  
    
      
        
          |  int collect_quant_detailed = 0
       |   
     | 
  
  
    
      
        
          |  float LocalDCTDistortScale = 1.0
       |   
     | 
  
  
    
      
        
          |  float LocalDCTRateScale = 1.0
       |   
     | 
  
  
    
      
        
          |  int SearchCompareMode = DEFAULT_SEARCH
       |   
     | 
  
  
    
      
        
          |  boolean squash_small_differences = FALSE
       |   
     | 
  
  
    
      
        
          |  boolean WriteDistortionNumbers = FALSE
       |   
     |