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

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_impl.h

Issue 2870043003: Handle padded audio packets correctly (Closed)
Patch Set: const size_t Created 3 years, 7 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
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ~NetEqImpl() override; 102 ~NetEqImpl() override;
103 103
104 // Inserts a new packet into NetEq. The |receive_timestamp| is an indication 104 // Inserts a new packet into NetEq. The |receive_timestamp| is an indication
105 // of the time when the packet was received, and should be measured with 105 // of the time when the packet was received, and should be measured with
106 // the same tick rate as the RTP timestamp of the current payload. 106 // the same tick rate as the RTP timestamp of the current payload.
107 // Returns 0 on success, -1 on failure. 107 // Returns 0 on success, -1 on failure.
108 int InsertPacket(const RTPHeader& rtp_header, 108 int InsertPacket(const RTPHeader& rtp_header,
109 rtc::ArrayView<const uint8_t> payload, 109 rtc::ArrayView<const uint8_t> payload,
110 uint32_t receive_timestamp) override; 110 uint32_t receive_timestamp) override;
111 111
112 void InsertEmptyPacket(const RTPHeader& rtp_header) override;
113
112 int GetAudio(AudioFrame* audio_frame, bool* muted) override; 114 int GetAudio(AudioFrame* audio_frame, bool* muted) override;
113 115
114 void SetCodecs(const std::map<int, SdpAudioFormat>& codecs) override; 116 void SetCodecs(const std::map<int, SdpAudioFormat>& codecs) override;
115 117
116 int RegisterPayloadType(NetEqDecoder codec, 118 int RegisterPayloadType(NetEqDecoder codec,
117 const std::string& codec_name, 119 const std::string& codec_name,
118 uint8_t rtp_payload_type) override; 120 uint8_t rtp_payload_type) override;
119 121
120 int RegisterExternalDecoder(AudioDecoder* decoder, 122 int RegisterExternalDecoder(AudioDecoder* decoder,
121 NetEqDecoder codec, 123 NetEqDecoder codec,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_ 421 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_
420 GUARDED_BY(crit_sect_); 422 GUARDED_BY(crit_sect_);
421 std::vector<uint32_t> last_decoded_timestamps_ GUARDED_BY(crit_sect_); 423 std::vector<uint32_t> last_decoded_timestamps_ GUARDED_BY(crit_sect_);
422 424
423 private: 425 private:
424 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); 426 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl);
425 }; 427 };
426 428
427 } // namespace webrtc 429 } // namespace webrtc
428 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ 430 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/mock/mock_delay_manager.h ('k') | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698