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

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

Issue 2510583002: Reland #2 of Issue 2434073003: Extract bitrate allocation ... (Closed)
Patch Set: Addressed comments 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
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 10 matching lines...) Expand all
21 #include "webrtc/base/race_checker.h" 21 #include "webrtc/base/race_checker.h"
22 22
23 namespace webrtc { 23 namespace webrtc {
24 class CriticalSectionWrapper; 24 class CriticalSectionWrapper;
25 25
26 namespace media_optimization { 26 namespace media_optimization {
27 class MediaOptimization; 27 class MediaOptimization;
28 } // namespace media_optimization 28 } // namespace media_optimization
29 29
30 struct EncoderParameters { 30 struct EncoderParameters {
31 uint32_t target_bitrate; 31 BitrateAllocation target_bitrate;
32 uint8_t loss_rate; 32 uint8_t loss_rate;
33 int64_t rtt; 33 int64_t rtt;
34 uint32_t input_frame_rate; 34 uint32_t input_frame_rate;
35 }; 35 };
36 36
37 class VCMEncodedFrameCallback : public EncodedImageCallback { 37 class VCMEncodedFrameCallback : public EncodedImageCallback {
38 public: 38 public:
39 VCMEncodedFrameCallback(EncodedImageCallback* post_encode_callback, 39 VCMEncodedFrameCallback(EncodedImageCallback* post_encode_callback,
40 media_optimization::MediaOptimization* media_opt); 40 media_optimization::MediaOptimization* media_opt);
41 virtual ~VCMEncodedFrameCallback(); 41 virtual ~VCMEncodedFrameCallback();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_; 87 VCMEncodedFrameCallback* const vcm_encoded_frame_callback_;
88 const bool internal_source_; 88 const bool internal_source_;
89 rtc::CriticalSection params_lock_; 89 rtc::CriticalSection params_lock_;
90 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); 90 EncoderParameters encoder_params_ GUARDED_BY(params_lock_);
91 bool is_screenshare_; 91 bool is_screenshare_;
92 }; 92 };
93 93
94 } // namespace webrtc 94 } // namespace webrtc
95 95
96 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ 96 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc ('k') | webrtc/modules/video_coding/generic_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698