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

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

Issue 2489843002: Revert of Extract bitrate allocation of spatial/temporal layers out of codec impl. (Closed)
Patch Set: 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 16 matching lines...) Expand all
27 #include "webrtc/modules/video_coding/generic_encoder.h" 27 #include "webrtc/modules/video_coding/generic_encoder.h"
28 #include "webrtc/modules/video_coding/jitter_buffer.h" 28 #include "webrtc/modules/video_coding/jitter_buffer.h"
29 #include "webrtc/modules/video_coding/media_optimization.h" 29 #include "webrtc/modules/video_coding/media_optimization.h"
30 #include "webrtc/modules/video_coding/receiver.h" 30 #include "webrtc/modules/video_coding/receiver.h"
31 #include "webrtc/modules/video_coding/timing.h" 31 #include "webrtc/modules/video_coding/timing.h"
32 #include "webrtc/modules/video_coding/utility/qp_parser.h" 32 #include "webrtc/modules/video_coding/utility/qp_parser.h"
33 #include "webrtc/system_wrappers/include/clock.h" 33 #include "webrtc/system_wrappers/include/clock.h"
34 34
35 namespace webrtc { 35 namespace webrtc {
36 36
37 class VideoBitrateAllocator;
38
39 namespace vcm { 37 namespace vcm {
40 38
41 class VCMProcessTimer { 39 class VCMProcessTimer {
42 public: 40 public:
43 VCMProcessTimer(int64_t periodMs, Clock* clock) 41 VCMProcessTimer(int64_t periodMs, Clock* clock)
44 : _clock(clock), 42 : _clock(clock),
45 _periodMs(periodMs), 43 _periodMs(periodMs),
46 _latestMs(_clock->TimeInMilliseconds()) {} 44 _latestMs(_clock->TimeInMilliseconds()) {}
47 int64_t Period() const; 45 int64_t Period() const;
48 int64_t TimeUntilProcess() const; 46 int64_t TimeUntilProcess() const;
(...skipping 21 matching lines...) Expand all
70 uint32_t numberOfCores, 68 uint32_t numberOfCores,
71 uint32_t maxPayloadSize); 69 uint32_t maxPayloadSize);
72 70
73 void RegisterExternalEncoder(VideoEncoder* externalEncoder, 71 void RegisterExternalEncoder(VideoEncoder* externalEncoder,
74 uint8_t payloadType, 72 uint8_t payloadType,
75 bool internalSource); 73 bool internalSource);
76 74
77 int Bitrate(unsigned int* bitrate) const; 75 int Bitrate(unsigned int* bitrate) const;
78 int FrameRate(unsigned int* framerate) const; 76 int FrameRate(unsigned int* framerate) const;
79 77
80 int32_t SetChannelParameters(uint32_t target_bitrate_bps, 78 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s.
81 uint8_t lossRate, 79 uint8_t lossRate,
82 int64_t rtt, 80 int64_t rtt);
83 VideoBitrateAllocator* bitrate_allocator);
84 // Calls SetChannelParameters(), with the previous target bitrate, loss rate
85 // and RTT, but reallocates the bitrate allocation based on a presumably
86 // updated codec configuration.
87 int32_t UpdateChannelParemeters(VideoBitrateAllocator* bitrate_allocator);
88
89 // Deprecated: 81 // Deprecated:
90 // TODO(perkj): Remove once no projects use it. 82 // TODO(perkj): Remove once no projects use it.
91 int32_t RegisterProtectionCallback(VCMProtectionCallback* protection); 83 int32_t RegisterProtectionCallback(VCMProtectionCallback* protection);
92 84
93 int32_t AddVideoFrame(const VideoFrame& videoFrame, 85 int32_t AddVideoFrame(const VideoFrame& videoFrame,
94 const CodecSpecificInfo* codecSpecificInfo); 86 const CodecSpecificInfo* codecSpecificInfo);
95 87
96 int32_t IntraFrameRequest(size_t stream_index); 88 int32_t IntraFrameRequest(size_t stream_index);
97 int32_t EnableFrameDropper(bool enable); 89 int32_t EnableFrameDropper(bool enable);
98 90
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 VCMProcessTimer _receiveStatsTimer; 201 VCMProcessTimer _receiveStatsTimer;
210 VCMProcessTimer _retransmissionTimer; 202 VCMProcessTimer _retransmissionTimer;
211 VCMProcessTimer _keyRequestTimer; 203 VCMProcessTimer _keyRequestTimer;
212 QpParser qp_parser_; 204 QpParser qp_parser_;
213 ThreadUnsafeOneTimeEvent first_frame_received_; 205 ThreadUnsafeOneTimeEvent first_frame_received_;
214 }; 206 };
215 207
216 } // namespace vcm 208 } // namespace vcm
217 } // namespace webrtc 209 } // namespace webrtc
218 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ 210 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_coding.gypi ('k') | webrtc/modules/video_coding/video_coding_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698