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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 int32_t RegisterFrameTypeCallback(VCMFrameTypeCallback* frameTypeCallback); | 168 int32_t RegisterFrameTypeCallback(VCMFrameTypeCallback* frameTypeCallback); |
169 int32_t RegisterPacketRequestCallback(VCMPacketRequestCallback* callback); | 169 int32_t RegisterPacketRequestCallback(VCMPacketRequestCallback* callback); |
170 | 170 |
171 int32_t Decode(uint16_t maxWaitTimeMs); | 171 int32_t Decode(uint16_t maxWaitTimeMs); |
172 | 172 |
173 int32_t Decode(const webrtc::VCMEncodedFrame* frame); | 173 int32_t Decode(const webrtc::VCMEncodedFrame* frame); |
174 | 174 |
175 // Called on the decoder thread when thread is exiting. | 175 // Called on the decoder thread when thread is exiting. |
176 void DecodingStopped(); | 176 void DecodingStopped(); |
177 | 177 |
178 int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const; | |
179 VideoCodecType ReceiveCodec() const; | |
180 | |
181 int32_t IncomingPacket(const uint8_t* incomingPayload, | 178 int32_t IncomingPacket(const uint8_t* incomingPayload, |
182 size_t payloadLength, | 179 size_t payloadLength, |
183 const WebRtcRTPHeader& rtpInfo); | 180 const WebRtcRTPHeader& rtpInfo); |
184 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs); | 181 int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs); |
185 int32_t SetRenderDelay(uint32_t timeMS); | 182 int32_t SetRenderDelay(uint32_t timeMS); |
186 int32_t Delay() const; | 183 int32_t Delay() const; |
187 uint32_t DiscardedPackets() const; | 184 uint32_t DiscardedPackets() const; |
188 | 185 |
189 int SetReceiverRobustnessMode(ReceiverRobustness robustnessMode, | 186 int SetReceiverRobustnessMode(ReceiverRobustness robustnessMode, |
190 VCMDecodeErrorMode errorMode); | 187 VCMDecodeErrorMode errorMode); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 VCMProcessTimer _receiveStatsTimer; | 229 VCMProcessTimer _receiveStatsTimer; |
233 VCMProcessTimer _retransmissionTimer; | 230 VCMProcessTimer _retransmissionTimer; |
234 VCMProcessTimer _keyRequestTimer; | 231 VCMProcessTimer _keyRequestTimer; |
235 QpParser qp_parser_; | 232 QpParser qp_parser_; |
236 ThreadUnsafeOneTimeEvent first_frame_received_; | 233 ThreadUnsafeOneTimeEvent first_frame_received_; |
237 }; | 234 }; |
238 | 235 |
239 } // namespace vcm | 236 } // namespace vcm |
240 } // namespace webrtc | 237 } // namespace webrtc |
241 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ | 238 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ |
OLD | NEW |