[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.30, Thu Jan 19 22:25:18 2006 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  }          int iMVBits;
117  Statistics;  } Statistics;
118    
119    
120  /* encoding queue */  /* encoding queue */
# Line 123  Line 131 
131  {  {
132      int frame_num;      int frame_num;
133      int fincr;      int fincr;
134          xvid_vol_t vol_flags;          int vol_flags;
135      xvid_vop_t vop_flags;      int vop_flags;
136          xvid_motion_t motion_flags;          int motion_flags;
137    
138          int coding_type;          int coding_type;
139          uint32_t quant;          uint32_t quant;
# Line 148  Line 156 
156      int length;         /* the encoded size of this frame */      int length;         /* the encoded size of this frame */
157    
158          Statistics sStat;          Statistics sStat;
159  }          int is_edged, is_interpolated;
160  FRAMEINFO;  } FRAMEINFO;
161    
162    
163  typedef struct  typedef struct
# Line 164  Line 172 
172      xvid_enc_zone_t * zones;      xvid_enc_zone_t * zones;
173    
174      /* plugins */      /* plugins */
175      unsigned int num_plugins;    /* note: we store plugin flags in MBPARAM */      int num_plugins;    /* note: we store plugin flags in MBPARAM */
176      xvid_enc_plugin_t * plugins;      xvid_enc_plugin_t * plugins;
177    
178      /* dquant */      /* dquant */
179    
180      int * temp_dquants;      int * temp_dquants;
181    
182        /* lambda */
183    
184        float * temp_lambda;
185    
186          /* images */          /* images */
187    
188          FRAMEINFO *current;          FRAMEINFO *current;
# Line 209  Line 221 
221          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 */
222    
223          float fMvPrevSigma;          float fMvPrevSigma;
224  }  } Encoder;
 Encoder;  
225    
226  /*****************************************************************************  /*****************************************************************************
227   * Inline functions   * Inline functions

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

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