[cvs] / xvidcore / src / encoder.h Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.h

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

revision 1.27.2.11, Sat Jun 28 15:49:11 2003 UTC revision 1.29, Fri Dec 9 04:45:35 2005 UTC
# Line 35  Line 35 
35   * Constants   * Constants
36   ****************************************************************************/   ****************************************************************************/
37    
38    /* lambda base exponential. 1<<LAMBDA_EXP is the neutral lambda */
39    #define LAMBDA_EXP              6
40    
41  /*****************************************************************************  /*****************************************************************************
42   * Types   * Types
43   ****************************************************************************/   ****************************************************************************/
# Line 59  Line 62 
62      int plugin_flags;      int plugin_flags;
63    
64          /* frame rate increment & base */          /* frame rate increment & base */
65          uint32_t fincr;          int32_t fincr;
66          uint32_t fbase;          uint32_t fbase;
67    
68      int profile;      int profile;
69    
70          xvid_global_t global_flags;          int global_flags;
71          int bquant_ratio;          int bquant_ratio;
72          int bquant_offset;          int bquant_offset;
73          int frame_drop_ratio;          int frame_drop_ratio;
# Line 72  Line 75 
75      int min_quant[3];      int min_quant[3];
76      int max_quant[3];      int max_quant[3];
77    
78            int par;
79            int par_width;
80            int par_height;
81    
82  #ifdef _SMP  #ifdef _SMP
83          int num_threads;          int num_threads;
84  #endif  #endif
# Line 89  Line 96 
96          /* vars that not "quite" frame independant */          /* vars that not "quite" frame independant */
97          uint32_t m_rounding_type;          uint32_t m_rounding_type;
98          uint32_t m_fcode;          uint32_t m_fcode;
99      xvid_vol_t vol_flags;      int vol_flags;
100    
101          int64_t m_stamp;          int64_t m_stamp;
102  }  
103  MBParam;          uint16_t *mpeg_quant_matrices;
104    } MBParam;
105    
106    
107  typedef struct  typedef struct
# Line 105  Line 113 
113          int mblks;          int mblks;
114          int ublks;          int ublks;
115          int gblks;          int gblks;
116  }  } Statistics;
 Statistics;  
117    
118    
119  /* encoding queue */  /* encoding queue */
# Line 123  Line 130 
130  {  {
131      int frame_num;      int frame_num;
132      int fincr;      int fincr;
133          xvid_vol_t vol_flags;          int vol_flags;
134      xvid_vop_t vop_flags;      int vop_flags;
135          xvid_motion_t motion_flags;          int motion_flags;
136    
137          int coding_type;          int coding_type;
138          uint32_t quant;          uint32_t quant;
# Line 148  Line 155 
155      int length;         /* the encoded size of this frame */      int length;         /* the encoded size of this frame */
156    
157          Statistics sStat;          Statistics sStat;
158  }          int is_edged, is_interpolated;
159  FRAMEINFO;  } FRAMEINFO;
160    
161    
162  typedef struct  typedef struct
# Line 164  Line 171 
171      xvid_enc_zone_t * zones;      xvid_enc_zone_t * zones;
172    
173      /* plugins */      /* plugins */
174      unsigned int num_plugins;    /* note: we store plugin flags in MBPARAM */      int num_plugins;    /* note: we store plugin flags in MBPARAM */
175      xvid_enc_plugin_t * plugins;      xvid_enc_plugin_t * plugins;
176    
177      /* dquant */      /* dquant */
178    
179      int * temp_dquants;      int * temp_dquants;
180    
181        /* lambda */
182    
183        float * temp_lambda;
184    
185          /* images */          /* images */
186    
187          FRAMEINFO *current;          FRAMEINFO *current;
# Line 209  Line 220 
220          int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */          int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */
221    
222          float fMvPrevSigma;          float fMvPrevSigma;
223  }  } Encoder;
 Encoder;  
224    
225  /*****************************************************************************  /*****************************************************************************
226   * Inline functions   * Inline functions

Legend:
Removed from v.1.27.2.11  
changed lines
  Added in v.1.29

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