⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win.h

📁 视频的h263解码
💻 H
字号:
/************************************************************************ * *  win.h, display routines for Win32 for tmndecode (H.263 decoder) * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * *   ************************************************************************/#ifdef WINDOWS#include <windows.h>#include <process.h>#include <vfw.h>#include <memory.h>typedef struct{  HANDLE hThread;  HANDLE hEvent;  HWND hWnd;  MSG msg;  WNDCLASS wc;  HDRAWDIB hDrawDib;  HDC hDC;  BITMAPINFOHEADER biHeader;  char lpszAppName[15];  DWORD dwThreadID;  BOOL imageIsReady;  unsigned char *bufRGB;  RECT rect;  unsigned char *src[3];  int width, height;  int zoom, oldzoom;  int windowDismissed;	} T_VDWINDOW;#define VIDEO_BEGIN			    (WM_USER + 0)#define VIDEO_DRAW_FRAME	  (WM_USER + 1)#define VIDEO_REDRAW_FRAME	(WM_USER + 2)#define VIDEO_END			      (WM_USER + 3)int initDisplay (int pels, int lines);int displayImage (unsigned char *lum, unsigned char *Cr, unsigned char *Cb);int closeDisplay ();void DisplayWinMain (void *);LONG APIENTRY MainWndProc (HWND, UINT, UINT, LONG);int DrawDIB ();void init_dither_tab();void ConvertYUVtoRGB(//yuv to RGB  unsigned char *src0,  unsigned char *src1,  unsigned char *src2,  unsigned char *dst_ori,  int width,  int height);int InitDisplayWindowThread ();#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -