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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? capture.h

?? audio and video stream driver for windows. Tool: winddk
?? H
字號:
/**************************************************************************

    AVStream Simulated Hardware Sample

    Copyright (c) 2001, Microsoft Corporation.

    File:

        capture.h

    Abstract:

        This file contains header for the video capture pin on the capture
        filter.  The capture sample performs "fake" DMA directly into
        the capture buffers.  Common buffer DMA will work slightly differently.

        For common buffer DMA, the general technique would be DPC schedules
        processing with KsPinAttemptProcessing.  The processing routine grabs
        the leading edge, copies data out of the common buffer and advances.
        Cloning would not be necessary with this technique.  It would be 
        similiar to the way "AVSSamp" works, but it would be pin-centric.

    History:

        created 3/8/2001

**************************************************************************/

//
// STREAM_POINTER_CONTEXT:
//
// This is the context structure we associate with all clone stream pointers.
// It allows the mapping code to rip apart the buffer into chunks the same
// size as the scatter/gather mappings in order to fake scatter / gather
// bus-master DMA.
//
typedef struct _STREAM_POINTER_CONTEXT {
    
    PUCHAR BufferVirtual;

} STREAM_POINTER_CONTEXT, *PSTREAM_POINTER_CONTEXT;

//
// CCapturePin:
//
// The video capture pin class.
//
class CCapturePin :
    public ICaptureSink {

private:

    //
    // The AVStream pin we're associated with.
    //
    PKSPIN m_Pin;

    //
    // Pointer to the internal device object for our capture device.
    // We access the "fake" hardware through this object.
    //
    CCaptureDevice *m_Device;

    //
    // The state we've put the hardware into.  This allows us to keep track
    // of whether to do things like unpausing or restarting.
    //
    HARDWARE_STATE m_HardwareState;

    //
    // The clock we've been assigned.  As with other capture filters, we do
    // not expose a clock.  If one has been assigned, we will use it to
    // time stamp packets (plus a reasonable delta to work the capture stream
    // in a preview graph).
    //
    PIKSREFERENCECLOCK m_Clock;

    //
    // The captured video info header.  The settings for "fake" hardware will be
    // programmed via this video info header.
    //
    PKS_VIDEOINFOHEADER m_VideoInfoHeader;

    //
    // If we are unable to insert all of the mappings in a stream pointer into
    // the "fake" hardware's scatter / gather table, we set this to the
    // stream pointer that's incomplete.  This is done both to make the 
    // relasing easier and to make it easier to fake the scatter / gather
    // hardware.
    //
    PKSSTREAM_POINTER m_PreviousStreamPointer;

    //
    // An indication of whether or not we pended I/O for some reason.  If this
    // is set, the DPC will resume I/O when any mappings are completed.
    //
    BOOLEAN m_PendIo;

    //
    // An indication of whether or not this pin has acquired the necessary
    // hardware resources to operate.  When the pin reaches KSSTATE_ACQUIRE,
    // we attempt to acquire the hardware.  This flag will be set based on
    // our success / failure.
    //
    BOOLEAN m_AcquiredResources;

    //
    // CleanupReferences():
    //
    // Clean up any references we hold on frames in the queue.  This is called
    // when we abruptly stop the fake hardware.
    //
    NTSTATUS
    CleanupReferences (
        );

    //
    // SetState():
    //
    // This is the state transition handler for the capture pin.  It attempts
    // to acquire resources for the capture pin (or releasing them if
    // necessary) and starts and stops the hardware as required.
    //
    NTSTATUS
    SetState (
        IN KSSTATE ToState,
        IN KSSTATE FromState
        );

    //
    // Process():
    //
    // This is the processing dispatch for the capture pin.  It handles
    // programming the scatter / gather tables for the hardware as buffers
    // become available.  This processing routine is designed for a direct
    // into the capture buffers kind of DMA as opposed to common-buffer
    // and copy strategies.
    //
    NTSTATUS
    Process (
        );

    //
    // CaptureVideoInfoHeader():
    //
    // This routine stashes the video info header set on the pin connection
    // in the CCapturePin object.  This is used to base hardware settings.
    //
    PKS_VIDEOINFOHEADER
    CaptureVideoInfoHeader (
        );

    //
    // Cleanup():
    //
    // This is the free callback from the bagged item (CCapturePin).  If we
    // do not provide a callback when we bag the CCapturePin, ExFreePool
    // would be called.  This is not desirable for C++ constructed objects.
    // We merely delete the object here.
    //
    static
    void
    Cleanup (
        IN CCapturePin *Pin
        )
    {
        delete Pin;
    }

public:

    //
    // CCapturePin():
    //
    // The capture pin's constructor.  Initialize any non-0, non-NULL fields
    // (since new will have zero'ed the memory anyway) and set up our
    // device level pointers for access during capture routines.
    //
    CCapturePin (
        IN PKSPIN Pin
        );

    //
    // ~CCapturePin():
    //
    // The capture pin's destructor.
    //
    ~CCapturePin (
        )
    {
    }

    //
    // ICaptureSink::CompleteMappings()
    //
    // This is the capture sink notification mechanism for mapping completion.
    // When the device DPC detects that a given number of mappings have been
    // completed by the fake hardware, it signals the capture sink of this
    // through this method.
    //
    virtual
    void
    CompleteMappings (
        IN ULONG NumMappings
        );

    /*************************************************

        Dispatch Routines

    *************************************************/

    //
    // DispatchCreate():
    //
    // This is the creation dispatch for the capture pin.  It creates
    // the CCapturePin object and associates it with the AVStream object
    // bagging it in the process.
    //
    static
    NTSTATUS
    DispatchCreate (
        IN PKSPIN Pin,
        IN PIRP Irp
        );

    //
    // DispatchSetState():
    //
    // This is the set device state dispatch for the pin.  The routine bridges
    // to SetState() in the context of the CCapturePin.
    //
    static
    NTSTATUS
    DispatchSetState (
        IN PKSPIN Pin,
        IN KSSTATE ToState,
        IN KSSTATE FromState
        )
    {
        return 
            (reinterpret_cast <CCapturePin *> (Pin -> Context)) ->
                SetState (ToState, FromState);
    }

    //
    // DispatchSetFormat():
    //
    // This is the set data format dispatch for the pin.  This will be called
    // BEFORE pin creation to validate that a data format selected is a match
    // for the range pulled out of our range list.  It will also be called
    // for format changes.
    //
    // If OldFormat is NULL, this is an indication that it's the initial
    // call and not a format change.  Even fixed format pins get this call
    // once.
    //
    static
    NTSTATUS
    DispatchSetFormat (
        IN PKSPIN Pin,
        IN PKSDATAFORMAT OldFormat OPTIONAL,
        IN PKSMULTIPLE_ITEM OldAttributeList OPTIONAL,
        IN const KSDATARANGE *DataRange,
        IN const KSATTRIBUTE_LIST *AttributeRange OPTIONAL
        );

    //
    // DispatchProcess():
    //
    // This is the processing dispatch for the capture pin.  The routine 
    // bridges to Process() in the context of the CCapturePin.
    //
    static 
    NTSTATUS
    DispatchProcess (
        IN PKSPIN Pin
        )
    {
        return 
            (reinterpret_cast <CCapturePin *> (Pin -> Context)) ->
                Process ();
    }

    //
    // IntersectHandler():
    //
    // This is the data intersection handler for the capture pin.  This 
    // determines an optimal format in the intersection of two ranges,
    // one local and one possibly foreign.  If there is no compatible format,
    // STATUS_NO_MATCH is returned.
    //
    static
    NTSTATUS
    IntersectHandler (
        IN PKSFILTER Filter,
        IN PIRP Irp,
        IN PKSP_PIN PinInstance,
        IN PKSDATARANGE CallerDataRange,
        IN PKSDATARANGE DescriptorDataRange,
        IN ULONG BufferSize,
        OUT PVOID Data OPTIONAL,
        OUT PULONG DataSize
        );

};

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区三区高清| 久久久精品一品道一区| 国产三级一区二区三区| 日精品一区二区| 欧美日韩国产一二三| 国产精品无人区| 国产成人免费视频网站 | 国产乱码精品一区二区三区av| 99国产精品久| 一区二区三区在线视频免费 | 成人精品小蝌蚪| 中文一区一区三区高中清不卡| 精品亚洲国内自在自线福利| 日韩一区二区精品在线观看| 午夜精品在线看| 久久综合狠狠综合久久激情 | 久久久www成人免费毛片麻豆| 麻豆中文一区二区| 国产色91在线| 91在线视频免费观看| 亚洲一区二区三区四区在线观看| 色综合中文字幕国产| 亚洲欧美日韩国产中文在线| 欧美主播一区二区三区| 免费成人在线视频观看| 欧美xxxx在线观看| 91在线视频免费观看| 五月婷婷另类国产| 国产欧美日韩在线观看| 91成人免费在线视频| 精品国产sm最大网站免费看| 亚洲精品一二三区| 欧美精品99久久久**| 国产a久久麻豆| 性感美女久久精品| 国产精品美女久久久久久2018| 色先锋久久av资源部| 国内成+人亚洲+欧美+综合在线| 国产精品久久久久久一区二区三区| 欧美亚洲一区二区在线观看| 久久精品国产精品亚洲综合| 亚洲日本在线看| 亚洲精品一区二区三区四区高清| 色诱视频网站一区| 懂色av一区二区三区免费看| 日韩不卡一二三区| 亚洲国产日韩a在线播放性色| 精品噜噜噜噜久久久久久久久试看 | 4hu四虎永久在线影院成人| 成人黄色免费短视频| 精品一区二区国语对白| 日本视频在线一区| 亚洲成人自拍网| 亚欧色一区w666天堂| 亚洲激情一二三区| 一区二区三区日韩精品| 中文字幕日韩av资源站| 中文字幕二三区不卡| 久久久久久久久97黄色工厂| 精品国产123| 国产日韩欧美制服另类| 久久九九久久九九| 欧美国产日韩a欧美在线观看| 国产精品毛片大码女人| 一区二区三区在线播放| 亚洲国产精品一区二区www在线| 一区二区三区在线影院| 亚洲国产日韩在线一区模特| 秋霞av亚洲一区二区三| 麻豆一区二区三| proumb性欧美在线观看| 欧日韩精品视频| 136国产福利精品导航| 国产精品久久久久精k8| 亚洲精品成人天堂一二三| 日韩高清在线电影| 国产激情一区二区三区| 欧美性猛交一区二区三区精品| 5566中文字幕一区二区电影| 国产目拍亚洲精品99久久精品| 成人免费一区二区三区在线观看| 青娱乐精品视频| 91免费看`日韩一区二区| 欧美精品三级在线观看| 亚洲国产精品t66y| 天天爽夜夜爽夜夜爽精品视频| 国产在线国偷精品免费看| 色综合欧美在线视频区| 成人午夜激情视频| 欧美男同性恋视频网站| 久久亚洲一区二区三区四区| 一区二区免费在线播放| 国产在线精品不卡| 欧美精品久久一区二区三区| www精品美女久久久tv| 欧美裸体一区二区三区| 91精品国产综合久久久久久久久久| 久久久精品一品道一区| 三级一区在线视频先锋| 9久草视频在线视频精品| 在线播放中文字幕一区| 亚洲美女偷拍久久| 国产成人亚洲综合色影视 | 欧美一区永久视频免费观看| 久久综合色婷婷| 日韩黄色免费网站| 欧美少妇一区二区| 亚洲天堂a在线| 91亚洲男人天堂| 国产精品乱人伦一区二区| 图片区小说区区亚洲影院| 91在线国内视频| 国产亚洲一区字幕| 国产精品一级黄| 亚洲国产一二三| 麻豆精品国产91久久久久久| 精品污污网站免费看| 亚洲女人****多毛耸耸8| 一区二区三区在线视频免费| 97aⅴ精品视频一二三区| 中文字幕在线观看一区| 99久久综合色| 一区二区三区欧美在线观看| 91亚洲精品乱码久久久久久蜜桃| 亚洲欧美日韩在线不卡| 色哟哟日韩精品| 日本美女视频一区二区| 久久综合九色欧美综合狠狠 | 久久亚洲精品小早川怜子| 国产毛片精品国产一区二区三区| 精品国产乱码91久久久久久网站| 国产麻豆精品theporn| 国产女同性恋一区二区| 欧美色视频在线观看| 久久99久久精品欧美| 亚洲免费观看高清完整版在线观看| 欧美日韩中文字幕精品| 国产91露脸合集magnet| 亚洲伦在线观看| 欧美本精品男人aⅴ天堂| 一本色道a无线码一区v| 蜜桃一区二区三区在线观看| 中文一区一区三区高中清不卡| 欧美男生操女生| 91在线看国产| 成人免费av在线| 奇米精品一区二区三区四区 | 欧美调教femdomvk| jlzzjlzz欧美大全| 国产激情视频一区二区三区欧美| 亚洲电影欧美电影有声小说| 国产精品国产三级国产aⅴ无密码| 91精品国产一区二区三区香蕉| 99久久精品免费精品国产| 国内精品免费在线观看| 琪琪久久久久日韩精品| 日韩专区中文字幕一区二区| 亚洲三级小视频| 亚洲欧美激情一区二区| 国产日韩欧美麻豆| 久久精品人人做人人综合 | 丁香一区二区三区| 国产精品综合久久| 国产凹凸在线观看一区二区| 韩国成人精品a∨在线观看| 国产精品第五页| 51精品国自产在线| 欧美综合天天夜夜久久| 欧洲人成人精品| 51精品秘密在线观看| 精品嫩草影院久久| 国产亚洲欧美在线| 中文字幕亚洲一区二区va在线| 国产精品丝袜黑色高跟| 亚洲色图色小说| 香蕉久久夜色精品国产使用方法 | 国产不卡在线视频| 91视频免费播放| av在线综合网| 91精品国产综合久久久久| 日韩亚洲电影在线| 久久久久国产成人精品亚洲午夜| 国产午夜精品久久久久久免费视 | 日韩美女精品在线| 天堂av在线一区| 国产九色sp调教91| 欧美三片在线视频观看 | 青青草97国产精品免费观看无弹窗版 | 成人精品一区二区三区四区| 99re这里都是精品| 欧美电影免费观看高清完整版| 欧美videossexotv100| 亚洲欧美国产高清| 成人黄色777网| 91精品国产日韩91久久久久久| 国产精品久久久爽爽爽麻豆色哟哟 | 欧美在线你懂得| 欧美激情中文不卡| 国内精品不卡在线| 91精彩视频在线观看|