mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
126df5a0c2
Compiles, not tested yet. A great number of superfluous custom pad functions may have been harmed in the making of this port.
25 lines
768 B
C++
25 lines
768 B
C++
#ifndef __CAPTURE_H__
|
|
#define __CAPTURE_H__
|
|
|
|
#include "gstdecklink.h"
|
|
|
|
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:
|
|
ULONG m_refCount;
|
|
GMutex m_mutex;
|
|
};
|
|
|
|
#endif
|