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 /*******************************/
75 /* CODEC: vfw codec instance
89 /* Compress functions */
90 LRESULT compress_query(CODEC *, BITMAPINFO *, BITMAPINFO *);
91 LRESULT compress_get_format(CODEC *, BITMAPINFO *, BITMAPINFO *);
92 LRESULT compress_get_size(CODEC *, BITMAPINFO *, BITMAPINFO *);
93 LRESULT compress_frames_info(CODEC *, ICCOMPRESSFRAMES *);
94 LRESULT compress_begin(CODEC *, BITMAPINFO *, BITMAPINFO *);
95 LRESULT compress_end(CODEC *);
96 LRESULT compress(CODEC *, ICCOMPRESS *);
99 /* config functions */
100 void config_reg_load( CONFIG * config );
101 void config_reg_save( CONFIG * config );
104 /* Dialog callbacks */
105 BOOL CALLBACK callback_about( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
106 BOOL CALLBACK callback_main ( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
107 BOOL CALLBACK callback_advanced( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
110 extern HINSTANCE g_hInst;
113 #include <stdio.h> /* vsprintf */
114 #define DPRINTF_BUF_SZ 1024
115 static __inline void DPRINTF(char *fmt, ...)
118 char buf[DPRINTF_BUF_SZ];
121 vsprintf(buf, fmt, args);
122 OutputDebugString(buf);
125 static __inline void DPRINTF(char *fmt, ...) { }