27 |
|
|
28 |
#define DEBUGERR(X) OutputDebugString(X) |
#define DEBUGERR(X) OutputDebugString(X) |
29 |
#define DEBUG2P(X) OutputDebugString(X) |
#define DEBUG2P(X) OutputDebugString(X) |
30 |
#define DEBUG1ST(A,B,C,D,E,F,G) { char tmp[120]; wsprintf(tmp, "1st-pass: size:%d total-kbytes:%d %s quant:%d %s kblocks:%d mblocks:%d", (A), (B), (C) ? "intra" : "inter", (D), (E), (F), (G)); OutputDebugString(tmp); } |
#define DEBUG1ST(A,B,C,D,E,F,G) { char tmp[140]; wsprintf(tmp, "1st-pass: size:%d total-kbytes:%d %s quant:%d %s kblocks:%d mblocks:%d", (A), (B), (C), (D), (E), (F), (G)); OutputDebugString(tmp); } |
31 |
#define DEBUG2ND(A,B,C,D,E,F,G,H) { char tmp[120]; wsprintf(tmp, "2nd-pass: quant:%d %s %s stats1:%d scaled:%d actual:%d overflow:%d %s", (A), (B), (C) ? "intra" : "inter", (D), (E), (F), (G), (H) ? "credits" : "movie"); OutputDebugString(tmp); } |
#define DEBUG2ND(A,B,C,D,E,F,G,H) { char tmp[140]; wsprintf(tmp, "2nd-pass: quant:%d %s %s stats1:%d scaled:%d actual:%d overflow:%d %s", (A), (B), (C), (D), (E), (F), (G), (H) ? "credits" : "movie"); OutputDebugString(tmp); } |
32 |
|
|
33 |
|
|
34 |
#define FOURCC_XVID mmioFOURCC('X','V','I','D') |
#define FOURCC_XVID mmioFOURCC('X','V','I','D') |
61 |
|
|
62 |
|
|
63 |
#define NNSTATS_KEYFRAME (1<<31) |
#define NNSTATS_KEYFRAME (1<<31) |
64 |
|
#define NNSTATS_BFRAME (1<<30) |
65 |
|
#define NNSTATS_SKIPFRAME (1<<29) |
66 |
|
#define NNSTATS_PADFRAME (1<<28) |
67 |
|
#define NNSTATS_DELAYFRAME (1<<27) |
68 |
|
|
69 |
typedef struct |
typedef struct |
70 |
{ |
{ |
112 |
|
|
113 |
int keyframe_locations[20480]; |
int keyframe_locations[20480]; |
114 |
int max_framesize; |
int max_framesize; |
115 |
int minpsize, minisize; |
int minbsize, minpsize, minisize; |
116 |
double movie_curve; |
double movie_curve; |
117 |
double credits_start_curve; |
double credits_start_curve; |
118 |
double credits_end_curve; |
double credits_end_curve; |
119 |
|
|
120 |
double average_frame; |
double average_pframe; |
121 |
|
double average_bframe; |
122 |
double curve_comp_scale; |
double curve_comp_scale; |
123 |
double curve_bias_bonus; |
double curve_bias_bonus; |
124 |
double alt_curve_low; |
double alt_curve_low; |
132 |
|
|
133 |
NNSTATS nns1; |
NNSTATS nns1; |
134 |
NNSTATS nns2; |
NNSTATS nns2; |
135 |
|
|
136 |
|
NNSTATS* nns1_array; |
137 |
|
NNSTATS* nns2_array; |
138 |
|
int nns_array_size; |
139 |
|
int nns_array_length; |
140 |
|
int nns_array_pos; |
141 |
} TWOPASS; |
} TWOPASS; |
142 |
|
|
143 |
|
|