亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winctrl.h

?? 用DirectX制作高級動畫-[Advanced.Animation.with.DirectX]
?? H
字號:
//------------------------------------------------------------------------------
// File: WinCtrl.h
//
// Desc: DirectShow base classes - defines classes for video control 
//       interfaces.
//
// Copyright (c) 1992-2002 Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------------------------


#ifndef __WINCTRL__
#define __WINCTRL__

#define ABSOL(x) (x < 0 ? -x : x)
#define NEGAT(x) (x > 0 ? -x : x)

//  Helper
BOOL WINAPI PossiblyEatMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

class CBaseControlWindow : public CBaseVideoWindow, public CBaseWindow
{
protected:

    CBaseFilter *m_pFilter;            // Pointer to owning media filter
    CBasePin *m_pPin;                  // Controls media types for connection
    CCritSec *m_pInterfaceLock;        // Externally defined critical section
    COLORREF m_BorderColour;           // Current window border colour
    BOOL m_bAutoShow;                  // What happens when the state changes
    HWND m_hwndOwner;                  // Owner window that we optionally have
    HWND m_hwndDrain;                  // HWND to post any messages received
    BOOL m_bCursorHidden;              // Should we hide the window cursor

public:

    // Internal methods for other objects to get information out

    HRESULT DoSetWindowStyle(long Style,long WindowLong);
    HRESULT DoGetWindowStyle(long *pStyle,long WindowLong);
    BOOL IsAutoShowEnabled() { return m_bAutoShow; };
    COLORREF GetBorderColour() { return m_BorderColour; };
    HWND GetOwnerWindow() { return m_hwndOwner; };
    BOOL IsCursorHidden() { return m_bCursorHidden; };

    inline BOOL PossiblyEatMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
    {
        return ::PossiblyEatMessage(m_hwndDrain, uMsg, wParam, lParam);
    }

    // Derived classes must call this to set the pin the filter is using
    // We don't have the pin passed in to the constructor (as we do with
    // the CBaseFilter object) because filters typically create the
    // pins dynamically when requested in CBaseFilter::GetPin. This can
    // not be called from our constructor because is is a virtual method

    void SetControlWindowPin(CBasePin *pPin) {
        m_pPin = pPin;
    }

public:

    CBaseControlWindow(CBaseFilter *pFilter,   // Owning media filter
                       CCritSec *pInterfaceLock,    // Locking object
                       TCHAR *pName,                // Object description
                       LPUNKNOWN pUnk,              // Normal COM ownership
                       HRESULT *phr);               // OLE return code

    // These are the properties we support

    STDMETHODIMP put_Caption(BSTR strCaption);
    STDMETHODIMP get_Caption(BSTR *pstrCaption);
    STDMETHODIMP put_AutoShow(long AutoShow);
    STDMETHODIMP get_AutoShow(long *AutoShow);
    STDMETHODIMP put_WindowStyle(long WindowStyle);
    STDMETHODIMP get_WindowStyle(long *pWindowStyle);
    STDMETHODIMP put_WindowStyleEx(long WindowStyleEx);
    STDMETHODIMP get_WindowStyleEx(long *pWindowStyleEx);
    STDMETHODIMP put_WindowState(long WindowState);
    STDMETHODIMP get_WindowState(long *pWindowState);
    STDMETHODIMP put_BackgroundPalette(long BackgroundPalette);
    STDMETHODIMP get_BackgroundPalette(long *pBackgroundPalette);
    STDMETHODIMP put_Visible(long Visible);
    STDMETHODIMP get_Visible(long *pVisible);
    STDMETHODIMP put_Left(long Left);
    STDMETHODIMP get_Left(long *pLeft);
    STDMETHODIMP put_Width(long Width);
    STDMETHODIMP get_Width(long *pWidth);
    STDMETHODIMP put_Top(long Top);
    STDMETHODIMP get_Top(long *pTop);
    STDMETHODIMP put_Height(long Height);
    STDMETHODIMP get_Height(long *pHeight);
    STDMETHODIMP put_Owner(OAHWND Owner);
    STDMETHODIMP get_Owner(OAHWND *Owner);
    STDMETHODIMP put_MessageDrain(OAHWND Drain);
    STDMETHODIMP get_MessageDrain(OAHWND *Drain);
    STDMETHODIMP get_BorderColor(long *Color);
    STDMETHODIMP put_BorderColor(long Color);
    STDMETHODIMP get_FullScreenMode(long *FullScreenMode);
    STDMETHODIMP put_FullScreenMode(long FullScreenMode);

