Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/audio_coding/main/acm2/acm_red.cc @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 1.4 KB
Line 
1/*
2 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 *  tree. An additional intellectual property rights grant can be found
7 *  in the file PATENTS.  All contributing project authors may
8 *  be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include "webrtc/modules/audio_coding/main/acm2/acm_red.h"
12
13#include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h"
14#include "webrtc/system_wrappers/interface/trace.h"
15
16namespace webrtc {
17
18namespace acm2 {
19
20ACMRED::ACMRED(int16_t codec_id) { codec_id_ = codec_id; }
21
22ACMRED::~ACMRED() {}
23
24int16_t ACMRED::InternalEncode(uint8_t* /* bitstream */,
25                               int16_t* /* bitstream_len_byte */) {
26  // RED is never used as an encoder
27  // RED has no instance
28  return 0;
29}
30
31int16_t ACMRED::InternalInitEncoder(WebRtcACMCodecParams* /* codec_params */) {
32  // This codec does not need initialization,
33  // RED has no instance
34  return 0;
35}
36
37ACMGenericCodec* ACMRED::CreateInstance(void) { return NULL; }
38
39int16_t ACMRED::InternalCreateEncoder() {
40  // RED has no instance
41  return 0;
42}
43
44void ACMRED::InternalDestructEncoderInst(void* /* ptr_inst */) {
45  // RED has no instance
46}
47
48void ACMRED::DestructEncoderSafe() {
49  // RED has no instance
50}
51
52}  // namespace acm2
53
54}  // namespace webrtc
Note: See TracBrowser for help on using the repository browser.