[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.18.2.4, Sat Nov 2 15:52:30 2002 UTC revision 1.27.4.1, Sat May 3 23:24:25 2003 UTC
# Line 46  Line 46 
46  #include "xvid.h"  #include "xvid.h"
47  #include "portab.h"  #include "portab.h"
48  #include "global.h"  #include "global.h"
 #include "image/image.h"  
49  #include "utils/ratecontrol.h"  #include "utils/ratecontrol.h"
50    
51  /*****************************************************************************  /*****************************************************************************
# Line 93  Line 92 
92          uint32_t fincr;          uint32_t fincr;
93          uint32_t fbase;          uint32_t fbase;
94    
95  #ifdef _SMP          /* constants */
96          int num_threads;          int global;
97  #endif          int bquant_ratio;
98            int bquant_offset;
99            int frame_drop_ratio;
100    
101            int iMaxKeyInterval;
102          int max_bframes;          int max_bframes;
103    
104          /* rounding type; alternate 0-1 after each interframe */          /* rounding type; alternate 0-1 after each interframe */
# Line 109  Line 111 
111          uint32_t m_rounding_type;          uint32_t m_rounding_type;
112          uint32_t m_fcode;          uint32_t m_fcode;
113          uint32_t m_quarterpel;          uint32_t m_quarterpel;
114            int m_reduced_resolution;       /* reduced_resolution_enable */
115    
116          HINTINFO *hint;          HINTINFO *hint;
117    
# Line 119  Line 122 
122    
123  typedef struct  typedef struct
124  {  {
125            int iTextBits;
126            int iMvSum;
127            int iMvCount;
128            int kblks;
129            int mblks;
130            int ublks;
131            int gblks;
132            int iblks;
133            int qblks;
134    }
135    Statistics;
136    
137    
138    typedef struct
139    {
140          uint32_t quant;          uint32_t quant;
141          uint32_t motion_flags;          uint32_t motion_flags;
142          uint32_t global_flags;          uint32_t global_flags;
# Line 136  Line 154 
154          IMAGE image;          IMAGE image;
155    
156          MACROBLOCK *mbs;          MACROBLOCK *mbs;
         VECTOR GMC_MV;  
 }  
 FRAMEINFO;  
157    
158  typedef struct          WARPPOINTS warp;                // as in bitstream
159  {          GMC_DATA gmc_data;              // common data for all MBs
         int iTextBits;  
         float fMvPrevSigma;  
         int iMvSum;  
         int iMvCount;  
         int kblks;  
         int mblks;  
         int ublks;  
 }  
 Statistics;  
160    
161            Statistics sStat;
162    }
163    FRAMEINFO;
164    
165    
166  typedef struct  typedef struct
# Line 159  Line 168 
168          MBParam mbParam;          MBParam mbParam;
169    
170          int iFrameNum;          int iFrameNum;
         int iMaxKeyInterval;  
171          int bitrate;          int bitrate;
172    
173          // images          // images
# Line 167  Line 175 
175          FRAMEINFO *current;          FRAMEINFO *current;
176          FRAMEINFO *reference;          FRAMEINFO *reference;
177    
 #ifdef _DEBUG_PSNR  
178          IMAGE sOriginal;          IMAGE sOriginal;
 #endif  
179          IMAGE vInterH;          IMAGE vInterH;
180          IMAGE vInterV;          IMAGE vInterV;
181          IMAGE vInterVf;          IMAGE vInterVf;
182          IMAGE vInterHV;          IMAGE vInterHV;
183          IMAGE vInterHVf;          IMAGE vInterHVf;
184    
185          /* constants */          IMAGE vGMC;
         int global;  
         int bquant_ratio;  
         int frame_drop_ratio;  
186    
187          /* image queue */          /* image queue */
188          int queue_head;          int queue_head;
# Line 200  Line 203 
203    
204          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 */
205    
         Statistics sStat;  
206          RateControl rate_control;          RateControl rate_control;
207    
208            float fMvPrevSigma;
209  }  }
210  Encoder;  Encoder;
211    

Legend:
Removed from v.1.18.2.4  
changed lines
  Added in v.1.27.4.1

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