OLD | NEW |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int64_t time_of_last_frame_activity_ms(); | 82 int64_t time_of_last_frame_activity_ms(); |
83 | 83 |
84 // Implements VideoEncoderRateObserver. | 84 // Implements VideoEncoderRateObserver. |
85 // TODO(perkj): Refactor VideoEncoderRateObserver. This is only used for | 85 // TODO(perkj): Refactor VideoEncoderRateObserver. This is only used for |
86 // stats. The stats should be set in VideoSendStream instead. | 86 // stats. The stats should be set in VideoSendStream instead. |
87 // |bitrate_bps| is the target bitrate and |framerate| is the input frame | 87 // |bitrate_bps| is the target bitrate and |framerate| is the input frame |
88 // rate so it has nothing to do with the actual encoder. | 88 // rate so it has nothing to do with the actual encoder. |
89 void OnSetRates(uint32_t bitrate_bps, int framerate) override; | 89 void OnSetRates(uint32_t bitrate_bps, int framerate) override; |
90 | 90 |
91 // Implements EncodedImageCallback. | 91 // Implements EncodedImageCallback. |
92 int32_t Encoded(const EncodedImage& encoded_image, | 92 EncodedImageCallback::Result OnEncodedImage( |
93 const CodecSpecificInfo* codec_specific_info, | 93 const EncodedImage& encoded_image, |
94 const RTPFragmentationHeader* fragmentation) override; | 94 const CodecSpecificInfo* codec_specific_info, |
| 95 const RTPFragmentationHeader* fragmentation) override; |
95 | 96 |
96 // Implements VideoSendStatisticsCallback. | 97 // Implements VideoSendStatisticsCallback. |
97 void SendStatistics(uint32_t bit_rate, | 98 void SendStatistics(uint32_t bit_rate, |
98 uint32_t frame_rate, | 99 uint32_t frame_rate, |
99 const std::string& encoder_name) override; | 100 const std::string& encoder_name) override; |
100 | 101 |
101 // virtual to test EncoderStateFeedback with mocks. | 102 // virtual to test EncoderStateFeedback with mocks. |
102 virtual void OnReceivedIntraFrameRequest(size_t stream_index); | 103 virtual void OnReceivedIntraFrameRequest(size_t stream_index); |
103 virtual void OnReceivedSLI(uint8_t picture_id); | 104 virtual void OnReceivedSLI(uint8_t picture_id); |
104 virtual void OnReceivedRPSI(uint64_t picture_id); | 105 virtual void OnReceivedRPSI(uint64_t picture_id); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); | 138 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); |
138 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 139 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
139 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 140 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
140 | 141 |
141 bool video_suspended_ GUARDED_BY(data_cs_); | 142 bool video_suspended_ GUARDED_BY(data_cs_); |
142 }; | 143 }; |
143 | 144 |
144 } // namespace webrtc | 145 } // namespace webrtc |
145 | 146 |
146 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 147 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |