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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const base::WeakPtr<VideoCaptureController>& controller, | 42 const base::WeakPtr<VideoCaptureController>& controller, |
43 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool); | 43 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool); |
44 ~VideoCaptureDeviceClient() override; | 44 ~VideoCaptureDeviceClient() override; |
45 | 45 |
46 // VideoCaptureDevice::Client implementation. | 46 // VideoCaptureDevice::Client implementation. |
47 void OnIncomingCapturedData(const uint8_t* data, | 47 void OnIncomingCapturedData(const uint8_t* data, |
48 int length, | 48 int length, |
49 const media::VideoCaptureFormat& frame_format, | 49 const media::VideoCaptureFormat& frame_format, |
50 int rotation, | 50 int rotation, |
51 const base::TimeTicks& timestamp) override; | 51 const base::TimeTicks& timestamp) override; |
52 void OnIncomingCapturedYuvData(const uint8_t* y_data, | |
53 const uint8_t* u_data, | |
54 const uint8_t* v_data, | |
55 size_t y_stride, | |
56 size_t u_stride, | |
57 size_t v_stride, | |
58 const media::VideoCaptureFormat& frame_format, | |
59 int clockwise_rotation, | |
60 const base::TimeTicks& timestamp) override; | |
61 scoped_ptr<Buffer> ReserveOutputBuffer( | 52 scoped_ptr<Buffer> ReserveOutputBuffer( |
62 const gfx::Size& dimensions, | 53 const gfx::Size& dimensions, |
63 media::VideoPixelFormat format, | 54 media::VideoPixelFormat format, |
64 media::VideoPixelStorage storage) override; | 55 media::VideoPixelStorage storage) override; |
65 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, | 56 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, |
66 const media::VideoCaptureFormat& frame_format, | 57 const media::VideoCaptureFormat& frame_format, |
67 const base::TimeTicks& timestamp) override; | 58 const base::TimeTicks& timestamp) override; |
68 void OnIncomingCapturedVideoFrame( | 59 void OnIncomingCapturedVideoFrame( |
69 scoped_ptr<Buffer> buffer, | 60 scoped_ptr<Buffer> buffer, |
70 const scoped_refptr<media::VideoFrame>& frame, | 61 const scoped_refptr<media::VideoFrame>& frame, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 102 |
112 media::VideoPixelFormat last_captured_pixel_format_; | 103 media::VideoPixelFormat last_captured_pixel_format_; |
113 | 104 |
114 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); | 105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); |
115 }; | 106 }; |
116 | 107 |
117 | 108 |
118 } // namespace content | 109 } // namespace content |
119 | 110 |
120 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 111 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
OLD | NEW |