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 MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 6 #define MEDIA_CAPTURE_VIDEO_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 base::TimeDelta timestamp, | 77 base::TimeDelta timestamp, |
78 gfx::Rect visible_rect, | 78 gfx::Rect visible_rect, |
79 const VideoFrameMetadata& additional_metadata) override; | 79 const VideoFrameMetadata& additional_metadata) override; |
80 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions, | 80 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions, |
81 media::VideoPixelFormat format, | 81 media::VideoPixelFormat format, |
82 media::VideoPixelStorage storage, | 82 media::VideoPixelStorage storage, |
83 int new_frame_feedback_id) override; | 83 int new_frame_feedback_id) override; |
84 void OnError(const tracked_objects::Location& from_here, | 84 void OnError(const tracked_objects::Location& from_here, |
85 const std::string& reason) override; | 85 const std::string& reason) override; |
86 void OnLog(const std::string& message) override; | 86 void OnLog(const std::string& message) override; |
| 87 void OnStarted() override; |
87 double GetBufferPoolUtilization() const override; | 88 double GetBufferPoolUtilization() const override; |
88 | 89 |
89 private: | 90 private: |
90 void InitializeI420PlanePointers(const gfx::Size& dimensions, | 91 void InitializeI420PlanePointers(const gfx::Size& dimensions, |
91 uint8_t* const data, | 92 uint8_t* const data, |
92 uint8_t** y_plane_data, | 93 uint8_t** y_plane_data, |
93 uint8_t** u_plane_data, | 94 uint8_t** u_plane_data, |
94 uint8_t** v_plane_data); | 95 uint8_t** v_plane_data); |
95 | 96 |
96 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format. | 97 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format. |
(...skipping 25 matching lines...) Expand all Loading... |
122 #endif // DCHECK_IS_ON() | 123 #endif // DCHECK_IS_ON() |
123 | 124 |
124 media::VideoPixelFormat last_captured_pixel_format_; | 125 media::VideoPixelFormat last_captured_pixel_format_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); | 127 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace media | 130 } // namespace media |
130 | 131 |
131 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ | 132 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ |
OLD | NEW |