--- xvid.h 2003/01/13 14:33:24 1.17.2.23 +++ xvid.h 2003/02/09 06:33:51 1.17.2.27 @@ -28,7 +28,7 @@ * ToDo ? : when BFRAMES is defined, the API_VERSION should not * be the same (3.0 ?) * -* $Id: xvid.h,v 1.17.2.23 2003/01/13 14:33:24 chl Exp $ +* $Id: xvid.h,v 1.17.2.27 2003/02/09 06:33:51 suxen_drol Exp $ * *****************************************************************************/ @@ -59,7 +59,7 @@ * doesnt hurt but not increasing it could cause difficulty for decoders in the * future */ -#define XVID_BS_VERSION "0007" +#define XVID_BS_VERSION "0009" /* Error codes */ @@ -257,6 +257,9 @@ #define XVID_GLOBAL_DEBUG 0x00000004 /* print debug info on each frame */ #define XVID_GLOBAL_REDUCED 0x04000000 /* reduced resolution vop enable */ +#define XVID_GLOBAL_EXTRASTATS 0x00000200 /* generate extra statistics */ + + /* Flags for XVID_ENC_FRAME.general */ #define XVID_VALID_FLAGS 0x80000000 @@ -267,7 +270,6 @@ #define XVID_QUARTERPEL 0x02000000 #define XVID_ADAPTIVEQUANT 0x00000080 #define XVID_LUMIMASKING 0x00000100 -#define XVID_LATEINTRA 0x00000200 #define XVID_INTERLACING 0x00000400 /* enable interlaced encoding */ #define XVID_TOPFIELDFIRST 0x00000800 /* set top-field-first flag */ @@ -291,6 +293,10 @@ #define XVID_GMC_TRANSLATIONAL 0x20000000 #define XVID_REDUCED 0x04000000 /* reduced resolution vop */ +#define XVID_HQACPRED 0x08000000 /* 20030209: high quality ac prediction */ + +#define XVID_EXTRASTATS 0x00000200 /* generate extra statistics */ + /* Flags for XVID_ENC_FRAME.motion */ #define PMV_ADVANCEDDIAMOND8 0x00004000 @@ -422,6 +428,9 @@ int quant; /* [out] frame quantizer */ int hlength; /* [out] header length (bytes) */ int kblks, mblks, ublks; /* [out] */ + long sse_y; /* [out] SSE of Y */ + long sse_u; /* [out] SSE of Cb */ + long sse_v; /* [out] SSE of Cr */ } XVID_ENC_STATS;