www.pudn.com > rm52f.rar > configfile.h


/* 
*********************************************************************** 
* COPYRIGHT AND WARRANTY INFORMATION 
* 
* Copyright 2003, Advanced Audio Video Coding Standard, Part II 
* 
* DISCLAIMER OF WARRANTY  
* 
* These software programs are available to the users without any 
* license fee or royalty on an "as is" basis. The AVS disclaims 
* any and all warranties, whether express, implied, or statutory, 
* including any implied warranties of merchantability or of fitness 
* for a particular purpose. In no event shall the contributors or  
* the AVS be liable for any incidental, punitive, or consequential 
* damages of any kind whatsoever arising from the use of this program. 
* 
* This disclaimer of warranty extends to the user of this program 
* and user's customers, employees, agents, transferees, successors, 
* and assigns. 
* 
* The AVS does not represent or warrant that the program furnished 
* hereunder are free of infringement of any third-party patents. 
* Commercial implementations of AVS, including shareware, may be 
* subject to royalty fees to patent holders. Information regarding 
* the AVS patent policy is available from the AVS Web site at 
* http://www.avs.org.cn 
* 
* THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE AVS PATENT POLICY. 
************************************************************************ 
*/ 
 
/* 
************************************************************************************* 
* File name:  
* Function:  
* 
************************************************************************************* 
*/ 
 
#ifndef _CONFIGFILE_H_ 
#define _CONFIGFILE_H_ 
 
typedef struct { 
  char *TokenName; 
  void *Place; 
  int Type; 
} Mapping; 
 
InputParameters configinput; 
 
#ifdef INCLUDED_BY_CONFIGFILE_C 
 
Mapping Map[] = { 
    {"IntraPeriod",              &configinput.intra_period,            0}, 
    {"FramesToBeEncoded",        &configinput.no_frames,               0}, 
    {"QPFirstFrame",             &configinput.qp0,                     0}, 
    {"QPRemainingFrame",         &configinput.qpN,                     0}, 
    {"FrameSkip",                &configinput.jumpd,                   0}, 
    {"UseHadamard",              &configinput.hadamard,                0}, 
    {"SearchRange",              &configinput.search_range,            0}, 
    {"NumberReferenceFrames",    &configinput.no_multpred,             0}, 
    {"SourceWidth",              &configinput.img_width,               0}, 
    {"SourceHeight",             &configinput.img_height,              0}, 
    {"InputFile",                &configinput.infile,                  1}, 
    {"InputHeaderLength",        &configinput.infile_header,           0}, 
    {"OutputFile",               &configinput.outfile,                 1}, 
    {"ReconFile",                &configinput.ReconFile,               1}, 
    {"TraceFile",                &configinput.TraceFile,               1}, 
    {"NumberBFrames",            &configinput.successive_Bframe,       0}, 
    {"QPBPicture",               &configinput.qpB,                     0}, 
    {"InterSearch16x16",         &configinput.InterSearch16x16,        0}, 
    {"InterSearch16x8",          &configinput.InterSearch16x8 ,        0}, 
    {"InterSearch8x16",          &configinput.InterSearch8x16,         0}, 
    {"InterSearch8x8",           &configinput.InterSearch8x8 ,         0}, 
    {"RDOptimization",           &configinput.rdopt,                   0}, 
    {"InterlaceCodingOption",    &configinput.InterlaceCodingOption,   0}, 
    {"LoopFilterDisable",        &configinput.loop_filter_disable,     0}, 
		{"LoopFilterParameter",      &configinput.loop_filter_parameter_flag,     0}, 
		{"LoopFilterAlphaOffset",    &configinput.alpha_c_offset,     0}, 
		{"LoopFilterBetaOffset",     &configinput.beta_offset,     0}, 
    {"Progressive_frame",        &configinput.progressive_frame,       0}, 
		{"Dct_Adaptive_Flag",        &configinput.dct_adaptive_flag,       0}, 
//		{"SliceEnable",              &configinput.slice_enable,             0}, 
		 
	{"NumberOfRowsInSlice",              &configinput.slice_row_nr,             0}, 
 
    {"SliceParameter",           &configinput.slice_parameter,         0}, 
		{"WeightEnable",             &configinput.slice_weighting_flag,  0}, 
		{"FrameRate",             &configinput.frame_rate_code,  0}, 
		{"ChromaFormat",             &configinput.chroma_format,  0}, 
    	// Rate Control on JVT Standard 
    {"RateControlEnable",        &configinput.RCEnable,                0}, 
    {"Bitrate",                  &configinput.bit_rate,                     0}, 
    {"InitialQP",                &configinput.SeinitialQP,        0}, 
    {"BasicUnit",               &configinput.basicunit,        0}, 
    {"ChannelType",               &configinput.channel_type,        0}, 
 
    {NULL,                       NULL,                                -1} 
}; 
 
#endif 
 
#ifndef INCLUDED_BY_CONFIGFILE_C 
extern Mapping Map[]; 
#endif 
 
void Configure (int ac, char *av[]); 
 
#endif