| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // |state_update_cb| will be called when state changes. | 66 // |state_update_cb| will be called when state changes. |
| 67 // |deliver_frame_cb| will be called when a frame is ready. | 67 // |deliver_frame_cb| will be called when a frame is ready. |
| 68 void StartCapture(int client_id, | 68 void StartCapture(int client_id, |
| 69 const media::VideoCaptureParams& params, | 69 const media::VideoCaptureParams& params, |
| 70 const VideoCaptureStateUpdateCB& state_update_cb, | 70 const VideoCaptureStateUpdateCB& state_update_cb, |
| 71 const VideoCaptureDeliverFrameCB& deliver_frame_cb); | 71 const VideoCaptureDeliverFrameCB& deliver_frame_cb); |
| 72 | 72 |
| 73 // Stop capturing. |client_id| is the identifier used to call StartCapture. | 73 // Stop capturing. |client_id| is the identifier used to call StartCapture. |
| 74 void StopCapture(int client_id); | 74 void StopCapture(int client_id); |
| 75 | 75 |
| 76 // Requests that the video capturer send a frame "soon" (e.g., to resolve |
| 77 // picture loss or quality issues). |
| 78 void RequestRefreshFrame(); |
| 79 |
| 76 // Get capturing formats supported by this device. | 80 // Get capturing formats supported by this device. |
| 77 // |callback| will be invoked with the results. | 81 // |callback| will be invoked with the results. |
| 78 void GetDeviceSupportedFormats(const VideoCaptureDeviceFormatsCB& callback); | 82 void GetDeviceSupportedFormats(const VideoCaptureDeviceFormatsCB& callback); |
| 79 | 83 |
| 80 // Get capturing formats currently in use by this device. | 84 // Get capturing formats currently in use by this device. |
| 81 // |callback| will be invoked with the results. | 85 // |callback| will be invoked with the results. |
| 82 void GetDeviceFormatsInUse(const VideoCaptureDeviceFormatsCB& callback); | 86 void GetDeviceFormatsInUse(const VideoCaptureDeviceFormatsCB& callback); |
| 83 | 87 |
| 84 media::VideoCaptureSessionId session_id() const { return session_id_; } | 88 media::VideoCaptureSessionId session_id() const { return session_id_; } |
| 85 | 89 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // in |client_buffers_|. | 203 // in |client_buffers_|. |
| 200 // NOTE: Weak pointers must be invalidated before all other member variables. | 204 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 201 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; | 205 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; |
| 202 | 206 |
| 203 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 207 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
| 204 }; | 208 }; |
| 205 | 209 |
| 206 } // namespace content | 210 } // namespace content |
| 207 | 211 |
| 208 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 212 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |