?? drawyuv.h
字號(hào):
/*
* DrawYUV.h
*
* Draw YUV420P raw
*
* DirectDraw YUV420P project
*
* Copyright (c) 2004-2005 for Cyansoft Studio.
* All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* $Log: DrawYUV.h,v $
* Revision 1.1 2005/01/17 13:43:00 jin.bai
* Initial revision
*
*
*/
#ifndef _DRAW_YUV_INC_
#define _DRAW_YUV_INC_
#ifdef DRAWYUV_EXPORTS
#define DRAWYUV_API __declspec(dllexport)
#else
#define DRAWYUV_API __declspec(dllimport)
#endif
//
// Export functions
//
DRAWYUV_API BOOL DrawYUVCreate(LPVOID *ppControl, LPCTSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent = NULL, BOOL fOverlay = FALSE);
DRAWYUV_API BOOL DrawYUVSetWindowPos(LPVOID pControl, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags);
DRAWYUV_API BOOL DrawYUVDraw(LPVOID pControl, LPBYTE lpBuffer, DWORD dwSize);
DRAWYUV_API BOOL DrawYUVShowWindow(LPVOID pControl, int nCmdShow);
DRAWYUV_API BOOL DrawYUVClose(LPVOID pControl);
DRAWYUV_API BOOL DrawYUVIsClose(LPVOID pControl);
//
// DrawYUV class
//
class DrawYUV
{
public:
DrawYUV();
~DrawYUV();
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent = NULL, BOOL fOverlay = FALSE);
BOOL SetWindowPos(HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags);
BOOL Draw(LPBYTE lpBuffer, DWORD dwSize);
BOOL ShowWindow(int nCmdShow);
BOOL Close();
BOOL IsClose();
protected:
BOOL AreOverlaysSupported();
void memcpy_MMX( void *dest, const void *src, unsigned int nbytes );
private:
DisplayWindow *m_pDisplayWindow;
Converter *m_pConverter;
DWORD m_dwWidth;
DWORD m_dwHeight;
DWORD m_dwBitCount;
// DirectDraw
LPDIRECTDRAW m_lpDD;
LPDIRECTDRAWSURFACE m_lpDDSPrimary;
LPDIRECTDRAWCLIPPER m_lpDDClipper;
LPDIRECTDRAWSURFACE m_lpDDSBack;
LPDIRECTDRAWSURFACE m_lpDDSOverlay;
BOOL m_bClosed;
BOOL m_bIsOverlay;
};
#endif // _DRAW_YUV_INC_
// End of File /////////////////////////////////////////////////////////////////
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -