19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid.h,v 1.27.2.47 2003-12-05 14:44:35 edgomez Exp $ |
* $Id: xvid.h,v 1.27.2.52 2003-12-12 14:16:40 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
73 |
* doesnt hurt but not increasing it could cause difficulty for decoders in the |
* doesnt hurt but not increasing it could cause difficulty for decoders in the |
74 |
* future |
* future |
75 |
*/ |
*/ |
76 |
#define XVID_BS_VERSION "0023" |
#define XVID_BS_VERSION "0024" |
77 |
|
|
78 |
|
|
79 |
/***************************************************************************** |
/***************************************************************************** |
96 |
|
|
97 |
/* colorspace values */ |
/* colorspace values */ |
98 |
|
|
99 |
#define XVID_CSP_USER (1<< 0) /* 4:2:0 planar */ |
#define XVID_CSP_USER (1<< 0) /* 4:2:0 planar (==I420, except for pointers/strides) */ |
100 |
#define XVID_CSP_I420 (1<< 1) /* 4:2:0 packed(planar win32) */ |
#define XVID_CSP_I420 (1<< 1) /* 4:2:0 planar */ |
101 |
#define XVID_CSP_YV12 (1<< 2) /* 4:2:0 packed(planar win32) */ |
#define XVID_CSP_YV12 (1<< 2) /* 4:2:0 planar */ |
102 |
#define XVID_CSP_YUY2 (1<< 3) /* 4:2:2 packed */ |
#define XVID_CSP_YUY2 (1<< 3) /* 4:2:2 packed */ |
103 |
#define XVID_CSP_UYVY (1<< 4) /* 4:2:2 packed */ |
#define XVID_CSP_UYVY (1<< 4) /* 4:2:2 packed */ |
104 |
#define XVID_CSP_YVYU (1<< 5) /* 4:2:2 packed */ |
#define XVID_CSP_YVYU (1<< 5) /* 4:2:2 packed */ |
138 |
#define XVID_PROFILE_AS_L4 0xf4 |
#define XVID_PROFILE_AS_L4 0xf4 |
139 |
|
|
140 |
/* aspect ratios */ |
/* aspect ratios */ |
141 |
#define XVID_PAR_11_VGA 1 /* 1:1 vga (square), default if AR is not precised (ie: ==0) */ |
#define XVID_PAR_11_VGA 1 /* 1:1 vga (square), default if supplied PAR is not a valid value */ |
142 |
#define XVID_PAR_43_PAL 2 /* 4:3 pal (12:11 625-line) */ |
#define XVID_PAR_43_PAL 2 /* 4:3 pal (12:11 625-line) */ |
143 |
#define XVID_PAR_43_NTSC 3 /* 4:3 ntsc (10:11 525-line) */ |
#define XVID_PAR_43_NTSC 3 /* 4:3 ntsc (10:11 525-line) */ |
144 |
#define XVID_PAR_169_PAL 4 /* 16:9 pal (16:11 625-line) */ |
#define XVID_PAR_169_PAL 4 /* 16:9 pal (16:11 625-line) */ |
246 |
/* general flags */ |
/* general flags */ |
247 |
#define XVID_LOWDELAY (1<<0) /* lowdelay mode */ |
#define XVID_LOWDELAY (1<<0) /* lowdelay mode */ |
248 |
#define XVID_DISCONTINUITY (1<<1) /* indicates break in stream */ |
#define XVID_DISCONTINUITY (1<<1) /* indicates break in stream */ |
249 |
|
#define XVID_DEBLOCKY (1<<2) /* perform luma deblocking */ |
250 |
|
#define XVID_DEBLOCKUV (1<<3) /* perform chroma deblocking */ |
251 |
|
|
252 |
typedef struct { |
typedef struct { |
253 |
int version; |
int version; |
279 |
int general; /* [out] flags */ |
int general; /* [out] flags */ |
280 |
int width; /* [out] width */ |
int width; /* [out] width */ |
281 |
int height; /* [out] height */ |
int height; /* [out] height */ |
282 |
int par; /* [out] picture aspect ratio (refer to XVID_PAR_xxx above) */ |
int par; /* [out] pixel aspect ratio (refer to XVID_PAR_xxx above) */ |
283 |
int par_width; /* [out] aspect ratio width */ |
int par_width; /* [out] aspect ratio width [1..255] */ |
284 |
int par_height; /* [out] aspect ratio height */ |
int par_height; /* [out] aspect ratio height [1..255] */ |
285 |
} vol; |
} vol; |
286 |
} data; |
} data; |
287 |
} xvid_dec_stats_t; |
} xvid_dec_stats_t; |
622 |
unsigned char *quant_intra_matrix; /* [in:opt] custom intra qmatrix */ |
unsigned char *quant_intra_matrix; /* [in:opt] custom intra qmatrix */ |
623 |
unsigned char *quant_inter_matrix; /* [in:opt] custom inter qmatrix */ |
unsigned char *quant_inter_matrix; /* [in:opt] custom inter qmatrix */ |
624 |
|
|
625 |
int par; /* [in:opt] picture aspect ratio (refer to XVID_PAR_xxx above) */ |
int par; /* [in:opt] pixel aspect ratio (refer to XVID_PAR_xxx above) */ |
626 |
int par_width; /* [in:opt] aspect ratio width */ |
int par_width; /* [in:opt] aspect ratio width */ |
627 |
int par_height; /* [in:opt] aspect ratio height */ |
int par_height; /* [in:opt] aspect ratio height */ |
628 |
/* ---------------------------------------------- */ |
/* ---------------------------------------------- */ |