25 #ifndef INCLUDED_SampleGrabberWrapper_h_GUID_3A2E02D3_5BD5_44B2_E95F_A31FE3B13ED1
26 #define INCLUDED_SampleGrabberWrapper_h_GUID_3A2E02D3_5BD5_44B2_E95F_A31FE3B13ED1
30 #include "comutils/ComPtr.h"
47 MediaSampleExchangePtr
getExchange()
const {
return sampleExchange_; }
50 comutils::Ptr<IBaseFilter>
getFilter() {
return sampleGrabber_; }
60 std::unique_ptr<Impl> impl_;
61 MediaSampleExchangePtr sampleExchange_;
62 comutils::Ptr<IBaseFilter> sampleGrabber_;
63 std::unique_ptr<directx_samplegrabber_callback> callback_;
65 #endif // INCLUDED_SampleGrabberWrapper_h_GUID_3A2E02D3_5BD5_44B2_E95F_A31FE3B13ED1
MediaSampleExchangePtr getExchange() const
Get the producer/consumer object used to consume samples.
void shutdown()
Gets the callback to finish up all its samples.
comutils::Ptr< IBaseFilter > getFilter()
Get the SampleGrabber filter by its IBaseFilter interface.
void getConnectedMediaType(AM_MEDIA_TYPE &mt)
Forwards call on to SampleGrabber.