    // And these are the methods

    STDMETHODIMP SetWindowForeground(long Focus);
    STDMETHODIMP NotifyOwnerMessage(OAHWND hwnd,long uMsg,LONG_PTR wParam,LONG_PTR lParam);
    STDMETHODIMP GetMinIdealImageSize(long *pWidth,long *pHeight);
    STDMETHODIMP GetMaxIdealImageSize(long *pWidth,long *pHeight);
    STDMETHODIMP SetWindowPosition(long Left,long Top,long Width,long Height);
    STDMETHODIMP GetWindowPosition(long *pLeft,long *pTop,long *pWidth,long *pHeight);
    STDMETHODIMP GetRestorePosition(long *pLeft,long *pTop,long *pWidth,long *pHeight);
	STDMETHODIMP HideCursor(long HideCursor);
    STDMETHODIMP IsCursorHidden(long *CursorHidden);
};

// This class implements the IBasicVideo interface

class CBaseControlVideo : public CBaseBasicVideo
{
protected:

    CBaseFilter *m_pFilter;   // Pointer to owning media filter
    CBasePin *m_pPin;                   // Controls media types for connection
    CCritSec *m_pInterfaceLock;         // Externally defined critical section

public:

    // Derived classes must provide these for the implementation

    virtual HRESULT IsDefaultTargetRect() PURE;
    virtual HRESULT SetDefaultTargetRect() PURE;
    virtual HRESULT SetTargetRect(RECT *pTargetRect) PURE;
    virtual HRESULT GetTargetRect(RECT *pTargetRect) PURE;
    virtual HRESULT IsDefaultSourceRect() PURE;
    virtual HRESULT SetDefaultSourceRect() PURE;
    virtual HRESULT SetSourceRect(RECT *pSourceRect) PURE;
    virtual HRESULT GetSourceRect(RECT *pSourceRect) PURE;
    virtual HRESULT GetStaticImage(long *pBufferSize,long *pDIBImage) PURE;

    // Derived classes must override this to return a VIDEOINFO representing
    // the video format. We cannot call IPin ConnectionMediaType to get this
    // format because various filters dynamically change the type when using
    // DirectDraw such that the format shows the position of the logical
    // bitmap in a frame buffer surface, so the size might be returned as
    // 1024x768 pixels instead of 320x240 which is the real video dimensions

    virtual VIDEOINFOHEADER *GetVideoFormat() PURE;

    // Helper functions for creating memory renderings of a DIB image

    HRESULT GetImageSize(VIDEOINFOHEADER *pVideoInfo,
                         LONG *pBufferSize,
                         RECT *pSourceRect);

    HRESULT CopyImage(IMediaSample *pMediaSample,
                      VIDEOINFOHEADER *pVideoInfo,
                      LONG *pBufferSize,
                      BYTE *pVideoImage,
                      RECT *pSourceRect);

    // Override this if you want notifying when the rectangles change
    virtual HRESULT OnUpdateRectangles() { return NOERROR; };
    virtual HRESULT OnVideoSizeChange();

    // Derived classes must call this to set the pin the filter is using
    // We don't have the pin passed in to the constructor (as we do with
    // the CBaseFilter object) because filters typically create the
    // pins dynamically when requested in CBaseFilter::GetPin. This can
    // not be called from our constructor because is is a virtual method

    void SetControlVideoPin(CBasePin *pPin) {
        m_pPin = pPin;
    }

    // Helper methods for checking rectangles
    virtual HRESULT CheckSourceRect(RECT *pSourceRect);
    virtual HRESULT CheckTargetRect(RECT *pTargetRect);

public:

    CBaseControlVideo(CBaseFilter *pFilter,    // Owning media filter
                      CCritSec *pInterfaceLock,     // Serialise interface
                      TCHAR *pName,                 // Object description
                      LPUNKNOWN pUnk,               // Normal COM ownership
                      HRESULT *phr);                // OLE return code

    // These are the properties we support

