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

Side by Side Diff: webrtc/modules/video_coding/generic_encoder.cc

Issue 1885893002: Remove QualityScaler framerate reduction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 8 months 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void VCMGenericEncoder::OnDroppedFrame() { 133 void VCMGenericEncoder::OnDroppedFrame() {
134 encoder_->OnDroppedFrame(); 134 encoder_->OnDroppedFrame();
135 } 135 }
136 136
137 bool VCMGenericEncoder::SupportsNativeHandle() const { 137 bool VCMGenericEncoder::SupportsNativeHandle() const {
138 return encoder_->SupportsNativeHandle(); 138 return encoder_->SupportsNativeHandle();
139 } 139 }
140 140
141 int VCMGenericEncoder::GetTargetFramerate() {
142 return encoder_->GetTargetFramerate();
143 }
144
145 VCMEncodedFrameCallback::VCMEncodedFrameCallback( 141 VCMEncodedFrameCallback::VCMEncodedFrameCallback(
146 EncodedImageCallback* post_encode_callback) 142 EncodedImageCallback* post_encode_callback)
147 : send_callback_(), 143 : send_callback_(),
148 media_opt_(nullptr), 144 media_opt_(nullptr),
149 internal_source_(false), 145 internal_source_(false),
150 post_encode_callback_(post_encode_callback) {} 146 post_encode_callback_(post_encode_callback) {}
151 147
152 VCMEncodedFrameCallback::~VCMEncodedFrameCallback() {} 148 VCMEncodedFrameCallback::~VCMEncodedFrameCallback() {}
153 149
154 int32_t VCMEncodedFrameCallback::SetTransportCallback( 150 int32_t VCMEncodedFrameCallback::SetTransportCallback(
(...skipping 25 matching lines...) Expand all
180 media_optimization::MediaOptimization* mediaOpt) { 176 media_optimization::MediaOptimization* mediaOpt) {
181 media_opt_ = mediaOpt; 177 media_opt_ = mediaOpt;
182 } 178 }
183 179
184 void VCMEncodedFrameCallback::SignalLastEncoderImplementationUsed( 180 void VCMEncodedFrameCallback::SignalLastEncoderImplementationUsed(
185 const char* implementation_name) { 181 const char* implementation_name) {
186 if (send_callback_) 182 if (send_callback_)
187 send_callback_->OnEncoderImplementationName(implementation_name); 183 send_callback_->OnEncoderImplementationName(implementation_name);
188 } 184 }
189 } // namespace webrtc 185 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/generic_encoder.h ('k') | webrtc/modules/video_coding/include/video_coding_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698