Index: media/video/capture/video_capture_device.h |
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h |
index 74a8d27d85db32c017165c893a5dc2687f038b2b..c4930be1144f1dc2e92dd7ebcee43717d06ebc16 100644 |
--- a/media/video/capture/video_capture_device.h |
+++ b/media/video/capture/video_capture_device.h |
@@ -20,6 +20,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/time/time.h" |
#include "media/base/media_export.h" |
+#include "media/base/video_frame.h" |
#include "media/video/capture/video_capture_types.h" |
namespace media { |
@@ -172,7 +173,7 @@ class MEDIA_EXPORT VideoCaptureDevice { |
int rotation, // Clockwise. |
bool flip_vert, |
bool flip_horiz, |
- const VideoCaptureCapability& frame_info) = 0; |
+ const VideoCaptureFormat& frame_format) = 0; |
ncarter (slow)
2013/11/19 00:14:23
In my mind, this was one boundary where passing a
sheu
2013/11/19 00:56:13
I'm inclined to start letting users of the capture
ncarter (slow)
2013/11/19 01:22:42
By "user" above, I understand you're referring to
sheu
2013/11/19 03:26:22
I'd certainly hide this from JS, but I wouldn't ne
ncarter (slow)
2013/11/19 18:54:24
You've convinced me that it'll be okay to put a pi
|
// Captured a new video frame, held in |buffer|. |
// |
@@ -208,12 +209,10 @@ class MEDIA_EXPORT VideoCaptureDevice { |
VideoCaptureCapabilities* formats); |
// Prepare the camera for use. After this function has been called no other |
- // applications can use the camera. On completion Client::OnFrameInfo() |
- // is called informing of the resulting resolution and frame rate. |
- // StopAndDeAllocate() must be called before the object is deleted. |
- virtual void AllocateAndStart( |
- const VideoCaptureCapability& capture_format, |
- scoped_ptr<Client> client) = 0; |
+ // applications can use the camera. StopAndDeAllocate() must be called before |
+ // the object is deleted. |
+ virtual void AllocateAndStart(const VideoCaptureParams& params, |
ncarter (slow)
2013/11/19 00:14:23
This function should not receive a session_id. I t
sheu
2013/11/19 00:56:13
I think this is about the same situation as VideoC
ncarter (slow)
2013/11/19 18:54:24
I feel strongly that there should not be any sessi
sheu
2013/11/20 20:35:45
Since this has come up before, I'd opt to remove s
|
+ scoped_ptr<Client> client) = 0; |
// Deallocates the camera, possibly asynchronously. |
// |