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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 void EncodeVideoFrame(const VideoFrame& video_frame); | 76 void EncodeVideoFrame(const VideoFrame& video_frame); |
77 void SendKeyFrame(); | 77 void SendKeyFrame(); |
78 | 78 |
79 // Returns the time when the encoder last received an input frame or produced | 79 // Returns the time when the encoder last received an input frame or produced |
80 // an encoded frame. | 80 // an encoded frame. |
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 int32_t Encoded(const EncodedImage& encoded_image, |
86 const EncodedImage& encoded_image, | 86 const CodecSpecificInfo* codec_specific_info, |
87 const CodecSpecificInfo* codec_specific_info, | 87 const RTPFragmentationHeader* fragmentation) override; |
88 const RTPFragmentationHeader* fragmentation) override; | |
89 | 88 |
90 // Implements VideoSendStatisticsCallback. | 89 // Implements VideoSendStatisticsCallback. |
91 void SendStatistics(uint32_t bit_rate, | 90 void SendStatistics(uint32_t bit_rate, |
92 uint32_t frame_rate, | 91 uint32_t frame_rate, |
93 const std::string& encoder_name) override; | 92 const std::string& encoder_name) override; |
94 | 93 |
95 // virtual to test EncoderStateFeedback with mocks. | 94 // virtual to test EncoderStateFeedback with mocks. |
96 virtual void OnReceivedIntraFrameRequest(size_t stream_index); | 95 virtual void OnReceivedIntraFrameRequest(size_t stream_index); |
97 virtual void OnReceivedSLI(uint8_t picture_id); | 96 virtual void OnReceivedSLI(uint8_t picture_id); |
98 virtual void OnReceivedRPSI(uint64_t picture_id); | 97 virtual void OnReceivedRPSI(uint64_t picture_id); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); | 130 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); |
132 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 131 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
133 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 132 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
134 | 133 |
135 bool video_suspended_ GUARDED_BY(data_cs_); | 134 bool video_suspended_ GUARDED_BY(data_cs_); |
136 }; | 135 }; |
137 | 136 |
138 } // namespace webrtc | 137 } // namespace webrtc |
139 | 138 |
140 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 139 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |