- add sources.
[platform/framework/web/crosswalk.git] / src / media / video / capture / win / sink_filter_observer_win.h
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Observer class of Sinkfilter. The implementor of this class receive video
6 // frames from the SinkFilter DirectShow filter.
7
8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_
9 #define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_
10
11 namespace media {
12
13 class SinkFilterObserver {
14  public:
15   // SinkFilter will call this function with all frames delivered to it.
16   // buffer in only valid during this function call.
17   virtual void FrameReceived(const uint8* buffer, int length) = 0;
18  protected:
19   virtual ~SinkFilterObserver();
20 };
21
22 }  // namespace media
23
24 #endif  // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_