Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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.


Defines

#define ASCII_TOUPPER(c)   ((c>='a') && (c<='z')) ? c-'a'+'A' : c

Functions

void init_idctref _ANSI_ARGS_ ((void))
void SetupCollectQuantStats _ANSI_ARGS_ ((char *charPtr))
void Mpost_UnQuantZigBlockLaplace _ANSI_ARGS_ ((FlatBlock in, Block out, int qscale, boolean iblock))
void Tune_Init ()
void ParseTuneParam (charPtr) char *charPtr

Variables

char outputFileName []
boolean pureDCT
int32 qtable []
int32 niqtable []
int ZAG []
boolean printSNR
boolean decodeRefFrames
boolean tuneingOn = FALSE
int block_bound = 128
boolean collect_quant = FALSE
int collect_quant_detailed = 0
FILE * collect_quant_fp
int kill_dim = FALSE
int kill_dim_break
int kill_dim_end
float kill_dim_slope
int SearchCompareMode = DEFAULT_SEARCH
boolean squash_small_differences = FALSE
int SquashMaxLum
int SquashMaxChr
float LocalDCTRateScale = 1.0
float LocalDCTDistortScale = 1.0
boolean IntraPBAllowed = TRUE
boolean WriteDistortionNumbers = FALSE
int collect_distortion_detailed = 0
FILE * distortion_fp
FILE * fp_table_rate [31]
FILE * fp_table_dist [31]
boolean DoLaplace = FALSE
double ** L1
double ** L2
double ** Lambdas
int LaplaceNum
int LaplaceCnum
boolean BSkipBlocks = TRUE
Block out
int qscale
boolean iblock
 blk2

Define Documentation

#define ASCII_TOUPPER c       ((c>='a') && (c<='z')) ? c-'a'+'A' : c
 

Definition at line 97 of file opts.c.


Function Documentation

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

void SetupCollectQuantStats _ANSI_ARGS_ (char *charPtr)   
 

void init_idctref _ANSI_ARGS_ (void)   
 

void ParseTuneParam charPtr   
 

void Tune_Init  
 

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   /* Just check for each, and do whats needed */
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

Block blk2
 

Definition at line 727 of file rate.c.

int block_bound = 128
 

Definition at line 63 of file opts.c.

boolean BSkipBlocks = TRUE
 

Definition at line 82 of file opts.c.

int collect_distortion_detailed = 0
 

Definition at line 76 of file opts.c.

boolean collect_quant = FALSE
 

Definition at line 64 of file opts.c.

int collect_quant_detailed = 0
 

Definition at line 65 of file opts.c.

FILE* collect_quant_fp
 

Definition at line 66 of file opts.c.

Referenced by Tune_Init().

boolean decodeRefFrames
 

Definition at line 52 of file opts.c.

Referenced by Tune_Init().

FILE* distortion_fp
 

Definition at line 77 of file opts.c.

boolean DoLaplace = FALSE
 

Definition at line 79 of file opts.c.

FILE * fp_table_dist[31]
 

Definition at line 78 of file opts.c.

FILE* fp_table_rate[31]
 

Definition at line 78 of file opts.c.

int iblock
 

Definition at line 294 of file postdct.c.

boolean IntraPBAllowed = TRUE
 

Definition at line 74 of file opts.c.

int kill_dim = FALSE
 

Definition at line 67 of file opts.c.

int kill_dim_break
 

Definition at line 68 of file opts.c.

int kill_dim_end
 

Definition at line 68 of file opts.c.

float kill_dim_slope
 

Definition at line 69 of file opts.c.

double** L1
 

Definition at line 80 of file opts.c.

double ** L2
 

Definition at line 80 of file opts.c.

double ** Lambdas
 

Definition at line 80 of file opts.c.

int LaplaceCnum
 

Definition at line 81 of file opts.c.

int LaplaceNum
 

Definition at line 81 of file opts.c.

float LocalDCTDistortScale = 1.0
 

Definition at line 73 of file opts.c.

float LocalDCTRateScale = 1.0
 

Definition at line 73 of file opts.c.

int32 niqtable[]
 

Definition at line 50 of file opts.c.

Referenced by Tune_Init().

Block out
 

Definition at line 415 of file opts.c.

char outputFileName[]
 

include <malloc.h> *

Definition at line 48 of file opts.c.

Referenced by Tune_Init().

boolean printSNR
 

Definition at line 52 of file opts.c.

Referenced by Tune_Init().

boolean pureDCT
 

Definition at line 49 of file opts.c.

Referenced by Tune_Init().

int qscale
 

Definition at line 416 of file opts.c.

int32 qtable[]
 

Definition at line 50 of file opts.c.

Referenced by Tune_Init().

int SearchCompareMode = DEFAULT_SEARCH
 

Definition at line 70 of file opts.c.

boolean squash_small_differences = FALSE
 

Definition at line 71 of file opts.c.

int SquashMaxChr
 

Definition at line 72 of file opts.c.

int SquashMaxLum
 

Definition at line 72 of file opts.c.

boolean tuneingOn = FALSE
 

Definition at line 62 of file opts.c.

boolean WriteDistortionNumbers = FALSE
 

Definition at line 75 of file opts.c.

int ZAG[]
 

Definition at line 51 of file opts.c.

 

Powered by Plone

This site conforms to the following standards: