w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

opts.h File Reference
#include "general.h"
#include "ansi.h"
#include "mtypes.h"
Include dependency graph for opts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_SEARCH   0
 
#define LOCAL_DCT   1 /* Do DCT in search (SLOW!!!!) */
 
#define NO_DC_SEARCH   2 /* Dont consider DC component in motion searches */
 
#define DO_Mean_Squared_Distortion   3 /* Do Squared distortion, not ABS */
 

Functions

int GetIQScale (void)
 
int GetPQScale (void)
 
int GetBQScale (void)
 
void Tune_Init (void)
 
char * SkipSpacesTabs (char *start)
 
int CalcRLEHuffLength (FlatBlock in)
 
void ParseTuneParam (char *charPtr)
 
int mse (Block blk1, Block blk2)
 
void Mpost_UnQuantZigBlockLaplace (FlatBlock in, Block out, int qscale, boolean iblock)
 

Variables

boolean tuneingOn
 
int block_bound
 
boolean collect_quant
 
int collect_quant_detailed
 
FILEcollect_quant_fp
 
int kill_dim
 
int kill_dim_break
 
int kill_dim_end
 
float kill_dim_slope
 
float LocalDCTRateScale
 
float LocalDCTDistortScale
 
int SearchCompareMode
 
boolean squash_small_differences
 
int SquashMaxLum
 
int SquashMaxChr
 
boolean IntraPBAllowed
 
boolean WriteDistortionNumbers
 
int collect_distortion_detailed
 
FILEdistortion_fp
 
FILEfp_table_rate [31]
 
FILEfp_table_dist [31]
 
boolean DoLaplace
 
double ** L1
 
double ** L2
 
double ** Lambdas
 
int LaplaceNum
 
int LaplaceCnum
 
boolean BSkipBlocks
 

Macro Definition Documentation

◆ DEFAULT_SEARCH

#define DEFAULT_SEARCH   0

Definition at line 79 of file opts.h.

◆ DO_Mean_Squared_Distortion

#define DO_Mean_Squared_Distortion   3 /* Do Squared distortion, not ABS */

Definition at line 82 of file opts.h.

◆ LOCAL_DCT

#define LOCAL_DCT   1 /* Do DCT in search (SLOW!!!!) */

Definition at line 80 of file opts.h.

◆ NO_DC_SEARCH

#define NO_DC_SEARCH   2 /* Dont consider DC component in motion searches */

Definition at line 81 of file opts.h.

Function Documentation

◆ CalcRLEHuffLength()

int CalcRLEHuffLength ( FlatBlock  in)

Definition at line 580 of file postdct.c.

References ABS, cur, DCTSIZE_SQ, FALSE, huff_bits, huff_maxlevel, HUFF_MAXRUN, i, in, nbits, and TRUE.

Referenced by CalcDistortion(), and LumMotionError().

◆ GetBQScale()

int GetBQScale ( void  )

Definition at line 829 of file bframe.c.

◆ GetIQScale()

int GetIQScale ( void  )

Definition at line 380 of file iframe.c.

References qscaleI.

Referenced by GenIFrame(), and Tune_Init().

◆ GetPQScale()

int GetPQScale ( void  )

Definition at line 770 of file pframe.c.

References qscaleP.

Referenced by LumMotionError(), PrintStartStats(), and Tune_Init().

◆ Mpost_UnQuantZigBlockLaplace()

void Mpost_UnQuantZigBlockLaplace ( FlatBlock  in,
Block  out,
int  qscale,
boolean  iblock 
)

Definition at line 413 of file opts.c.

References ABS, ceil(), DCTSIZE_SQ, exp(), floor, high, in, index, int16, Lambdas, LaplaceCnum, level, log(), low, out, position, qtable, and ZAG.

Referenced by GenIFrame().

◆ mse()

int mse ( Block  blk1,
Block  blk2 
)

Definition at line 506 of file opts.c.

References bp1, DCTSIZE_SQ, error, and index.

Referenced by CalcDistortion().

◆ ParseTuneParam()

◆ SkipSpacesTabs()

char* SkipSpacesTabs ( char *  start)

