OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "media/capture/capture_export.h" | 5 #include "media/capture/capture_export.h" |
6 #include "media/capture/video/video_capture_device.h" | 6 #include "media/capture/video/video_capture_device.h" |
7 | 7 |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 // Callback interface for VideoCaptureDeviceClient to communicate with its | 10 // Callback interface for VideoCaptureDeviceClient to communicate with its |
11 // clients. | 11 // clients. |
12 class CAPTURE_EXPORT VideoFrameReceiver { | 12 class CAPTURE_EXPORT VideoFrameReceiver { |
13 public: | 13 public: |
14 virtual ~VideoFrameReceiver(){}; | 14 virtual ~VideoFrameReceiver(){}; |
15 | 15 |
16 virtual void OnIncomingCapturedVideoFrame( | 16 virtual void OnIncomingCapturedVideoFrame( |
17 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer, | 17 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer, |
18 const scoped_refptr<media::VideoFrame>& frame) = 0; | 18 scoped_refptr<media::VideoFrame> frame) = 0; |
19 virtual void OnError() = 0; | 19 virtual void OnError() = 0; |
20 virtual void OnLog(const std::string& message) = 0; | 20 virtual void OnLog(const std::string& message) = 0; |
21 virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0; | 21 virtual void OnBufferDestroyed(int buffer_id_to_drop) = 0; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace media | 24 } // namespace media |
OLD | NEW |