    STDMETHODIMP get_AvgTimePerFrame(REFTIME *pAvgTimePerFrame);
    STDMETHODIMP get_BitRate(long *pBitRate);
    STDMETHODIMP get_BitErrorRate(long *pBitErrorRate);
    STDMETHODIMP get_VideoWidth(long *pVideoWidth);
    STDMETHODIMP get_VideoHeight(long *pVideoHeight);
    STDMETHODIMP put_SourceLeft(long SourceLeft);
    STDMETHODIMP get_SourceLeft(long *pSourceLeft);
    STDMETHODIMP put_SourceWidth(long SourceWidth);
    STDMETHODIMP get_SourceWidth(long *pSourceWidth);
    STDMETHODIMP put_SourceTop(long SourceTop);
    STDMETHODIMP get_SourceTop(long *pSourceTop);
    STDMETHODIMP put_SourceHeight(long SourceHeight);
    STDMETHODIMP get_SourceHeight(long *pSourceHeight);
    STDMETHODIMP put_DestinationLeft(long DestinationLeft);
    STDMETHODIMP get_DestinationLeft(long *pDestinationLeft);
    STDMETHODIMP put_DestinationWidth(long DestinationWidth);
    STDMETHODIMP get_DestinationWidth(long *pDestinationWidth);
    STDMETHODIMP put_DestinationTop(long DestinationTop);
    STDMETHODIMP get_DestinationTop(long *pDestinationTop);
    STDMETHODIMP put_DestinationHeight(long DestinationHeight);
    STDMETHODIMP get_DestinationHeight(long *pDestinationHeight);

    // And these are the methods

    STDMETHODIMP GetVideoSize(long *pWidth,long *pHeight);
    STDMETHODIMP SetSourcePosition(long Left,long Top,long Width,long Height);
    STDMETHODIMP GetSourcePosition(long *pLeft,long *pTop,long *pWidth,long *pHeight);
    STDMETHODIMP GetVideoPaletteEntries(long StartIndex,long Entries,long *pRetrieved,long *pPalette);
    STDMETHODIMP SetDefaultSourcePosition();
    STDMETHODIMP IsUsingDefaultSource();
    STDMETHODIMP SetDestinationPosition(long Left,long Top,long Width,long Height);
    STDMETHODIMP GetDestinationPosition(long *pLeft,long *pTop,long *pWidth,long *pHeight);
    STDMETHODIMP SetDefaultDestinationPosition();
    STDMETHODIMP IsUsingDefaultDestination();
    STDMETHODIMP GetCurrentImage(long *pBufferSize,long *pVideoImage);
};

