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( | 56 scoped_ptr<Buffer> ReserveOutputBuffer(media::VideoPixelFormat format, |
57 const gfx::Size& dimensions, | 57 const gfx::Size& dimensions) override; |
58 media::VideoPixelFormat format, | |
59 media::VideoPixelStorage storage) override; | |
60 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, | 58 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, |
61 const media::VideoCaptureFormat& frame_format, | 59 const media::VideoCaptureFormat& frame_format, |
62 const base::TimeTicks& timestamp) override; | 60 const base::TimeTicks& timestamp) override; |
63 void OnIncomingCapturedVideoFrame( | 61 void OnIncomingCapturedVideoFrame( |
64 scoped_ptr<Buffer> buffer, | 62 scoped_ptr<Buffer> buffer, |
65 const scoped_refptr<media::VideoFrame>& frame, | 63 const scoped_refptr<media::VideoFrame>& frame, |
66 const base::TimeTicks& timestamp) override; | 64 const base::TimeTicks& timestamp) override; |
67 void OnError(const std::string& reason) override; | 65 void OnError(const std::string& reason) override; |
68 void OnLog(const std::string& message) override; | 66 void OnLog(const std::string& message) override; |
69 double GetBufferPoolUtilization() const override; | 67 double GetBufferPoolUtilization() const override; |
(...skipping 14 matching lines...) Expand all Loading... |
84 | 82 |
85 media::VideoPixelFormat last_captured_pixel_format_; | 83 media::VideoPixelFormat last_captured_pixel_format_; |
86 | 84 |
87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); | 85 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); |
88 }; | 86 }; |
89 | 87 |
90 | 88 |
91 } // namespace content | 89 } // namespace content |
92 | 90 |
93 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 91 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
OLD | NEW |