Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: media/video/capture/win/sink_filter_observer_win.h

Issue 7229013: This is the VideoCaptureDevice implementation for windows. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fix crash on some Windows versions when there is no camera available. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/video/capture/win/pin_base_win.cc ('k') | media/video/capture/win/sink_filter_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/win/sink_filter_observer_win.h
===================================================================
--- media/video/capture/win/sink_filter_observer_win.h (revision 0)
+++ media/video/capture/win/sink_filter_observer_win.h (revision 0)
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Observer class of Sinkfilter. The implementor of this class receive video
+// frames from the SinkFilter DirectShow filter.
+
+#ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_
+#define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_
+
+namespace media {
+
+class SinkFilterObserver {
+ public:
+ // SinkFilter will call this function with all frames delivered to it.
+ // buffer in only valid during this function call.
+ virtual void FrameReceived(const uint8* buffer, int length) = 0;
+ protected:
+ virtual ~SinkFilterObserver();
+};
+
+} // namespace media
+
+#endif // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_OBSERVER_WIN_H_
« no previous file with comments | « media/video/capture/win/pin_base_win.cc ('k') | media/video/capture/win/sink_filter_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698