| 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 fdfd8bea25b94fed9848241e5745323f8bdffd4a..d66c652397db96c875f2a5a3dcc73a59fd9eee38 100644
|
| --- a/media/video/capture/video_capture_device.h
|
| +++ b/media/video/capture/video_capture_device.h
|
| @@ -36,15 +36,23 @@ class MEDIA_EXPORT VideoCaptureDevice {
|
|
|
| class MEDIA_EXPORT EventHandler {
|
| public:
|
| - // Captured a new video frame.
|
| + // Captured a new video frame as a raw buffer. The size, color format, and
|
| + // layout are taken from the parameters specified by an earlier call to
|
| + // OnFrameInfo. |data| must be packed, with no padding between rows and/or
|
| + // color planes.
|
| virtual void OnIncomingCapturedFrame(const uint8* data,
|
| int length,
|
| base::Time timestamp) = 0;
|
| + // Captured a new video frame, held in a VideoFrame container. |frame| must
|
| + // be allocated as RGB32, YV12 or I420, and the size must match that
|
| + // specified by an earlier call to OnFrameInfo.
|
| + virtual void OnIncomingCapturedVideoFrame(media::VideoFrame* frame,
|
| + base::Time timestamp) = 0;
|
| // An error has occurred that can not be handled
|
| // and VideoCaptureDevice must be DeAllocated.
|
| virtual void OnError() = 0;
|
| // Called when VideoCaptureDevice::Allocate has been called
|
| - // to inform of the resulting frame size and color format.
|
| + // to inform of the resulting frame size.
|
| virtual void OnFrameInfo(const VideoCaptureCapability& info) = 0;
|
|
|
| protected:
|
|
|