FrameNotificationSinkListener

The FrameNotificationSinkListener is the interface the FrameNotificationSink uses to notify about frames that were received from the video capture device as well as connect/disconnect operations on the sink.

A simple setup example is shown here:

class listener : public FrameNotificationSinkListener
{
public:
    virtual void sinkConnected( const FrameTypeInfo& frameType ) override   {}
    virtual void sinkDisconnected() override                                {}
    virtual void frameReceived( IFrame& frame ) override
    {
        // do something with frame
    }
};
listener listener_instance;
tFrameNotificationSinkPtr pSink = FrameNotificationSink::create( listener_instance );
grabber.setSinkType( pSink );

A more complex example implementing ZeroCopy is located in %TOPLEVEL%\Samples\VC\ZeroCopyThirdParty

Information

    Header File: tisudshl.h
    Namespace: DShowLib
    Introduced in version 3.5

Methods

Method Description
frameReceived

Notifies the listener that the sink has received a frame.

sinkConnected

Notifies the listener that the sink has connected using the passed in FrameTypeInfo.

sinkDisconnected

Notifies the listener that the sink has disconnected.

<< Classes