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

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 2253563002: Add codec name to CodecSpecificInfo and get the codec name stats from there instead. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix fake_encoder.cc Created 4 years, 4 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/video_encoder_unittest.cc ('k') | webrtc/video/vie_encoder.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int64_t time_of_last_frame_activity_ms(); 81 int64_t time_of_last_frame_activity_ms();
82 82
83 83
84 // Implements EncodedImageCallback. 84 // Implements EncodedImageCallback.
85 EncodedImageCallback::Result OnEncodedImage( 85 EncodedImageCallback::Result OnEncodedImage(
86 const EncodedImage& encoded_image, 86 const EncodedImage& encoded_image,
87 const CodecSpecificInfo* codec_specific_info, 87 const CodecSpecificInfo* codec_specific_info,
88 const RTPFragmentationHeader* fragmentation) override; 88 const RTPFragmentationHeader* fragmentation) override;
89 89
90 // Implements VideoSendStatisticsCallback. 90 // Implements VideoSendStatisticsCallback.
91 void SendStatistics(uint32_t bit_rate, 91 void SendStatistics(uint32_t bit_rate, uint32_t frame_rate) override;
92 uint32_t frame_rate,
93 const std::string& encoder_name) override;
94 92
95 // virtual to test EncoderStateFeedback with mocks. 93 // virtual to test EncoderStateFeedback with mocks.
96 virtual void OnReceivedIntraFrameRequest(size_t stream_index); 94 virtual void OnReceivedIntraFrameRequest(size_t stream_index);
97 virtual void OnReceivedSLI(uint8_t picture_id); 95 virtual void OnReceivedSLI(uint8_t picture_id);
98 virtual void OnReceivedRPSI(uint64_t picture_id); 96 virtual void OnReceivedRPSI(uint64_t picture_id);
99 97
100 void OnBitrateUpdated(uint32_t bitrate_bps, 98 void OnBitrateUpdated(uint32_t bitrate_bps,
101 uint8_t fraction_lost, 99 uint8_t fraction_lost,
102 int64_t round_trip_time_ms); 100 int64_t round_trip_time_ms);
103 101
(...skipping 27 matching lines...) Expand all
131 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); 129 uint8_t picture_id_sli_ GUARDED_BY(data_cs_);
132 bool has_received_rpsi_ GUARDED_BY(data_cs_); 130 bool has_received_rpsi_ GUARDED_BY(data_cs_);
133 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); 131 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_);
134 132
135 bool video_suspended_ GUARDED_BY(data_cs_); 133 bool video_suspended_ GUARDED_BY(data_cs_);
136 }; 134 };
137 135
138 } // namespace webrtc 136 } // namespace webrtc
139 137
140 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 138 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_encoder_unittest.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698