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

Diff of /trunk/xvidcore/src/xvid.h

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

revision 199, Thu Jun 13 12:42:18 2002 UTC revision 324, Sun Jul 21 03:49:47 2002 UTC
# Line 28  Line 28 
28  *               ToDo ? : when BFRAMES is defined, the API_VERSION should not  *               ToDo ? : when BFRAMES is defined, the API_VERSION should not
29  *                        be the same (3.0 ?)  *                        be the same (3.0 ?)
30  *  *
31  *  $Id: xvid.h,v 1.10 2002-06-13 12:42:18 edgomez Exp $  *  $Id: xvid.h,v 1.16 2002-07-21 03:41:44 suxen_drol Exp $
32  *  *
33  *****************************************************************************/  *****************************************************************************/
34    
# Line 37  Line 37 
37  #define _XVID_H_  #define _XVID_H_
38    
39  #ifdef __cplusplus  #ifdef __cplusplus
40  *  $Id: xvid.h,v 1.10 2002-06-13 12:42:18 edgomez Exp $  *  $Id: xvid.h,v 1.16 2002-07-21 03:41:44 suxen_drol Exp $
41  #endif  #endif
42    
43  /*****************************************************************************  /*****************************************************************************
# Line 73  Line 73 
73    
74    
75  /*****************************************************************************  /*****************************************************************************
76     *  Initialization constants
77   ****************************************************************************/   ****************************************************************************/
78    
79  /* CPU flags for XVID_INIT_PARAM.cpu_flags */  /* CPU flags for XVID_INIT_PARAM.cpu_flags */
# Line 85  Line 86 
86  #define XVID_CPU_3DNOWEXT       0x00000020  #define XVID_CPU_3DNOWEXT       0x00000020
87    
88  #define XVID_CPU_TSC            0x00000040  #define XVID_CPU_TSC            0x00000040
89    
90  #define XVID_CPU_IA64           0x00000080  #define XVID_CPU_IA64           0x00000080
91    
92  #define XVID_CPU_CHKONLY        0x40000000              /* check cpu only; dont init globals */  #define XVID_CPU_CHKONLY        0x40000000              /* check cpu only; dont init globals */
93  #define XVID_CPU_FORCE          0x80000000  #define XVID_CPU_FORCE          0x80000000
94    
95    
96    /*****************************************************************************
97   *  Initialization structures   *  Initialization structures
98     ****************************************************************************/
99    
100            typedef struct
101            {
102                  int cpu_flags;                  int cpu_flags;
103                  int api_version;                  int api_version;
104                  int core_build;                  int core_build;
# Line 148  Line 155 
155                  int stride_y, stride_u,stride_v;                  int stride_y, stride_u,stride_v;
156          } XVID_DEC_PICTURE;          } XVID_DEC_PICTURE;
157    
158    
159    /*****************************************************************************
160     * Decoder entry point
161     ****************************************************************************/
162    
163    /* decoder options */
164    #define XVID_DEC_DECODE         0
165    #define XVID_DEC_CREATE         1
166  #define XVID_DEC_DESTROY        2  #define XVID_DEC_DESTROY        2
167    
168          int xvid_decore(void *handle,          int xvid_decore(void *handle,
# Line 169  Line 184 
184  #define XVID_VALID_FLAGS                0x80000000  #define XVID_VALID_FLAGS                0x80000000
185    
186  #define XVID_CUSTOM_QMATRIX             0x00000004      /* use custom quant matrix */  #define XVID_CUSTOM_QMATRIX             0x00000004      /* use custom quant matrix */
187    #define XVID_H263QUANT                  0x00000010
188    #define XVID_MPEGQUANT                  0x00000020
189    #define XVID_HALFPEL                    0x00000040      /* use halfpel interpolation */
190    #define XVID_ADAPTIVEQUANT              0x00000080
191    #define XVID_LUMIMASKING                0x00000100
192  #define XVID_LATEINTRA                  0x00000200  #define XVID_LATEINTRA                  0x00000200
193    
194  #define XVID_INTERLACING                0x00000400      /* enable interlaced encoding */  #define XVID_INTERLACING                0x00000400      /* enable interlaced encoding */
# Line 234  Line 254 
254                  int bquant_ratio;               /* bframe quantizer multipier (percentage).                  int bquant_ratio;               /* bframe quantizer multipier (percentage).
255                                                                   * used only when bquant < 1                                                                   * used only when bquant < 1
256                                                                   * eg. 200 = x2 multiplier                                                                   * eg. 200 = x2 multiplier
257                                                                     * quant = ((past_quant + future_quant) * bquant_ratio)/200
258                                                                     */
259                    int frame_drop_ratio;   /* frame dropping: 0=drop none... 100=drop all */
260  #endif  #endif
261                    void *handle;                   /* [out] encoder instance handle */
262          }          }
263          XVID_ENC_PARAM;          XVID_ENC_PARAM;
264    
265          typedef struct          typedef struct
266          {          {
267                  int x;                  int x;
268                    int y;
269          }          }
270          VECTOR;          VECTOR;
271    
# Line 298  Line 323 
323          typedef struct          typedef struct
324          {          {
325                  int quant;                              /* [out] frame quantizer */                  int quant;                              /* [out] frame quantizer */
                 int input_consumed;             /* [out] */  
326                  int hlength;                    /* [out] header length (bytes) */                  int hlength;                    /* [out] header length (bytes) */
327                  int kblks, mblks, ublks;        /* [out] */                  int kblks, mblks, ublks;        /* [out] */
328    

Legend:
Removed from v.199  
changed lines
  Added in v.324

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