[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.12, Sat Aug 2 15:08:24 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 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;
# Line 72  Line 75 
75      int min_quant[3];      int min_quant[3];
76      int max_quant[3];      int max_quant[3];
77    
78  #ifdef _SMP          int par;
79          int num_threads;          int par_width;
80  #endif          int par_height;
   
81    
82          int iMaxKeyInterval;          int iMaxKeyInterval;
83          int max_bframes;          int max_bframes;
# Line 92  Line 94 
94      int vol_flags;      int vol_flags;
95    
96          int64_t m_stamp;          int64_t m_stamp;
 }  
 MBParam;  
97    
98            uint16_t *mpeg_quant_matrices;
99            uint32_t last_quant_initialized_intra; /* needed for mpeg matrices initialization */
100    } MBParam;
101    
102  typedef struct  typedef struct
103  {  {
# Line 105  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
# Line 118  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 148  Line 149 
149      int length;         /* the encoded size of this frame */      int length;         /* the encoded size of this frame */
150    
151          Statistics sStat;          Statistics sStat;
152  }          int is_edged, is_interpolated;
153  FRAMEINFO;  } FRAMEINFO;
154    
155    #include "motion/motion_smp.h"
156    
157  typedef struct  typedef struct
158  {  {
# Line 164  Line 166 
166      xvid_enc_zone_t * zones;      xvid_enc_zone_t * zones;
167    
168      /* plugins */      /* plugins */
169      unsigned int num_plugins;    /* note: we store plugin flags in MBPARAM */      int num_plugins;    /* note: we store plugin flags in MBPARAM */
170      xvid_enc_plugin_t * plugins;      xvid_enc_plugin_t * plugins;
171    
172      /* dquant */      /* dquant */
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 206  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  Encoder;          int num_slices;                 /* number of slices to code */
224    } Encoder;
225    
226  /*****************************************************************************  /*****************************************************************************
227   * Inline functions   * Inline functions
# Line 244  Line 255 
255                  return 0;                  return 0;
256  }  }
257    
   
258  /*****************************************************************************  /*****************************************************************************
259   * Prototypes   * Prototypes
260   ****************************************************************************/   ****************************************************************************/

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

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