[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.12, Thu Jun 20 14:05:57 2002 UTC revision 1.17.2.1, Sat Oct 5 21:34:04 2002 UTC
# Line 37  Line 37 
37  #define _XVID_H_  #define _XVID_H_
38    
39  #ifdef __cplusplus  #ifdef __cplusplus
40  *  $Id$  extern "C" {
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 97  Line 98 
98   ****************************************************************************/   ****************************************************************************/
99    
100          typedef struct          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 153  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 174  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_QUARTERPEL                 0x02000000
191    #define XVID_ADAPTIVEQUANT              0x00000080
192    #define XVID_LUMIMASKING                0x00000100
193  #define XVID_LATEINTRA                  0x00000200  #define XVID_LATEINTRA                  0x00000200
194    
195  #define XVID_INTERLACING                0x00000400      /* enable interlaced encoding */  #define XVID_INTERLACING                0x00000400      /* enable interlaced encoding */
# Line 199  Line 215 
215  /* Flags for XVID_ENC_FRAME.motion */  /* Flags for XVID_ENC_FRAME.motion */
216  #define PMV_ADVANCEDDIAMOND8    0x00004000  #define PMV_ADVANCEDDIAMOND8    0x00004000
217  #define PMV_ADVANCEDDIAMOND16   0x00008000  #define PMV_ADVANCEDDIAMOND16   0x00008000
218  #define PMV_EARLYSTOP16                 0x00080000  
219    #define PMV_HALFPELDIAMOND16    0x00010000
220    #define PMV_HALFPELREFINE16     0x00020000
221    #define PMV_QUARTERPELREFINE16  0x00040000
222    #define PMV_EXTSEARCH16                 0x00080000      /* extend PMV by more searches */
223  #define PMV_QUICKSTOP16                 0x00100000      /* like early, but without any more refinement */  #define PMV_QUICKSTOP16                 0x00100000      /* like early, but without any more refinement */
224  #define PMV_UNRESTRICTED16      0x00200000      /* unrestricted ME, not implemented */  #define PMV_UNRESTRICTED16      0x00200000      /* unrestricted ME, not implemented */
225  #define PMV_OVERLAPPING16       0x00400000      /* overlapping ME, not implemented */  #define PMV_OVERLAPPING16       0x00400000      /* overlapping ME, not implemented */
# Line 207  Line 227 
227    
228  #define PMV_HALFPELDIAMOND8     0x01000000  #define PMV_HALFPELDIAMOND8     0x01000000
229  #define PMV_HALFPELREFINE8              0x02000000  #define PMV_HALFPELREFINE8              0x02000000
230  #define PMV_EXTSEARCH8                  0x04000000      /* extend PMV by more searches */  #define PMV_QUARTERPELREFINE8   0x04000000
231  #define PMV_EARLYSTOP8                  0x08000000  #define PMV_EXTSEARCH8                  0x08000000      /* extend PMV by more searches */
232  #define PMV_QUICKSTOP8                  0x10000000      /* like early, but without any more refinement */  #define PMV_QUICKSTOP8                  0x10000000      /* like early, but without any more refinement */
233  #define PMV_UNRESTRICTED8       0x20000000      /* unrestricted ME, not implemented */  #define PMV_UNRESTRICTED8       0x20000000      /* unrestricted ME, not implemented */
234  #define PMV_OVERLAPPING8                0x40000000      /* overlapping ME, not implemented */  #define PMV_OVERLAPPING8                0x40000000      /* overlapping ME, not implemented */
# Line 239  Line 259 
259                  int bquant_ratio;               /* bframe quantizer multipier (percentage).                  int bquant_ratio;               /* bframe quantizer multipier (percentage).
260                                                                   * used only when bquant < 1                                                                   * used only when bquant < 1
261                                                                   * eg. 200 = x2 multiplier                                                                   * eg. 200 = x2 multiplier
262                                                                     * quant = ((past_quant + future_quant) * bquant_ratio)/200
263                                                                     */
264                    int frame_drop_ratio;   /* frame dropping: 0=drop none... 100=drop all */
265  #endif  #endif
266                  int packed;                             /* enable packed mode */                  void *handle;                   /* [out] encoder instance handle */
267          }          }
268          XVID_ENC_PARAM;          XVID_ENC_PARAM;
269    
270          typedef struct          typedef struct
271          {          {
272                  int x;                  int x;
273                    int y;
274          }          }
275          VECTOR;          VECTOR;
276    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.17.2.1

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