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

Side by Side Diff: media/video/capture/win/sink_filter_win.h

Issue 83633008: Reland: Reorganize media::VideoCapture* types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implement a DirectShow sink filter used for receiving captured frames from 5 // Implement a DirectShow sink filter used for receiving captured frames from
6 // a DirectShow Capture filter. 6 // a DirectShow Capture filter.
7 7
8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_
9 #define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_ 9 #define MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_
10 10
(...skipping 14 matching lines...) Expand all
25 namespace media { 25 namespace media {
26 26
27 class SinkInputPin; 27 class SinkInputPin;
28 28
29 class __declspec(uuid("88cdbbdc-a73b-4afa-acbf-15d5e2ce12c3")) 29 class __declspec(uuid("88cdbbdc-a73b-4afa-acbf-15d5e2ce12c3"))
30 SinkFilter : public FilterBase { 30 SinkFilter : public FilterBase {
31 public: 31 public:
32 explicit SinkFilter(SinkFilterObserver* observer); 32 explicit SinkFilter(SinkFilterObserver* observer);
33 virtual ~SinkFilter(); 33 virtual ~SinkFilter();
34 34
35 void SetRequestedMediaCapability( 35 void SetRequestedMediaFormat(const VideoCaptureFormat& format);
36 const VideoCaptureCapability& capability); 36 // Returns the format that is negotiated when this
37 // Returns the capability that is negotiated when this
38 // filter is connected to a media filter. 37 // filter is connected to a media filter.
39 const VideoCaptureCapability& ResultingCapability(); 38 const VideoCaptureFormat& ResultingFormat();
40 39
41 // Implement FilterBase. 40 // Implement FilterBase.
42 virtual size_t NoOfPins(); 41 virtual size_t NoOfPins();
43 virtual IPin* GetPin(int index); 42 virtual IPin* GetPin(int index);
44 43
45 STDMETHOD(GetClassID)(CLSID* clsid); 44 STDMETHOD(GetClassID)(CLSID* clsid);
46 45
47 private: 46 private:
48 scoped_refptr<SinkInputPin> input_pin_; 47 scoped_refptr<SinkInputPin> input_pin_;
49 48
50 DISALLOW_IMPLICIT_CONSTRUCTORS(SinkFilter); 49 DISALLOW_IMPLICIT_CONSTRUCTORS(SinkFilter);
51 }; 50 };
52 51
53 } // namespace media 52 } // namespace media
54 53
55 #endif // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_ 54 #endif // MEDIA_VIDEO_CAPTURE_WIN_SINK_FILTER_WIN_H_
OLDNEW
« no previous file with comments | « media/video/capture/win/capability_list_win.cc ('k') | media/video/capture/win/sink_filter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698