3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - XviD Main header file - |
* - XviD Main header file - |
5 |
* |
* |
6 |
* This file is part of XviD, a free MPEG-4 video encoder/decoder |
* Copyright(C) 2001-2003 Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
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.17 2003-05-12 12:29:08 suxen_drol Exp $ |
* $Id: xvid.h,v 1.27.2.26 2003-06-28 15:50:10 chl Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
67 |
* 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 |
68 |
* future |
* future |
69 |
*/ |
*/ |
70 |
#define XVID_BS_VERSION "0009" |
#define XVID_BS_VERSION "0013" |
71 |
|
|
72 |
|
|
73 |
/***************************************************************************** |
/***************************************************************************** |
99 |
#define XVID_CSP_BGRA 6 /* 32-bit bgra packed */ |
#define XVID_CSP_BGRA 6 /* 32-bit bgra packed */ |
100 |
#define XVID_CSP_ABGR 7 /* 32-bit abgr packed */ |
#define XVID_CSP_ABGR 7 /* 32-bit abgr packed */ |
101 |
#define XVID_CSP_RGBA 8 /* 32-bit rgba packed */ |
#define XVID_CSP_RGBA 8 /* 32-bit rgba packed */ |
102 |
#define XVID_CSP_BGR 9 /* 32-bit bgr packed */ |
#define XVID_CSP_BGR 9 /* 24-bit bgr packed */ |
103 |
#define XVID_CSP_RGB555 10 /* 16-bit rgb555 packed */ |
#define XVID_CSP_RGB555 10 /* 16-bit rgb555 packed */ |
104 |
#define XVID_CSP_RGB565 11 /* 16-bit rgb565 packed */ |
#define XVID_CSP_RGB565 11 /* 16-bit rgb565 packed */ |
105 |
#define XVID_CSP_SLICE 12 /* decoder only: 4:2:0 planar, per slice rendering */ |
#define XVID_CSP_SLICE 12 /* decoder only: 4:2:0 planar, per slice rendering */ |
169 |
#define XVID_CPU_ALTIVEC 0x00000001 /* altivec */ |
#define XVID_CPU_ALTIVEC 0x00000001 /* altivec */ |
170 |
|
|
171 |
|
|
172 |
|
#define XVID_DEBUG_ERROR 0x00000001 |
173 |
|
#define XVID_DEBUG_STARTCODE 0x00000002 |
174 |
|
#define XVID_DEBUG_HEADER 0x00000004 |
175 |
|
#define XVID_DEBUG_TIMECODE 0x00000008 |
176 |
|
#define XVID_DEBUG_MB 0x00000010 |
177 |
|
#define XVID_DEBUG_COEFF 0x00000020 |
178 |
|
#define XVID_DEBUG_MV 0x00000040 |
179 |
|
#define XVID_DEBUG_RC 0x00000080 |
180 |
|
#define XVID_DEBUG_DEBUG 0x80000000 |
181 |
|
|
182 |
/* XVID_GBL_INIT param1 */ |
/* XVID_GBL_INIT param1 */ |
183 |
typedef struct { |
typedef struct { |
184 |
int version; |
int version; |
185 |
int cpu_flags; /* [in:opt] zero = autodetect cpu |
int cpu_flags; /* [in:opt] zero = autodetect cpu |
186 |
XVID_CPU_FORCE|{cpu features} = force cpu features */ |
XVID_CPU_FORCE|{cpu features} = force cpu features */ |
187 |
|
int debug; /* [in:opt] debug level */ |
188 |
} xvid_gbl_init_t; |
} xvid_gbl_init_t; |
189 |
|
|
190 |
|
|
442 |
} xvid_plugin_2pass1_t; |
} xvid_plugin_2pass1_t; |
443 |
|
|
444 |
|
|
|
#define XVID_CURVE_COSINE 0 /* low aggressiveness */ |
|
|
#define XVID_CURVE_LINEAR 1 /* medium aggressiveness */ |
|
|
#define XVID_CURVE_SINE 2 /* high aggressiveness */ |
|
|
|
|
445 |
#define XVID_PAYBACK_BIAS 0 /* payback with bias */ |
#define XVID_PAYBACK_BIAS 0 /* payback with bias */ |
446 |
#define XVID_PAYBACK_PROP 1 /* payback proportionally */ |
#define XVID_PAYBACK_PROP 1 /* payback proportionally */ |
447 |
|
|
458 |
int max_overflow_improvement; |
int max_overflow_improvement; |
459 |
int max_overflow_degradation; |
int max_overflow_degradation; |
460 |
|
|
|
int use_alt_curve; |
|
|
int alt_curve_high_dist; |
|
|
int alt_curve_low_dist; |
|
|
int alt_curve_use_auto; |
|
|
int alt_curve_auto_str; |
|
|
int alt_curve_type; /* XVID_CURVE_ */ |
|
|
int alt_curve_min_rel_qual; |
|
|
int alt_curve_use_auto_bonus_bias; |
|
|
int alt_curve_bonus_bias; |
|
|
|
|
461 |
int kftreshold; |
int kftreshold; |
462 |
int kfreduction; |
int kfreduction; |
463 |
int min_key_interval; |
int min_key_interval; |
464 |
|
|
465 |
|
int container_frame_overhead; |
466 |
}xvid_plugin_2pass2_t; |
}xvid_plugin_2pass2_t; |
467 |
|
|
468 |
|
|
516 |
color input material chroma is ignored) */ |
color input material chroma is ignored) */ |
517 |
XVID_VOP_HQACPRED = 0x00000080, /* 20030209: high quality ac prediction */ |
XVID_VOP_HQACPRED = 0x00000080, /* 20030209: high quality ac prediction */ |
518 |
XVID_VOP_MODEDECISION_BITS = 0x00000100, /* enable DCT-ME and use it for mode decision */ |
XVID_VOP_MODEDECISION_BITS = 0x00000100, /* enable DCT-ME and use it for mode decision */ |
|
XVID_VOP_DYNAMIC_BFRAMES = 0x00000200, |
|
519 |
|
|
520 |
/* only valid for vol_flags|=XVID_VOL_INTERLACING */ |
/* only valid for vol_flags|=XVID_VOL_INTERLACING */ |
521 |
XVID_VOP_TOPFIELDFIRST = 0x00000400, /* set top-field-first flag */ |
XVID_VOP_TOPFIELDFIRST = 0x00000400, /* set top-field-first flag */ |
558 |
XVID_ME_UNRESTRICTED16 = 0x00200000, /* unrestricted ME, not implemented */ |
XVID_ME_UNRESTRICTED16 = 0x00200000, /* unrestricted ME, not implemented */ |
559 |
XVID_ME_OVERLAPPING16 = 0x00400000, /* overlapping ME, not implemented */ |
XVID_ME_OVERLAPPING16 = 0x00400000, /* overlapping ME, not implemented */ |
560 |
XVID_ME_UNRESTRICTED8 = 0x20000000, /* unrestricted ME, not implemented */ |
XVID_ME_UNRESTRICTED8 = 0x20000000, /* unrestricted ME, not implemented */ |
561 |
XVID_ME_OVERLAPPING8 = 0x40000000 /* overlapping ME, not implemented */ |
XVID_ME_OVERLAPPING8 = 0x40000000, /* overlapping ME, not implemented */ |
562 |
|
|
563 |
|
XVID_GME_REFINE = 0x00010000 |
564 |
|
|
565 |
} xvid_motion_t; |
} xvid_motion_t; |
566 |
|
|
567 |
|
|