◆ Tune_Init()

Variable Documentation

◆ block_bound

int block_bound
extern

Definition at line 63 of file opts.c.

Referenced by ComputeDiffDCTBlock(), and ParseTuneParam().

◆ BSkipBlocks

boolean BSkipBlocks
extern

Definition at line 82 of file opts.c.

Referenced by GenBFrame(), and ParseTuneParam().

◆ collect_distortion_detailed

int collect_distortion_detailed
extern

Definition at line 76 of file opts.c.

Referenced by CalcDistortion(), and SetupWriteDistortions().

◆ collect_quant

◆ collect_quant_detailed

int collect_quant_detailed
extern

Definition at line 65 of file opts.c.

Referenced by ComputeDiffDCTs(), GenBFrame(), GenIFrame(), GenPFrame(), and SetupCollectQuantStats().

◆ collect_quant_fp

FILE* collect_quant_fp
extern

◆ distortion_fp

FILE* distortion_fp
extern

Definition at line 77 of file opts.c.

Referenced by CalcDistortion(), and SetupWriteDistortions().

◆ DoLaplace

boolean DoLaplace
extern

Definition at line 79 of file opts.c.

Referenced by GenIFrame(), reference_fwd_dct(), SetupLaplace(), and Tune_Init().

◆ fp_table_dist

FILE * fp_table_dist[31]

Definition at line 102 of file opts.h.

Referenced by CalcDistortion().

◆ fp_table_rate

FILE* fp_table_rate[31]
extern

Definition at line 78 of file opts.c.

Referenced by CalcDistortion(), and SetupWriteDistortions().

◆ IntraPBAllowed

boolean IntraPBAllowed
extern

Definition at line 74 of file opts.c.

Referenced by GenBFrame(), GenPFrame(), and ParseTuneParam().

◆ kill_dim

int kill_dim
extern

Definition at line 67 of file opts.c.

Referenced by ReadFrame(), and SetupKillDimAreas().

◆ kill_dim_break

int kill_dim_break

Definition at line 74 of file opts.h.

Referenced by DoKillDim().

◆ kill_dim_end

int kill_dim_end

Definition at line 74 of file opts.h.

Referenced by DoKillDim().

◆ kill_dim_slope

float kill_dim_slope
extern

Definition at line 69 of file opts.c.

Referenced by DoKillDim(), and SetupKillDimAreas().

◆ L1

◆ L2

◆ Lambdas

double ** Lambdas

Definition at line 106 of file opts.h.

◆ LaplaceCnum

int LaplaceCnum

Definition at line 107 of file opts.h.

Referenced by GenIFrame(), and reference_fwd_dct().

◆ LaplaceNum

int LaplaceNum
extern

Definition at line 81 of file opts.c.

Referenced by CalcLambdas(), reference_fwd_dct(), and SetupLaplace().

◆ LocalDCTDistortScale

float LocalDCTDistortScale

Definition at line 86 of file opts.h.

Referenced by LumMotionError().

◆ LocalDCTRateScale

float LocalDCTRateScale
extern

Definition at line 73 of file opts.c.

Referenced by LumMotionError(), and SetupLocalDCT().

◆ SearchCompareMode

int SearchCompareMode
extern

Definition at line 70 of file opts.c.

Referenced by LumMotionError(), ParseTuneParam(), SetupLocalDCT(), and ZeroMotionBetter().

◆ squash_small_differences

boolean squash_small_differences
extern

Definition at line 71 of file opts.c.

Referenced by SetupSquashSmall().

◆ SquashMaxChr

int SquashMaxChr

Definition at line 93 of file opts.h.

◆ SquashMaxLum

int SquashMaxLum
extern

Definition at line 72 of file opts.c.

Referenced by SetupSquashSmall().

◆ tuneingOn

boolean tuneingOn
extern

Definition at line 62 of file opts.c.

Referenced by ReadParamFile().

◆ WriteDistortionNumbers

boolean WriteDistortionNumbers
extern

Definition at line 75 of file opts.c.

Referenced by GenIFrame(), and SetupWriteDistortions().