2011-02-27 08:48:19 +00:00
|
|
|
#ifndef __CAPTURE_H__
|
|
|
|
#define __CAPTURE_H__
|
|
|
|
|
2011-08-22 01:44:43 +00:00
|
|
|
#include "gstdecklink.h"
|
2011-07-07 20:44:31 +00:00
|
|
|
|
2011-02-27 08:48:19 +00:00
|
|
|
class DeckLinkCaptureDelegate : public IDeckLinkInputCallback
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DeckLinkCaptureDelegate();
|
|
|
|
~DeckLinkCaptureDelegate();
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; }
|
|
|
|
virtual ULONG STDMETHODCALLTYPE AddRef(void);
|
|
|
|
virtual ULONG STDMETHODCALLTYPE Release(void);
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE VideoInputFormatChanged(BMDVideoInputFormatChangedEvents, IDeckLinkDisplayMode*, BMDDetectedVideoInputFormatFlags);
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE VideoInputFrameArrived(IDeckLinkVideoInputFrame*, IDeckLinkAudioInputPacket*);
|
|
|
|
|
|
|
|
void *priv;
|
|
|
|
|
|
|
|
private:
|
2011-07-07 18:13:00 +00:00
|
|
|
ULONG m_refCount;
|
2013-02-27 23:27:20 +00:00
|
|
|
GMutex m_mutex;
|
2011-02-27 08:48:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|