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/source/acm_celt.h @ 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: 2.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#ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_CELT_H_
12#define WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_CELT_H_
13
14#include "webrtc/modules/audio_coding/main/source/acm_generic_codec.h"
15
16// forward declaration
17struct CELT_encinst_t_;
18struct CELT_decinst_t_;
19
20namespace webrtc {
21
22namespace acm1 {
23
24class ACMCELT : public ACMGenericCodec {
25 public:
26  explicit ACMCELT(int16_t codec_id);
27  virtual ~ACMCELT();
28
29  virtual ACMGenericCodec* CreateInstance(void) OVERRIDE;
30
31  virtual int16_t InternalEncode(uint8_t* bitstream,
32                                 int16_t* bitstream_len_byte) OVERRIDE;
33
34  virtual int16_t InternalInitEncoder(
35      WebRtcACMCodecParams* codec_params) OVERRIDE;
36
37  virtual int16_t InternalInitDecoder(
38      WebRtcACMCodecParams* codec_params) OVERRIDE;
39
40 protected:
41  virtual int16_t DecodeSafe(uint8_t* /* bitstream */,
42                             int16_t /* bitstream_len_byte */,
43                             int16_t* /* audio */,
44                             int16_t* /* audio_samples */,
45                             int8_t* /* speech_type */) OVERRIDE;
46
47  virtual int32_t CodecDef(WebRtcNetEQ_CodecDef& codec_def,
48                           const CodecInst& codec_inst) OVERRIDE;
49
50  virtual void DestructEncoderSafe() OVERRIDE;
51
52  virtual void DestructDecoderSafe() OVERRIDE;
53
54  virtual int16_t InternalCreateEncoder() OVERRIDE;
55
56  virtual int16_t InternalCreateDecoder() OVERRIDE;
57
58  virtual void InternalDestructEncoderInst(void* ptr_inst) OVERRIDE;
59
60  virtual bool IsTrueStereoCodec() OVERRIDE;
61
62  virtual int16_t SetBitRateSafe(const int32_t rate) OVERRIDE;
63
64  virtual void SplitStereoPacket(uint8_t* payload,
65                                 int32_t* payload_length) OVERRIDE;
66
67  CELT_encinst_t_* enc_inst_ptr_;
68  CELT_decinst_t_* dec_inst_ptr_;
69  uint16_t sampling_freq_;
70  int32_t bitrate_;
71  uint16_t channels_;
72  uint16_t dec_channels_;
73};
74
75}  // namespace acm1
76
77}  // namespace webrtc
78
79#endif  // WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_CELT_H_
Note: See TracBrowser for help on using the repository browser.