Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 2455063002: Change ViEEncoder to not reconfigure the encoder until the video resolution is known. (Closed)
Patch Set: Fix test UseExternalFactoryForVp8WhenSupported. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_send_stream_tests.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 webrtc::VideoRotation rotation; 117 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
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_
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream_tests.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698