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 */
82 /* CODEC: vfw codec instance
91 /* error console handle */
99 /* Compress functions */
100 LRESULT compress_query(CODEC *, BITMAPINFO *, BITMAPINFO *);
101 LRESULT compress_get_format(CODEC *, BITMAPINFO *, BITMAPINFO *);
102 LRESULT compress_get_size(CODEC *, BITMAPINFO *, BITMAPINFO *);
103 LRESULT compress_frames_info(CODEC *, ICCOMPRESSFRAMES *);
104 LRESULT compress_begin(CODEC *, BITMAPINFO *, BITMAPINFO *);
105 LRESULT compress_end(CODEC *);
106 LRESULT compress(CODEC *, ICCOMPRESS *);
109 /* config functions */
110 void config_reg_load( CONFIG * config );
111 void config_reg_save( CONFIG * config );
114 /* Dialog callbacks */
115 BOOL CALLBACK callback_about( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
116 BOOL CALLBACK callback_main ( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
117 BOOL CALLBACK callback_advanced( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
118 BOOL CALLBACK callback_err_console( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
121 extern HINSTANCE g_hInst;
124 #include <stdio.h> /* vsprintf */
125 #define DPRINTF_BUF_SZ 1024
126 static __inline void DPRINTF(char *fmt, ...)
129 char buf[DPRINTF_BUF_SZ];
132 vsprintf(buf, fmt, args);
133 OutputDebugString(buf);
136 static __inline void DPRINTF(char *fmt, ...) { }