[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.1, Sat Feb 22 08:49:44 2003 UTC revision 1.27.2.7, Mon May 12 12:28:31 2003 UTC
# Line 52  Line 52 
52   * Constants   * Constants
53   ****************************************************************************/   ****************************************************************************/
54    
 /* Quatization type */  
 #define H263_QUANT      0  
 #define MPEG4_QUANT     1  
   
 /* Indicates no quantizer changes in INTRA_Q/INTER_Q modes */  
 #define NO_CHANGE 64  
   
55  /*****************************************************************************  /*****************************************************************************
56   * Types   * Types
57   ****************************************************************************/   ****************************************************************************/
# Line 80  Line 73 
73          uint32_t mb_width;          uint32_t mb_width;
74          uint32_t mb_height;          uint32_t mb_height;
75    
76        int plugin_flags;
77    
78          /* frame rate increment & base */          /* frame rate increment & base */
79          uint32_t fincr;          uint32_t fincr;
80          uint32_t fbase;          uint32_t fbase;
81    
82        int profile;
83    
84          xvid_global_t global_flags;          xvid_global_t global_flags;
85          int bquant_ratio;          int bquant_ratio;
86          int bquant_offset;          int bquant_offset;
87          int frame_drop_ratio;          int frame_drop_ratio;
88    
89        int min_quant[3];
90        int max_quant[3];
91    
92  #ifdef _SMP  #ifdef _SMP
93          int num_threads;          int num_threads;
94  #endif  #endif
# Line 138  Line 138 
138    
139  typedef struct  typedef struct
140  {  {
141        int frame_num;
142        int fincr;
143          xvid_vol_t vol_flags;          xvid_vol_t vol_flags;
144      xvid_vop_t vop_flags;      xvid_vop_t vop_flags;
145          xvid_motion_t motion_flags;          xvid_motion_t motion_flags;
# Line 173  Line 175 
175          int iFrameNum;          int iFrameNum;
176          int bitrate;          int bitrate;
177    
178        // zones
179        unsigned int num_zones;
180        xvid_enc_zone_t * zones;
181    
182        // plugins
183        unsigned int num_plugins;    /* note: we store plugin flags in MBPARAM */
184        xvid_enc_plugin_t * plugins;
185    
186        // dquant
187    
188        int * temp_dquants;
189    
190          // images          // images
191    
192          FRAMEINFO *current;          FRAMEINFO *current;
193          FRAMEINFO *reference;          FRAMEINFO *reference;
194    
195          IMAGE sOriginal;          IMAGE sOriginal;    /* original image copy for i/p frames */
196        IMAGE sOriginal2;   /* original image copy for b-frames */
197          IMAGE vInterH;          IMAGE vInterH;
198          IMAGE vInterV;          IMAGE vInterV;
199          IMAGE vInterVf;          IMAGE vInterVf;
# Line 254  Line 269 
269    
270  void init_encoder(uint32_t cpu_flags);  void init_encoder(uint32_t cpu_flags);
271    
272  int enc_create(xvid_enc_create_t * create, xvid_enc_rc_t * rc);  int enc_create(xvid_enc_create_t * create);
273  int enc_destroy(Encoder * pEnc);  int enc_destroy(Encoder * pEnc);
274  int enc_encode(Encoder * pEnc,  int enc_encode(Encoder * pEnc,
275                                     xvid_enc_frame_t * pFrame,                                     xvid_enc_frame_t * pFrame,

Legend:
Removed from v.1.27.2.1  
changed lines
  Added in v.1.27.2.7

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