mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-07 00:20:43 +08:00
添加视频压缩代码
This commit is contained in:
26
others/C/video_compression/src/main.c
Normal file
26
others/C/video_compression/src/main.c
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <windows.h>
|
||||
#include "video_compressor.h"
|
||||
#include "gui.h"
|
||||
|
||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
// 抑制未使用参数警告
|
||||
(void)hPrevInstance;
|
||||
(void)lpCmdLine;
|
||||
(void)nCmdShow;
|
||||
|
||||
// 初始化GUI
|
||||
if (!init_gui(hInstance)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 主消息循环
|
||||
MSG msg;
|
||||
while (GetMessage(&msg, NULL, 0, 0)) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
||||
return (int)msg.wParam;
|
||||
}
|
||||
Reference in New Issue
Block a user