[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.14, Tue Aug 26 14:07:11 2003 UTC revision 1.31, Fri Feb 24 08:46:22 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 76  Line 79 
79          int par_width;          int par_width;
80          int par_height;          int par_height;
81    
 #ifdef _SMP  
         int num_threads;  
 #endif  
   
   
82          int iMaxKeyInterval;          int iMaxKeyInterval;
83          int max_bframes;          int max_bframes;
84    
# Line 96  Line 94 
94      int vol_flags;      int vol_flags;
95    
96          int64_t m_stamp;          int64_t m_stamp;
97  }  
98  MBParam;          uint16_t *mpeg_quant_matrices;
99    } MBParam;
100    
101    
102  typedef struct  typedef struct
# Line 109  Line 108 
108          int mblks;          int mblks;
109          int ublks;          int ublks;
110          int gblks;          int gblks;
111  }          int iMVBits;
112  Statistics;  } Statistics;
113    
114    
115  /* encoding queue */  /* encoding queue */
# Line 152  Line 151 
151      int length;         /* the encoded size of this frame */      int length;         /* the encoded size of this frame */
152    
153          Statistics sStat;          Statistics sStat;
154  }          int is_edged, is_interpolated;
155  FRAMEINFO;  } FRAMEINFO;
156    
157    
158    #include "motion/motion_smp.h"
159    
160  typedef struct  typedef struct
161  {  {
# Line 175  Line 176 
176    
177      int * temp_dquants;      int * temp_dquants;
178    
179        /* lambda */
180    
181        float * temp_lambda;
182    
183          /* images */          /* images */
184    
185          FRAMEINFO *current;          FRAMEINFO *current;
# Line 210  Line 215 
215          int closed_bframenum; /* == -1 if there is no fixup intended */          int closed_bframenum; /* == -1 if there is no fixup intended */
216      QUEUEINFO closed_qframe;    /* qFrame, only valid when >= 0 */      QUEUEINFO closed_qframe;    /* qFrame, only valid when >= 0 */
217    
218            /* multithreaded stuff */
219            int num_threads;                        /* number of additional threads */
220            SMPmotionData * motionData;     /* data structures used to pass all thread-specific data */
221    
222          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 */
223    
224          float fMvPrevSigma;          float fMvPrevSigma;
225  }  } Encoder;
 Encoder;  
226    
227  /*****************************************************************************  /*****************************************************************************
228   * Inline functions   * Inline functions

Legend:
Removed from v.1.27.2.14  
changed lines
  Added in v.1.31

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