[cvs] / xvidcore / src / xvid.h Repository:
ViewVC logotype

Diff of /xvidcore/src/xvid.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.2.5, Wed Oct 30 23:11:35 2002 UTC revision 1.17.2.10, Fri Nov 8 10:10:48 2002 UTC
# Line 1  Line 1 
1    #define KOEPI_2PASS
2  /*****************************************************************************  /*****************************************************************************
3  *  *
4  *  XVID MPEG-4 VIDEO CODEC  *  XVID MPEG-4 VIDEO CODEC
# Line 110  Line 111 
111  #define XVID_CPU_CHKONLY        0x40000000              /* check cpu only; dont init globals */  #define XVID_CPU_CHKONLY        0x40000000              /* check cpu only; dont init globals */
112  #define XVID_CPU_FORCE          0x80000000  #define XVID_CPU_FORCE          0x80000000
113    
114            typedef struct
115            {
116                    int colorspace;
117                    void * y;
118                    void * u;
119                    void * v;
120                    int y_stride;
121                    int uv_stride;
122            } XVID_IMAGE;           /* from yv12 */
123    
124    #define XVID_INIT_INIT          0
125    #define XVID_INIT_CONVERT       1
126    
127  /*****************************************************************************  /*****************************************************************************
128   *  Initialization structures   *  Initialization structures
# Line 123  Line 136 
136          }          }
137          XVID_INIT_PARAM;          XVID_INIT_PARAM;
138    
139            typedef struct
140            {
141                    XVID_IMAGE input;
142                    XVID_IMAGE output;
143                    int width;
144                    int height;
145                    int interlacing;
146            } XVID_INIT_CONVERTINFO;
147    
148  /*****************************************************************************  /*****************************************************************************
149   *  Initialization entry point   *  Initialization entry point
150   ****************************************************************************/   ****************************************************************************/
# Line 153  Line 175 
175          XVID_DEC_PARAM;          XVID_DEC_PARAM;
176    
177    
178    #define XVID_DEC_VOP    0
179    #define XVID_DEC_VOL    1
180    
181            typedef struct
182            {
183                    int notify;                     /* [out]        output 'mode' */
184                    union
185                    {
186                            struct  /* XVID_DEC_VOP */
187                            {
188                                    int time_base;          /* [out]        time base */
189                                    int time_increment;     /* [out]        time increment */
190                            } vop;
191                            struct  /* XVID_DEC_VOL */
192                            {
193                                    int general;            /* [out]        flags: eg. frames are interlaced */
194                                    int width;                      /* [out]        width */
195                                    int height;                     /* [out]        height */
196                                    int aspect_ratio;       /* [out]        aspect ratio */
197                                    int par_width;          /* [out]        aspect ratio width */
198                                    int par_height;         /* [out]        aspect ratio height */
199                            } vol;
200                    } data;
201            } XVID_DEC_STATS;
202    
203    
204          typedef struct          typedef struct
205          {          {
206                  int general;                  int general;
# Line 225  Line 273 
273  #define XVID_ME_PMVFAST                 0x00080000  #define XVID_ME_PMVFAST                 0x00080000
274  #define XVID_ME_EPZS                    0x00100000  #define XVID_ME_EPZS                    0x00100000
275    
   
276  #define XVID_GREYSCALE                  0x01000000      /* enable greyscale only mode (even for */  #define XVID_GREYSCALE                  0x01000000      /* enable greyscale only mode (even for */
277  #define XVID_GRAYSCALE                  0x01000000  /* color input material chroma is ignored) */  #define XVID_GRAYSCALE                  0x01000000  /* color input material chroma is ignored) */
278    
279    #define XVID_GMC                                0x20000000
280    #define XVID_ME_COLOUR                  0x40000000
281    
282  /* Flags for XVID_ENC_FRAME.motion */  /* Flags for XVID_ENC_FRAME.motion */
283  #define PMV_ADVANCEDDIAMOND8    0x00004000  #define PMV_ADVANCEDDIAMOND8    0x00004000
# Line 253  Line 302 
302  #define PMV_USESQUARES8                 0x80000000  #define PMV_USESQUARES8                 0x80000000
303    
304    
305    
306  /*****************************************************************************  /*****************************************************************************
307   * Encoder structures   * Encoder structures
308   ****************************************************************************/   ****************************************************************************/
# Line 271  Line 321 
321  #ifdef _SMP  #ifdef _SMP
322                  int num_threads;                /* number of threads */                  int num_threads;                /* number of threads */
323  #endif  #endif
 #ifdef BFRAMES  
324                  int global;                             /* global/debug options */                  int global;                             /* global/debug options */
325                  int max_bframes;                /* max sequential bframes (0=disable bframes) */                  int max_bframes;                /* max sequential bframes (0=disable bframes) */
326                  int bquant_ratio;               /* bframe quantizer multipier (percentage).                  int bquant_ratio;               /* bframe quantizer multipier (percentage).
# Line 280  Line 329 
329                                                                   * quant = ((past_quant + future_quant) * bquant_ratio)/200                                                                   * quant = ((past_quant + future_quant) * bquant_ratio)/200
330                                                                   */                                                                   */
331                  int frame_drop_ratio;   /* frame dropping: 0=drop none... 100=drop all */                  int frame_drop_ratio;   /* frame dropping: 0=drop none... 100=drop all */
 #endif  
332                  void *handle;                   /* [out] encoder instance handle */                  void *handle;                   /* [out] encoder instance handle */
333          }          }
334          XVID_ENC_PARAM;          XVID_ENC_PARAM;
# Line 325  Line 373 
373                  int length;                             /* [out] bitstream length (bytes) */                  int length;                             /* [out] bitstream length (bytes) */
374    
375                  void *image;                    /* [in] image ptr */                  void *image;                    /* [in] image ptr */
376                    int stride;
377                  int colorspace;                 /* [in] source colorspace */                  int colorspace;                 /* [in] source colorspace */
378    
379                  unsigned char *quant_intra_matrix;      // [in] custom intra qmatrix */                  unsigned char *quant_intra_matrix;      // [in] custom intra qmatrix */
# Line 335  Line 384 
384                                                                   */                                                                   */
385                  HINTINFO hint;                  /* [in/out] mv hint information */                  HINTINFO hint;                  /* [in/out] mv hint information */
386    
 #ifdef BFRAMES  
387                  int bquant;                             /* [in] bframe quantizer */                  int bquant;                             /* [in] bframe quantizer */
 #endif  
388    
389          }          }
390          XVID_ENC_FRAME;          XVID_ENC_FRAME;
# Line 348  Line 395 
395                  int quant;                              /* [out] frame quantizer */                  int quant;                              /* [out] frame quantizer */
396                  int hlength;                    /* [out] header length (bytes) */                  int hlength;                    /* [out] header length (bytes) */
397                  int kblks, mblks, ublks;        /* [out] */                  int kblks, mblks, ublks;        /* [out] */
   
398          }          }
399          XVID_ENC_STATS;          XVID_ENC_STATS;
400    

Legend:
Removed from v.1.17.2.5  
changed lines
  Added in v.1.17.2.10

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