[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.17, Sun Nov 30 16:13:15 2003 UTC revision 1.34, Sat Dec 18 16:02:00 2010 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Encoder related header  -   *  - Encoder related header  -
5   *   *
6   *  Copyright(C) 2002-2003 Michael Militzer <isibaar@xvid.org>   *  Copyright(C) 2002-2010 Michael Militzer <isibaar@xvid.org>
7   *               2002-2003 Peter Ross <pross@xvid.org>   *               2002-2003 Peter Ross <pross@xvid.org>
8   *   *
9   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
# 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 98  Line 96 
96          int64_t m_stamp;          int64_t m_stamp;
97    
98          uint16_t *mpeg_quant_matrices;          uint16_t *mpeg_quant_matrices;
99            uint32_t last_quant_initialized_intra; /* needed for mpeg matrices initialization */
100  } MBParam;  } MBParam;
101    
   
102  typedef struct  typedef struct
103  {  {
104          int iTextBits;          int iTextBits;
# Line 110  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  /* encoding queue */  /* encoding queue */
115  typedef struct  typedef struct
116  {  {
# Line 122  Line 120 
120          IMAGE image;          IMAGE image;
121  } QUEUEINFO;  } QUEUEINFO;
122    
   
123  typedef struct  typedef struct
124  {  {
125      int frame_num;      int frame_num;
# Line 155  Line 152 
152          int is_edged, is_interpolated;          int is_edged, is_interpolated;
153  } FRAMEINFO;  } FRAMEINFO;
154    
155    #include "motion/motion_smp.h"
156    
157  typedef struct  typedef struct
158  {  {
# Line 175  Line 173 
173    
174      int * temp_dquants;      int * temp_dquants;
175    
176        /* lambda */
177    
178        float * temp_lambda;
179    
180          /* images */          /* images */
181    
182          FRAMEINFO *current;          FRAMEINFO *current;
# Line 210  Line 212 
212          int closed_bframenum; /* == -1 if there is no fixup intended */          int closed_bframenum; /* == -1 if there is no fixup intended */
213      QUEUEINFO closed_qframe;    /* qFrame, only valid when >= 0 */      QUEUEINFO closed_qframe;    /* qFrame, only valid when >= 0 */
214    
215            /* multithreaded stuff */
216            int num_threads;                        /* number of encoder threads */
217            SMPData * smpData;                      /* data structures used to pass all thread-specific data */
218    
219          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 */
220    
221          float fMvPrevSigma;          float fMvPrevSigma;
222    
223            int num_slices;                 /* number of slices to code */
224  } Encoder;  } Encoder;
225    
226  /*****************************************************************************  /*****************************************************************************
# Line 247  Line 255 
255                  return 0;                  return 0;
256  }  }
257    
   
258  /*****************************************************************************  /*****************************************************************************
259   * Prototypes   * Prototypes
260   ****************************************************************************/   ****************************************************************************/

Legend:
Removed from v.1.27.2.17  
changed lines
  Added in v.1.34

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