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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_decoder.h

Issue 1334303005: Returning correct duration estimate on Opus DTX packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fixing a silly mistake in unittest Created 5 years, 2 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 size_t encoded_len, 54 size_t encoded_len,
55 int sample_rate_hz, 55 int sample_rate_hz,
56 size_t max_decoded_bytes, 56 size_t max_decoded_bytes,
57 int16_t* decoded, 57 int16_t* decoded,
58 SpeechType* speech_type); 58 SpeechType* speech_type);
59 59
60 // Indicates if the decoder implements the DecodePlc method. 60 // Indicates if the decoder implements the DecodePlc method.
61 virtual bool HasDecodePlc() const; 61 virtual bool HasDecodePlc() const;
62 62
63 // Calls the packet-loss concealment of the decoder to update the state after 63 // Calls the packet-loss concealment of the decoder to update the state after
64 // one or several lost packets. 64 // one or several lost packets. The caller has to make sure that the
65 // memory allocated in |decoded| should accommodate |num_frames| frames.
65 virtual size_t DecodePlc(size_t num_frames, int16_t* decoded); 66 virtual size_t DecodePlc(size_t num_frames, int16_t* decoded);
66 67
67 // Resets the decoder state (empty buffers etc.). 68 // Resets the decoder state (empty buffers etc.).
68 virtual void Reset() = 0; 69 virtual void Reset() = 0;
69 70
70 // Notifies the decoder of an incoming packet to NetEQ. 71 // Notifies the decoder of an incoming packet to NetEQ.
71 virtual int IncomingPacket(const uint8_t* payload, 72 virtual int IncomingPacket(const uint8_t* payload,
72 size_t payload_len, 73 size_t payload_len,
73 uint16_t rtp_sequence_number, 74 uint16_t rtp_sequence_number,
74 uint32_t rtp_timestamp, 75 uint32_t rtp_timestamp,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int sample_rate_hz, 114 int sample_rate_hz,
114 int16_t* decoded, 115 int16_t* decoded,
115 SpeechType* speech_type); 116 SpeechType* speech_type);
116 117
117 private: 118 private:
118 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoder); 119 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoder);
119 }; 120 };
120 121
121 } // namespace webrtc 122 } // namespace webrtc
122 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INTERFACE_AUDIO_DECODER_H_ 123 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_INTERFACE_AUDIO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698