--- trunk/vfw/src/codec.h 2002/03/23 06:58:56 61 +++ trunk/vfw/src/codec.h 2002/08/18 15:38:23 382 @@ -4,12 +4,11 @@ #include #include #include "config.h" -#include "xvid.h" +#include #define DEBUG(X) // OutputDebugString(X) -#define DEBUG1(X,A) -// { char tmp[120]; wsprintf(tmp, "%s %i", (X), (A)); OutputDebugString(tmp); } +#define DEBUG1(X,A) { char tmp[120]; wsprintf(tmp, "%s %i", (X), (A)); OutputDebugString(tmp); } #define DEBUG2(X,A,B) // { char tmp[120]; wsprintf(tmp, "%s %i %i", (X), (A), (B)); OutputDebugString(tmp); } #define DEBUG3(X,A,B,C) @@ -92,16 +91,21 @@ typedef struct { + HANDLE hints; HANDLE stats1; HANDLE stats2; + void * hintstream; + int bytes1; int bytes2; int desired_bytes2; - float movie_curve; - float credits_start_curve; - float credits_end_curve; + int keyframe_locations[20480]; + int max_framesize; + double movie_curve; + double credits_start_curve; + double credits_end_curve; double average_frame; double curve_comp_scale; @@ -112,7 +116,8 @@ double alt_curve_high_diff; double alt_curve_mid_qual; double alt_curve_qual_dev; - int overflow; + int overflow, KF_idx, KFoverflow, KFoverflow_partial; + int quant_count[32]; NNSTATS nns1; NNSTATS nns2; @@ -156,12 +161,12 @@ LRESULT decompress_end(CODEC *); LRESULT decompress(CODEC *, ICDECOMPRESS *); -int codec_2pass_init(CODEC *); int codec_get_quant(CODEC *, XVID_ENC_FRAME *); -int codec_2pass_get_quant(CODEC *, XVID_ENC_FRAME *); -int codec_2pass_update(CODEC *, XVID_ENC_FRAME *, XVID_ENC_STATS *); int codec_is_in_credits(CONFIG *, int); int codec_get_vbr_quant(CONFIG *, int); +// added by Koepi for greyscale credits +int check_greyscale_mode(CONFIG *, XVID_ENC_FRAME* , int); +// end of koepi's additions #endif /* _CODEC_H_ */ \ No newline at end of file