OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void PutFrame(PPB_ImageData_Impl* image_data, | 48 virtual void PutFrame(PPB_ImageData_Impl* image_data, |
49 int64 time_stamp_ns) OVERRIDE; | 49 int64 time_stamp_ns) OVERRIDE; |
50 protected: | 50 protected: |
51 // MediaStreamVideoSource implementation. | 51 // MediaStreamVideoSource implementation. |
52 virtual void GetCurrentSupportedFormats( | 52 virtual void GetCurrentSupportedFormats( |
53 int max_requested_width, | 53 int max_requested_width, |
54 int max_requested_height, | 54 int max_requested_height, |
55 double max_requested_frame_rate, | 55 double max_requested_frame_rate, |
56 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; | 56 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; |
57 virtual void StartSourceImpl( | 57 virtual void StartSourceImpl( |
58 const media::VideoCaptureParams& params, | 58 const media::VideoCaptureFormat& format, |
59 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; | 59 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; |
60 virtual void StopSourceImpl() OVERRIDE; | 60 virtual void StopSourceImpl() OVERRIDE; |
61 | 61 |
62 private: | 62 private: |
63 media::VideoFramePool frame_pool_; | 63 media::VideoFramePool frame_pool_; |
64 | 64 |
65 class FrameWriterDelegate; | 65 class FrameWriterDelegate; |
66 scoped_refptr<FrameWriterDelegate> delegate_; | 66 scoped_refptr<FrameWriterDelegate> delegate_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(PpFrameWriter); | 68 DISALLOW_COPY_AND_ASSIGN(PpFrameWriter); |
(...skipping 14 matching lines...) Expand all Loading... |
83 const std::string& url, | 83 const std::string& url, |
84 FrameWriterInterface** frame_writer); | 84 FrameWriterInterface** frame_writer); |
85 | 85 |
86 private: | 86 private: |
87 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); | 87 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace content | 90 } // namespace content |
91 | 91 |
92 #endif // CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ | 92 #endif // CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ |
OLD | NEW |