OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const base::TimeTicks& timestamp) override; | 46 const base::TimeTicks& timestamp) override; |
47 void OnIncomingCapturedYuvData(const uint8* y_data, | 47 void OnIncomingCapturedYuvData(const uint8* y_data, |
48 const uint8* u_data, | 48 const uint8* u_data, |
49 const uint8* v_data, | 49 const uint8* v_data, |
50 size_t y_stride, | 50 size_t y_stride, |
51 size_t u_stride, | 51 size_t u_stride, |
52 size_t v_stride, | 52 size_t v_stride, |
53 const media::VideoCaptureFormat& frame_format, | 53 const media::VideoCaptureFormat& frame_format, |
54 int clockwise_rotation, | 54 int clockwise_rotation, |
55 const base::TimeTicks& timestamp) override; | 55 const base::TimeTicks& timestamp) override; |
56 scoped_ptr<Buffer> ReserveOutputBuffer(media::VideoPixelFormat format, | 56 scoped_ptr<Buffer> ReserveOutputBuffer( |
57 const gfx::Size& dimensions) override; | 57 const gfx::Size& dimensions, |
| 58 media::VideoPixelFormat format, |
| 59 media::VideoPixelStorage storage) override; |
58 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, | 60 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, |
59 const media::VideoCaptureFormat& frame_format, | 61 const media::VideoCaptureFormat& frame_format, |
60 const base::TimeTicks& timestamp) override; | 62 const base::TimeTicks& timestamp) override; |
61 void OnIncomingCapturedVideoFrame( | 63 void OnIncomingCapturedVideoFrame( |
62 scoped_ptr<Buffer> buffer, | 64 scoped_ptr<Buffer> buffer, |
63 const scoped_refptr<media::VideoFrame>& frame, | 65 const scoped_refptr<media::VideoFrame>& frame, |
64 const base::TimeTicks& timestamp) override; | 66 const base::TimeTicks& timestamp) override; |
65 void OnError(const std::string& reason) override; | 67 void OnError(const std::string& reason) override; |
66 void OnLog(const std::string& message) override; | 68 void OnLog(const std::string& message) override; |
67 double GetBufferPoolUtilization() const override; | 69 double GetBufferPoolUtilization() const override; |
(...skipping 14 matching lines...) Expand all Loading... |
82 | 84 |
83 media::VideoPixelFormat last_captured_pixel_format_; | 85 media::VideoPixelFormat last_captured_pixel_format_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); | 87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); |
86 }; | 88 }; |
87 | 89 |
88 | 90 |
89 } // namespace content | 91 } // namespace content |
90 | 92 |
91 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 93 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
OLD | NEW |