头文件:
#pragma once
#include "ddraw.h"
#include <time.h>
#pragma comment (lib, "ddraw.lib")
#pragma comment(lib, "dxguid.lib")
class display
{
public:
display(void);
public:
~display(void);
public:
unsigned __int64 init(HWND hwnd);
void uninit();
unsigned __int64 inputsource(unsigned char * src, long nwidth, long nheight, long ntype, long nrate, unsigned __int64 npts);
static BOOL WINAPI DDEnumCallBack( GUID *pguid, LPTSTR pszdesc, LPTSTR pszdevicename, LPVOID pcontext, HMONITOR hmonior );
unsigned __int64 createoffscreen(LPDIRECTDRAWSURFACE7 * offscreen, DDSURFACEDESC2 * ddsd, long nwidth, long nheight, long ntype);
unsigned __int64 createddsd(DDSURFACEDESC2 * ddsd, long nwidth, long nheight, long ntype);
unsigned __int64 wait_ctrl(unsigned __i