#endif // __WINCTRL__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
七七婷婷婷婷精品国产| 亚洲女同一区二区| 欧美系列一区二区| 成人黄色电影在线| 免费国产亚洲视频| 婷婷六月综合亚洲| 亚洲国产综合人成综合网站| 中文字幕在线观看不卡视频| 欧美精品一区二区三区视频| 欧美精品乱人伦久久久久久| 欧美午夜一区二区| 97se亚洲国产综合自在线| 国产成人午夜视频| 国产精品1区二区.| 日韩va欧美va亚洲va久久| 亚洲成人av中文| 亚洲一本大道在线| 亚洲成人资源在线| 亚洲成人久久影院| 午夜天堂影视香蕉久久| 亚洲国产综合色| 夜夜嗨av一区二区三区网页| 亚洲日本在线天堂| 亚洲国产视频网站| 午夜亚洲福利老司机| 五月激情综合色| 免费成人性网站| 国产原创一区二区三区| 高清beeg欧美| 91美女在线视频| 欧美色图激情小说| 欧美日韩国产在线观看| 欧美顶级少妇做爰| 久久精品视频一区| 国产精品网站在线观看| 一区二区三区国产精华| 首页欧美精品中文字幕| 免费一级欧美片在线观看| 日本免费新一区视频| 久久精品99久久久| 成人av电影在线| 在线欧美小视频| 日韩一级黄色片| 国产精品久久久久久久久动漫| 亚洲图片欧美激情| 亚洲黄色av一区| 久久精品99久久久| 91麻豆国产在线观看| 欧美精品tushy高清| 久久久噜噜噜久噜久久综合| 亚洲色图欧美在线| 日韩精品亚洲一区二区三区免费| 日本aⅴ免费视频一区二区三区| 成人精品免费看| 精品久久久久久亚洲综合网| 性欧美疯狂xxxxbbbb| 色一情一乱一乱一91av| 久久精品网站免费观看| 精品一区二区日韩| 日韩午夜电影av| 天堂一区二区在线免费观看| 色综合天天视频在线观看 | 国产精品久久夜| 久久精品国产一区二区三区免费看| 91香蕉视频在线| 国产精品欧美久久久久一区二区| 国产一区二区在线看| 精品日韩一区二区三区免费视频| 午夜精品一区二区三区免费视频 | www.激情成人| 国产欧美一区二区精品婷婷| 韩国v欧美v亚洲v日本v| 欧美大片在线观看| 精油按摩中文字幕久久| 日韩精品一区二区三区在线观看| 三级在线观看一区二区| 5858s免费视频成人| 亚洲1区2区3区视频| 欧美日韩国产不卡| 日韩1区2区3区| 精品久久久久久最新网址| 青青国产91久久久久久| 欧美va在线播放| 国产在线播放一区二区三区| 国产欧美日产一区| 91丨九色porny丨蝌蚪| 亚洲你懂的在线视频| 欧美日韩成人综合| 免费的成人av| 欧美国产视频在线| 99精品欧美一区二区三区综合在线| 亚洲婷婷国产精品电影人久久| 色悠久久久久综合欧美99| 亚洲国产三级在线| 欧美成人一区二区三区在线观看| 国产精品一二三区| 一区二区在线观看av| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲国产一区视频| 91精品国产aⅴ一区二区| 九九视频精品免费| 国产精品免费av| 欧美日韩一二区| 国产毛片精品视频| 亚洲激情校园春色| 精品捆绑美女sm三区| 91亚洲男人天堂| 免费成人在线播放| 亚洲品质自拍视频| 欧美videos大乳护士334| 91天堂素人约啪| 日韩成人免费电影| 国产精品久久久久久久岛一牛影视| 欧美在线播放高清精品| 国产乱码精品一区二区三| 一区二区三区日本| 国产亚洲视频系列| 欧美群妇大交群中文字幕| 成人午夜在线播放| 美女视频一区在线观看| 亚洲综合一区在线| 国产女同性恋一区二区| 在线成人免费观看| 一本一本久久a久久精品综合麻豆| 裸体歌舞表演一区二区| 夜夜夜精品看看| 国产精品私人影院| 精品国产乱码久久久久久夜甘婷婷| 欧美做爰猛烈大尺度电影无法无天| 精品亚洲免费视频| 日韩精品国产精品| 亚洲综合成人在线视频| 国产精品超碰97尤物18| www久久精品| 日韩一区二区电影网| 欧美日韩一卡二卡| 色婷婷精品大视频在线蜜桃视频| 国产精品69久久久久水密桃 | 欧美精品v国产精品v日韩精品 | 欧美一区二区在线播放| 欧洲一区二区三区在线| 91论坛在线播放| 丁香另类激情小说| 国产精一品亚洲二区在线视频| 麻豆精品在线播放| 青青草原综合久久大伊人精品优势| 亚洲自拍偷拍欧美| 一区二区三区不卡在线观看| 亚洲欧洲国产日韩| 亚洲人妖av一区二区| 中文字幕一区二区三区不卡在线 | 午夜精品福利在线| 舔着乳尖日韩一区| 亚洲成人黄色影院| 日韩激情一二三区| 免费观看在线色综合| 美女一区二区三区| 韩国三级中文字幕hd久久精品| 久久成人久久鬼色| 国产精品69久久久久水密桃 | 国产精品免费久久久久| 日韩美女视频19| 亚洲妇女屁股眼交7| 亚洲成a人片在线不卡一二三区| 亚洲小说春色综合另类电影| 丝袜亚洲精品中文字幕一区| 日韩精品久久久久久| 精品在线一区二区三区| 国产在线观看一区二区| 99精品1区2区| 欧美日韩国产成人在线免费| 欧美本精品男人aⅴ天堂| 国产欧美日本一区视频| 亚洲精品大片www| 天天做天天摸天天爽国产一区| 久久99精品国产.久久久久| 国产成人av一区二区三区在线| 99久久精品国产导航| 欧美日韩一本到| 国产日韩欧美精品综合| 亚洲精品久久久久久国产精华液| 日韩中文字幕亚洲一区二区va在线| 久久99精品一区二区三区| eeuss鲁片一区二区三区在线看| 欧美无乱码久久久免费午夜一区| 日韩欧美在线一区二区三区| 国产精品久久久久久久午夜片| 一区二区三区成人| 国产一区二区视频在线| 在线观看不卡一区| 国产亚洲福利社区一区| 亚洲成a人片在线不卡一二三区| 国产九色sp调教91| 欧美日韩国产综合久久 | 亚洲一区二区三区小说| 国产在线一区二区| 欧美亚洲一区三区| 国产精品理伦片| 久久av老司机精品网站导航| 在线观看日韩精品|