10 #include <mfreadwrite.h> 54 HRESULT
GetDevicebyID(std::wstring
id, IMFActivate** ppActivate)
const;
57 class Webcam :
public IMFSourceReaderCallback
103 LONGLONG llTimestamp,
117 HRESULT
CreateAggregatedSource(IMFMediaSource* pSource1, IMFMediaSource* pSource2, IMFMediaSource** ppAggSource)
const;
126 HRESULT
NegotiateStreamFormat(DWORD dwStreamIndex, REFGUID guidMajorType, DWORD cFormats,
const GUID** paFormats)
const;
STDMETHODIMP QueryInterface(REFIID iid, void **ppv)
IUnknown methods below can be moved where?
HRESULT NegotiateAudioStreamFormat(DWORD dwStreamIndex) const
IMFMediaSource * pVideoSource
std::string pathAndFileNameA
IMFActivate * pAudioActivate
IMFActivate ** m_ppDevices
IMFActivate * pVideoActivate
HRESULT NegotiateStreamFormat(DWORD dwStreamIndex, REFGUID guidMajorType, DWORD cFormats, const GUID **paFormats) const
HRESULT CreateTargetAudioMediaType(IMFMediaType *pNativeMediaType, IMFMediaType **ppTargetMediaType) const
okay, the portable keyboard numbers don't work like the outside keypad because the outside keypad is ...
HRESULT CreateAggregatedSource(IMFMediaSource *pSource1, IMFMediaSource *pSource2, IMFMediaSource **ppAggSource) const
std::wstring pathAndFileName
HRESULT OpenMediaSource(IMFMediaSource *pSource)
IMFMediaSource * pAudioSource
DeviceList * videoDevices
HRESULT NegotiateVideoStreamFormat(DWORD dwStreamIndex) const
DeviceList(GUID guidDevice)
HRESULT ConfigureCapture()
IMFSourceReader * m_pReader
HRESULT GetDevicebyID(std::wstring id, IMFActivate **ppActivate) const
LONGLONG m_llVideoBaseTime
HRESULT CreateTargetVideoMediaType(IMFMediaType *pNativeMediaType, IMFMediaType **ppTargetMediaType) const
STDMETHODIMP OnReadSample(HRESULT hrStatus, DWORD dwStreamIndex, DWORD dwStreamFlags, LONGLONG llTimestamp, IMFSample *pSample)
HRESULT EnumerateDevices(Logger *logger, WebcamConfig *config)
STDMETHODIMP_(ULONG) AddRef()
LONGLONG m_llAudioBaseTime
STDMETHODIMP OnEvent(DWORD, IMFMediaEvent *)
IMFSinkWriter * m_pWriter
DeviceList * audioDevices
void Initialize(Logger *prmLogger, WebcamConfig *prmConfig, Bus *prmBus)
STDMETHODIMP OnFlush(DWORD)
CRITICAL_SECTION m_critsec