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

Side by Side Diff: media/video/capture/video_capture.h

Issue 8304017: enable video capture to support sharing across multiple renderer processes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 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 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 // This file contains abstract classes used for media filter to handle video 5 // This file contains abstract classes used for media filter to handle video
6 // capture devices. 6 // capture devices.
7 7
8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_
9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ 9 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // TODO(wjia): merge with similar struct in browser process and move it to 84 // TODO(wjia): merge with similar struct in browser process and move it to
85 // video_capture_types.h. 85 // video_capture_types.h.
86 struct VideoCaptureCapability { 86 struct VideoCaptureCapability {
87 int width; // desired width. 87 int width; // desired width.
88 int height; // desired height. 88 int height; // desired height.
89 int max_fps; // desired maximum frame rate. 89 int max_fps; // desired maximum frame rate.
90 int expected_capture_delay; // expected delay in millisecond. 90 int expected_capture_delay; // expected delay in millisecond.
91 media::VideoFrame::Format raw_type; // desired video type. 91 media::VideoFrame::Format raw_type; // desired video type.
92 bool interlaced; // need interlace format. 92 bool interlaced; // need interlace format.
93 bool resolution_fixed; // indicate requested resolution can't be altered.
94 }; 93 };
95 94
96 VideoCapture() {} 95 VideoCapture() {}
97 virtual ~VideoCapture() {} 96 virtual ~VideoCapture() {}
98 97
99 // Request video capture to start capturing with |capability|. 98 // Request video capture to start capturing with |capability|.
100 // Also register |handler| with video capture for event handling. 99 // Also register |handler| with video capture for event handling.
101 // |handler| must remain valid until it has received |OnRemoved()|. 100 // |handler| must remain valid until it has received |OnRemoved()|.
102 virtual void StartCapture(EventHandler* handler, 101 virtual void StartCapture(EventHandler* handler,
103 const VideoCaptureCapability& capability) = 0; 102 const VideoCaptureCapability& capability) = 0;
(...skipping 10 matching lines...) Expand all
114 virtual int CaptureHeight() = 0; 113 virtual int CaptureHeight() = 0;
115 virtual int CaptureFrameRate() = 0; 114 virtual int CaptureFrameRate() = 0;
116 115
117 private: 116 private:
118 DISALLOW_COPY_AND_ASSIGN(VideoCapture); 117 DISALLOW_COPY_AND_ASSIGN(VideoCapture);
119 }; 118 };
120 119
121 } // namespace media 120 } // namespace media
122 121
123 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_ 122 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_module_impl.cc ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698