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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 private: | 127 private: |
128 class ConfigureEncoderTask; | 128 class ConfigureEncoderTask; |
129 class EncodeTask; | 129 class EncodeTask; |
130 class VideoSourceProxy; | 130 class VideoSourceProxy; |
131 | 131 |
132 class VideoFrameInfo { | 132 class VideoFrameInfo { |
133 public: | 133 public: |
134 VideoFrameInfo(int width, | 134 VideoFrameInfo(int width, |
135 int height, | 135 int height, |
| 136 VideoRotation rotation, |
136 bool is_texture) | 137 bool is_texture) |
137 : width(width), | 138 : width(width), |
138 height(height), | 139 height(height), |
| 140 rotation(rotation), |
139 is_texture(is_texture) {} | 141 is_texture(is_texture) {} |
140 int width; | 142 int width; |
141 int height; | 143 int height; |
| 144 VideoRotation rotation; |
142 bool is_texture; | 145 bool is_texture; |
143 int pixel_count() const { return width * height; } | 146 int pixel_count() const { return width * height; } |
144 }; | 147 }; |
145 | 148 |
146 void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config, | 149 void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config, |
147 size_t max_data_payload_length, | 150 size_t max_data_payload_length, |
148 bool nack_enabled); | 151 bool nack_enabled); |
149 void ReconfigureEncoder(); | 152 void ReconfigureEncoder(); |
150 | 153 |
151 void ConfigureQualityScaler(); | 154 void ConfigureQualityScaler(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // All public methods are proxied to |encoder_queue_|. It must must be | 258 // All public methods are proxied to |encoder_queue_|. It must must be |
256 // destroyed first to make sure no tasks are run that use other members. | 259 // destroyed first to make sure no tasks are run that use other members. |
257 rtc::TaskQueue encoder_queue_; | 260 rtc::TaskQueue encoder_queue_; |
258 | 261 |
259 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); | 262 RTC_DISALLOW_COPY_AND_ASSIGN(ViEEncoder); |
260 }; | 263 }; |
261 | 264 |
262 } // namespace webrtc | 265 } // namespace webrtc |
263 | 266 |
264 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 267 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |