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 */
81 /* CODEC: vfw codec instance
95 /* Compress functions */
96 LRESULT compress_query(CODEC *, BITMAPINFO *, BITMAPINFO *);
97 LRESULT compress_get_format(CODEC *, BITMAPINFO *, BITMAPINFO *);
98 LRESULT compress_get_size(CODEC *, BITMAPINFO *, BITMAPINFO *);
99 LRESULT compress_frames_info(CODEC *, ICCOMPRESSFRAMES *);
100 LRESULT compress_begin(CODEC *, BITMAPINFO *, BITMAPINFO *);
101 LRESULT compress_end(CODEC *);
102 LRESULT compress(CODEC *, ICCOMPRESS *);
105 /* config functions */
106 void config_reg_load( CONFIG * config );
107 void config_reg_save( CONFIG * config );
110 /* Dialog callbacks */
111 BOOL CALLBACK callback_about( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
112 BOOL CALLBACK callback_main ( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
113 BOOL CALLBACK callback_advanced( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
116 extern HINSTANCE g_hInst;
119 #include <stdio.h> /* vsprintf */
120 #define DPRINTF_BUF_SZ 1024
121 static __inline void DPRINTF(char *fmt, ...)
124 char buf[DPRINTF_BUF_SZ];
127 vsprintf(buf, fmt, args);
128 OutputDebugString(buf);
131 static __inline void DPRINTF(char *fmt, ...) { }