#ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_
#define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_
#include <windows.h>
#include "base/memory/ref_counted.h"
#include "media/video/capture/video_capture_device.h"
#include "media/video/capture/video_capture_types.h"
#include "media/video/capture/win/filter_base_win.h"
#include "media/video/capture/win/sink_filter_observer_win.h"
extern GUID kMediaSubTypeI420;
namespace media {
class SinkInputPin;
class __declspec(uuid("88cdbbdc-a73b-4afa-acbf-15d5e2ce12c3"))
SinkFilter : public FilterBase {
public:
explicit SinkFilter(SinkFilterObserver* observer);
virtual ~SinkFilter();
void SetRequestedMediaFormat(const VideoCaptureFormat& format);
const VideoCaptureFormat& ResultingFormat();
virtual size_t NoOfPins();
virtual IPin* GetPin(int index);
STDMETHOD(GetClassID)(CLSID* clsid);
private:
scoped_refptr<SinkInputPin> input_pin_;
DISALLOW_IMPLICIT_CONSTRUCTORS(SinkFilter);
};
}
#endif