#include <Webcam.h>
|
STDMETHODIMP | QueryInterface (REFIID iid, void **ppv) |
| IUnknown methods below can be moved where? More...
|
|
| STDMETHODIMP_ (ULONG) AddRef() |
|
| STDMETHODIMP_ (ULONG) Release() |
|
STDMETHODIMP | OnReadSample (HRESULT hrStatus, DWORD dwStreamIndex, DWORD dwStreamFlags, LONGLONG llTimestamp, IMFSample *pSample) |
|
STDMETHODIMP | OnEvent (DWORD, IMFMediaEvent *) |
|
STDMETHODIMP | OnFlush (DWORD) |
|
HRESULT | CreateAggregatedSource (IMFMediaSource *pSource1, IMFMediaSource *pSource2, IMFMediaSource **ppAggSource) const |
|
HRESULT | OpenMediaSource (IMFMediaSource *pSource) |
|
HRESULT | ConfigureCapture () |
|
HRESULT | CreateTargetVideoMediaType (IMFMediaType *pNativeMediaType, IMFMediaType **ppTargetMediaType) const |
|
HRESULT | CreateTargetAudioMediaType (IMFMediaType *pNativeMediaType, IMFMediaType **ppTargetMediaType) const |
|
HRESULT | NegotiateStreamFormat (DWORD dwStreamIndex, REFGUID guidMajorType, DWORD cFormats, const GUID **paFormats) const |
|
HRESULT | NegotiateVideoStreamFormat (DWORD dwStreamIndex) const |
|
HRESULT | NegotiateAudioStreamFormat (DWORD dwStreamIndex) const |
|
BOOL | IsCapturing () |
|
Definition at line 57 of file Webcam.h.
◆ Webcam()
Devices::Webcam::Webcam |
( |
| ) |
|
◆ ~Webcam()
Devices::Webcam::~Webcam |
( |
| ) |
|
|
virtual |
◆ ConfigureCapture()
HRESULT Devices::Webcam::ConfigureCapture |
( |
| ) |
|
|
private |
◆ CreateAggregatedSource()
HRESULT Devices::Webcam::CreateAggregatedSource |
( |
IMFMediaSource * |
pSource1, |
|
|
IMFMediaSource * |
pSource2, |
|
|
IMFMediaSource ** |
ppAggSource |
|
) |
| const |
|
private |
◆ CreateTargetAudioMediaType()
HRESULT Devices::Webcam::CreateTargetAudioMediaType |
( |
IMFMediaType * |
pNativeMediaType, |
|
|
IMFMediaType ** |
ppTargetMediaType |
|
) |
| const |
|
private |
◆ CreateTargetVideoMediaType()
HRESULT Devices::Webcam::CreateTargetVideoMediaType |
( |
IMFMediaType * |
pNativeMediaType, |
|
|
IMFMediaType ** |
ppTargetMediaType |
|
) |
| const |
|
private |
◆ Destroy()
void Devices::Webcam::Destroy |
( |
| ) |
|
◆ FrameMove()
void Devices::Webcam::FrameMove |
( |
| ) |
|
◆ Initialize()
◆ IsCapturing()
BOOL Devices::Webcam::IsCapturing |
( |
| ) |
|
|
private |
◆ NegotiateAudioStreamFormat()
HRESULT Devices::Webcam::NegotiateAudioStreamFormat |
( |
DWORD |
dwStreamIndex | ) |
const |
|
private |
◆ NegotiateStreamFormat()
HRESULT Devices::Webcam::NegotiateStreamFormat |
( |
DWORD |
dwStreamIndex, |
|
|
REFGUID |
guidMajorType, |
|
|
DWORD |
cFormats, |
|
|
const GUID ** |
paFormats |
|
) |
| const |
|
private |
◆ NegotiateVideoStreamFormat()
HRESULT Devices::Webcam::NegotiateVideoStreamFormat |
( |
DWORD |
dwStreamIndex | ) |
const |
|
private |
must have following types for H264
- See also
Definition at line 624 of file Webcam.cpp.
◆ OnEvent()
STDMETHODIMP Devices::Webcam::OnEvent |
( |
DWORD |
, |
|
|
IMFMediaEvent * |
|
|
) |
| |
|
inlineprivate |
◆ OnFlush()
STDMETHODIMP Devices::Webcam::OnFlush |
( |
DWORD |
| ) |
|
|
inlineprivate |
◆ OnReadSample()
HRESULT Devices::Webcam::OnReadSample |
( |
HRESULT |
hrStatus, |
|
|
DWORD |
dwStreamIndex, |
|
|
DWORD |
dwStreamFlags, |
|
|
LONGLONG |
llTimestamp, |
|
|
IMFSample * |
pSample |
|
) |
| |
|
private |
◆ OpenMediaSource()
HRESULT Devices::Webcam::OpenMediaSource |
( |
IMFMediaSource * |
pSource | ) |
|
|
private |
◆ QueryInterface()
HRESULT Devices::Webcam::QueryInterface |
( |
REFIID |
iid, |
|
|
void ** |
ppv |
|
) |
| |
|
private |
IUnknown methods below can be moved where?
Definition at line 47 of file Webcam.cpp.
◆ StartRecord()
void Devices::Webcam::StartRecord |
( |
| ) |
|
I am guessing that we don't have to activate these again?
gets the reader
Definition at line 688 of file Webcam.cpp.
◆ STDMETHODIMP_() [1/2]
Devices::Webcam::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
private |
◆ STDMETHODIMP_() [2/2]
Devices::Webcam::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
private |
◆ StopRecord()
void Devices::Webcam::StopRecord |
( |
| ) |
|
◆ audioDevices
DeviceList* Devices::Webcam::audioDevices = nullptr |
|
private |
◆ bus
Bus* Devices::Webcam::bus = nullptr |
|
private |
◆ config
◆ initialized
bool Devices::Webcam::initialized = false |
|
private |
◆ logger
Logger* Devices::Webcam::logger = nullptr |
|
private |
◆ m_bAudioFirstSample
BOOL Devices::Webcam::m_bAudioFirstSample = false |
|
private |
◆ m_bVideoFirstSample
BOOL Devices::Webcam::m_bVideoFirstSample = false |
|
private |
◆ m_critsec
CRITICAL_SECTION Devices::Webcam::m_critsec |
|
private |
◆ m_llAudioBaseTime
LONGLONG Devices::Webcam::m_llAudioBaseTime = 0 |
|
private |
◆ m_llVideoBaseTime
LONGLONG Devices::Webcam::m_llVideoBaseTime = 0 |
|
private |
◆ m_nRefCount
long Devices::Webcam::m_nRefCount = 0 |
|
private |
◆ m_pReader
IMFSourceReader* Devices::Webcam::m_pReader = nullptr |
|
private |
◆ m_pWriter
IMFSinkWriter* Devices::Webcam::m_pWriter = nullptr |
|
private |
◆ pathAndFileName
std::wstring Devices::Webcam::pathAndFileName |
|
private |
◆ pathAndFileNameA
std::string Devices::Webcam::pathAndFileNameA |
|
private |
◆ pAudioActivate
IMFActivate* Devices::Webcam::pAudioActivate = nullptr |
|
private |
◆ pAudioSource
IMFMediaSource* Devices::Webcam::pAudioSource = nullptr |
|
private |
◆ pSource
IMFMediaSource* Devices::Webcam::pSource = nullptr |
|
private |
◆ pVideoActivate
IMFActivate* Devices::Webcam::pVideoActivate = nullptr |
|
private |
◆ pVideoSource
IMFMediaSource* Devices::Webcam::pVideoSource = nullptr |
|
private |
◆ recordingNumber
int Devices::Webcam::recordingNumber = 0 |
|
private |
◆ sink_audio_stream
DWORD Devices::Webcam::sink_audio_stream = 1 |
|
private |
◆ sink_video_stream
DWORD Devices::Webcam::sink_video_stream = 0 |
|
private |
◆ videoDevices
DeviceList* Devices::Webcam::videoDevices = nullptr |
|
private |
The documentation for this class was generated from the following files: