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

Side by Side Diff: webrtc/video/video_encoder.cc

Issue 1371043003: Unify FrameType and VideoFrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_encoder_unittest.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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 int32_t VideoEncoderSoftwareFallbackWrapper::Release() { 93 int32_t VideoEncoderSoftwareFallbackWrapper::Release() {
94 if (fallback_encoder_) 94 if (fallback_encoder_)
95 return fallback_encoder_->Release(); 95 return fallback_encoder_->Release();
96 return encoder_->Release(); 96 return encoder_->Release();
97 } 97 }
98 98
99 int32_t VideoEncoderSoftwareFallbackWrapper::Encode( 99 int32_t VideoEncoderSoftwareFallbackWrapper::Encode(
100 const VideoFrame& frame, 100 const VideoFrame& frame,
101 const CodecSpecificInfo* codec_specific_info, 101 const CodecSpecificInfo* codec_specific_info,
102 const std::vector<VideoFrameType>* frame_types) { 102 const std::vector<FrameType>* frame_types) {
103 if (fallback_encoder_) 103 if (fallback_encoder_)
104 return fallback_encoder_->Encode(frame, codec_specific_info, frame_types); 104 return fallback_encoder_->Encode(frame, codec_specific_info, frame_types);
105 return encoder_->Encode(frame, codec_specific_info, frame_types); 105 return encoder_->Encode(frame, codec_specific_info, frame_types);
106 } 106 }
107 107
108 int32_t VideoEncoderSoftwareFallbackWrapper::SetChannelParameters( 108 int32_t VideoEncoderSoftwareFallbackWrapper::SetChannelParameters(
109 uint32_t packet_loss, 109 uint32_t packet_loss,
110 int64_t rtt) { 110 int64_t rtt) {
111 int32_t ret = encoder_->SetChannelParameters(packet_loss, rtt); 111 int32_t ret = encoder_->SetChannelParameters(packet_loss, rtt);
112 if (fallback_encoder_) 112 if (fallback_encoder_)
(...skipping 21 matching lines...) Expand all
134 return encoder_->SupportsNativeHandle(); 134 return encoder_->SupportsNativeHandle();
135 } 135 }
136 136
137 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() { 137 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() {
138 if (fallback_encoder_) 138 if (fallback_encoder_)
139 return fallback_encoder_->GetTargetFramerate(); 139 return fallback_encoder_->GetTargetFramerate();
140 return encoder_->GetTargetFramerate(); 140 return encoder_->GetTargetFramerate();
141 } 141 }
142 142
143 } // namespace webrtc 143 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698