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

Side by Side Diff: webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.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, 3 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 * - payload : Encoded data pointer 287 * - payload : Encoded data pointer
288 * - payload_length_bytes : Bytes of encoded data 288 * - payload_length_bytes : Bytes of encoded data
289 * 289 *
290 * Return value : The duration of the packet, in samples per 290 * Return value : The duration of the packet, in samples per
291 * channel. 291 * channel.
292 */ 292 */
293 int WebRtcOpus_DurationEst(OpusDecInst* inst, 293 int WebRtcOpus_DurationEst(OpusDecInst* inst,
294 const uint8_t* payload, 294 const uint8_t* payload,
295 size_t payload_length_bytes); 295 size_t payload_length_bytes);
296 296
297 /****************************************************************************
298 * WebRtcOpus_PlcDuration(...)
299 *
300 * This function calculates the duration of a frame returned by packet loss
301 * concealment (PLC).
302 *
303 * Input:
304 * - inst : Decoder context
305 *
306 * Return value : The duration of a frame returned by PLC, in
307 * samples per channel.
308 */
309 int WebRtcOpus_PlcDuration(OpusDecInst* inst);
310
297 /* TODO(minyue): Check whether it is needed to add a decoder context to the 311 /* TODO(minyue): Check whether it is needed to add a decoder context to the
298 * arguments, like WebRtcOpus_DurationEst(...). In fact, the packet itself tells 312 * arguments, like WebRtcOpus_DurationEst(...). In fact, the packet itself tells
299 * the duration. The decoder context in WebRtcOpus_DurationEst(...) is not used. 313 * the duration. The decoder context in WebRtcOpus_DurationEst(...) is not used.
300 * So it may be advisable to remove it from WebRtcOpus_DurationEst(...). */ 314 * So it may be advisable to remove it from WebRtcOpus_DurationEst(...). */
301 315
302 /**************************************************************************** 316 /****************************************************************************
303 * WebRtcOpus_FecDurationEst(...) 317 * WebRtcOpus_FecDurationEst(...)
304 * 318 *
305 * This function calculates the duration of the FEC data within an opus packet. 319 * This function calculates the duration of the FEC data within an opus packet.
306 * Input: 320 * Input:
(...skipping 19 matching lines...) Expand all
326 * 1 - the packet contains FEC. 340 * 1 - the packet contains FEC.
327 */ 341 */
328 int WebRtcOpus_PacketHasFec(const uint8_t* payload, 342 int WebRtcOpus_PacketHasFec(const uint8_t* payload,
329 size_t payload_length_bytes); 343 size_t payload_length_bytes);
330 344
331 #ifdef __cplusplus 345 #ifdef __cplusplus
332 } // extern "C" 346 } // extern "C"
333 #endif 347 #endif
334 348
335 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_ 349 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_INTERFACE_OPUS_INTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/audio_decoder.h ('k') | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698