16
#define X264_NAME_L L"x264"
17
#define X264_DESC_L L"x264 - H264/AVC encoder"
20
#define FOURCC_X264 mmioFOURCC('X','2','6','4')
22
/* yuv 4:2:0 planar */
23
#define FOURCC_I420 mmioFOURCC('I','4','2','0')
24
#define FOURCC_IYUV mmioFOURCC('I','Y','U','V')
25
#define FOURCC_YV12 mmioFOURCC('Y','V','1','2')
27
/* yuv 4:2:2 packed */
28
#define FOURCC_YUY2 mmioFOURCC('Y','U','Y','2')
29
#define FOURCC_YUYV mmioFOURCC('Y','U','Y','V')
31
#define X264_WEBSITE "http://videolan.org/x264.html"
37
/********** ATTENTION **********/
38
int mode; /* Vidomi directly accesses these vars */
40
int desired_size; /* please try to avoid modifications here */
42
/*******************************/
46
int b_fast1pass; /* turns off some flags during 1st pass */
47
int b_updatestats; /* updates the statsfile during 2nd pass */
55
int i_scenecut_threshold;
87
int b_bframe_adaptive;
105
/* CODEC: vfw codec instance
114
/* error console handle */
122
/* Compress functions */
123
LRESULT compress_query(CODEC *, BITMAPINFO *, BITMAPINFO *);
124
LRESULT compress_get_format(CODEC *, BITMAPINFO *, BITMAPINFO *);
125
LRESULT compress_get_size(CODEC *, BITMAPINFO *, BITMAPINFO *);
126
LRESULT compress_frames_info(CODEC *, ICCOMPRESSFRAMES *);
127
LRESULT compress_begin(CODEC *, BITMAPINFO *, BITMAPINFO *);
128
LRESULT compress_end(CODEC *);
129
LRESULT compress(CODEC *, ICCOMPRESS *);
132
/* config functions */
133
void config_reg_load( CONFIG * config );
134
void config_reg_save( CONFIG * config );
135
static void tabs_enable_items( HWND hDlg, CONFIG * config );
136
static void tabs_update_items( HWND hDlg, CONFIG * config );
138
/* Dialog callbacks */
139
BOOL CALLBACK callback_main ( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
140
BOOL CALLBACK callback_tabs( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
141
BOOL CALLBACK callback_about( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
142
BOOL CALLBACK callback_err_console( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
145
extern HINSTANCE g_hInst;
148
#include <stdio.h> /* vsprintf */
149
#define DPRINTF_BUF_SZ 1024
150
static __inline void DPRINTF(char *fmt, ...)
153
char buf[DPRINTF_BUF_SZ];
156
vsprintf(buf, fmt, args);
157
OutputDebugString(buf);
160
static __inline void DPRINTF(char *fmt, ...) { }