OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 VideoFrameInfo(int width, | 107 VideoFrameInfo(int width, |
108 int height, | 108 int height, |
109 VideoRotation rotation, | 109 VideoRotation rotation, |
110 bool is_texture) | 110 bool is_texture) |
111 : width(width), | 111 : width(width), |
112 height(height), | 112 height(height), |
113 rotation(rotation), | 113 rotation(rotation), |
114 is_texture(is_texture) {} | 114 is_texture(is_texture) {} |
115 int width; | 115 int width; |
116 int height; | 116 int height; |
117 VideoRotation rotation; | 117 webrtc::VideoRotation rotation; |
118 bool is_texture; | 118 bool is_texture; |
119 }; | 119 }; |
120 | 120 |
121 void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config, | 121 void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config, |
122 size_t max_data_payload_length); | 122 size_t max_data_payload_length); |
123 void ReconfigureEncoder(); | 123 void ReconfigureEncoder(); |
124 | 124 |
125 // Implements VideoSinkInterface. | 125 // Implements VideoSinkInterface. |
126 void OnFrame(const VideoFrame& video_frame) override; | 126 void OnFrame(const VideoFrame& video_frame) override; |
127 | 127 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // All public methods are proxied to |encoder_queue_|. It must must be | 203 // All public methods are proxied to |encoder_queue_|. It must must be |
204 // destroyed first to make sure no tasks are run that use other members. | 204 // destroyed first to make sure no tasks are run that use other members. |
205 rtc::TaskQueue encoder_queue_; | 205 rtc::TaskQueue encoder_queue_; |
206 | 206 |
207 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 207 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
208 }; | 208 }; |
209 | 209 |
210 } // namespace webrtc | 210 } // namespace webrtc |
211 | 211 |
212 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 212 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |