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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Codec settings. | 83 // Codec settings. |
84 uint8_t NumberOfCodecs(); | 84 uint8_t NumberOfCodecs(); |
85 int32_t GetCodec(uint8_t list_index, VideoCodec* video_codec); | 85 int32_t GetCodec(uint8_t list_index, VideoCodec* video_codec); |
86 int32_t RegisterExternalEncoder(VideoEncoder* encoder, | 86 int32_t RegisterExternalEncoder(VideoEncoder* encoder, |
87 uint8_t pl_type, | 87 uint8_t pl_type, |
88 bool internal_source); | 88 bool internal_source); |
89 int32_t DeRegisterExternalEncoder(uint8_t pl_type); | 89 int32_t DeRegisterExternalEncoder(uint8_t pl_type); |
90 int32_t SetEncoder(const VideoCodec& video_codec); | 90 int32_t SetEncoder(const VideoCodec& video_codec); |
91 int32_t GetEncoder(VideoCodec* video_codec); | 91 int32_t GetEncoder(VideoCodec* video_codec); |
92 | 92 |
93 int32_t GetCodecConfigParameters( | |
94 unsigned char config_parameters[kConfigParameterSize], | |
95 unsigned char& config_parameters_size); | |
96 | |
97 // Scale or crop/pad image. | 93 // Scale or crop/pad image. |
98 int32_t ScaleInputImage(bool enable); | 94 int32_t ScaleInputImage(bool enable); |
99 | 95 |
100 // Implementing VideoCaptureCallback. | 96 // Implementing VideoCaptureCallback. |
101 void DeliverFrame(VideoFrame video_frame) override; | 97 void DeliverFrame(VideoFrame video_frame) override; |
102 | 98 |
103 int32_t SendKeyFrame(); | 99 int32_t SendKeyFrame(); |
104 | 100 |
105 uint32_t LastObservedBitrateBps() const; | 101 uint32_t LastObservedBitrateBps() const; |
106 int CodecTargetBitrate(uint32_t* bitrate) const; | 102 int CodecTargetBitrate(uint32_t* bitrate) const; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 192 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
197 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 193 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
198 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); | 194 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); |
199 | 195 |
200 bool video_suspended_ GUARDED_BY(data_cs_); | 196 bool video_suspended_ GUARDED_BY(data_cs_); |
201 }; | 197 }; |
202 | 198 |
203 } // namespace webrtc | 199 } // namespace webrtc |
204 | 200 |
205 #endif // WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ | 201 #endif // WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ |
OLD | NEW |