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

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

Issue 2122743003: Fix stats for encoder target bitrate when target rate is zero. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed bad logging. Created 4 years, 5 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 | « no previous file | webrtc/modules/video_coding/codec_database.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 26 matching lines...) Expand all
37 public: 37 public:
38 VCMExtDecoderMapItem(VideoDecoder* external_decoder_instance, 38 VCMExtDecoderMapItem(VideoDecoder* external_decoder_instance,
39 uint8_t payload_type); 39 uint8_t payload_type);
40 40
41 uint8_t payload_type; 41 uint8_t payload_type;
42 VideoDecoder* external_decoder_instance; 42 VideoDecoder* external_decoder_instance;
43 }; 43 };
44 44
45 class VCMCodecDataBase { 45 class VCMCodecDataBase {
46 public: 46 public:
47 VCMCodecDataBase(VideoEncoderRateObserver* encoder_rate_observer, 47 explicit VCMCodecDataBase(VCMEncodedFrameCallback* encoded_frame_callback);
48 VCMEncodedFrameCallback* encoded_frame_callback);
49 ~VCMCodecDataBase(); 48 ~VCMCodecDataBase();
50 49
51 // Sender Side 50 // Sender Side
52 // Returns the default settings for the codec with type |codec_type|. 51 // Returns the default settings for the codec with type |codec_type|.
53 static void Codec(VideoCodecType codec_type, VideoCodec* settings); 52 static void Codec(VideoCodecType codec_type, VideoCodec* settings);
54 53
55 // Sets the sender side codec and initiates the desired codec given the 54 // Sets the sender side codec and initiates the desired codec given the
56 // VideoCodec struct. 55 // VideoCodec struct.
57 // Returns true if the codec was successfully registered, false otherwise. 56 // Returns true if the codec was successfully registered, false otherwise.
58 bool SetSendCodec(const VideoCodec* send_codec, 57 bool SetSendCodec(const VideoCodec* send_codec,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 146
148 int number_of_cores_; 147 int number_of_cores_;
149 size_t max_payload_size_; 148 size_t max_payload_size_;
150 bool periodic_key_frames_; 149 bool periodic_key_frames_;
151 bool pending_encoder_reset_; 150 bool pending_encoder_reset_;
152 VideoCodec send_codec_; 151 VideoCodec send_codec_;
153 VideoCodec receive_codec_; 152 VideoCodec receive_codec_;
154 uint8_t encoder_payload_type_; 153 uint8_t encoder_payload_type_;
155 VideoEncoder* external_encoder_; 154 VideoEncoder* external_encoder_;
156 bool internal_source_; 155 bool internal_source_;
157 VideoEncoderRateObserver* const encoder_rate_observer_;
158 VCMEncodedFrameCallback* const encoded_frame_callback_; 156 VCMEncodedFrameCallback* const encoded_frame_callback_;
159 std::unique_ptr<VCMGenericEncoder> ptr_encoder_; 157 std::unique_ptr<VCMGenericEncoder> ptr_encoder_;
160 VCMGenericDecoder* ptr_decoder_; 158 VCMGenericDecoder* ptr_decoder_;
161 DecoderMap dec_map_; 159 DecoderMap dec_map_;
162 ExternalDecoderMap dec_external_map_; 160 ExternalDecoderMap dec_external_map_;
163 }; // VCMCodecDataBase 161 }; // VCMCodecDataBase
164 162
165 } // namespace webrtc 163 } // namespace webrtc
166 164
167 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_ 165 #endif // WEBRTC_MODULES_VIDEO_CODING_CODEC_DATABASE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698