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_opus.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: 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#ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_OPUS_H_
12#define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_OPUS_H_
13
14#include "webrtc/common_audio/resampler/include/resampler.h"
15#include "webrtc/modules/audio_coding/main/acm2/acm_generic_codec.h"
16
17struct WebRtcOpusEncInst;
18struct WebRtcOpusDecInst;
19
20namespace webrtc {
21
22namespace acm2 {
23
24class ACMOpus : public ACMGenericCodec {
25 public:
26  explicit ACMOpus(int16_t codec_id);
27  ~ACMOpus();
28
29  ACMGenericCodec* CreateInstance(void);
30
31  int16_t InternalEncode(uint8_t* bitstream, int16_t* bitstream_len_byte);
32
33  int16_t InternalInitEncoder(WebRtcACMCodecParams *codec_params);
34
35 protected:
36  void DestructEncoderSafe();
37
38  int16_t InternalCreateEncoder();
39
40  void InternalDestructEncoderInst(void* ptr_inst);
41
42  int16_t SetBitRateSafe(const int32_t rate);
43
44  WebRtcOpusEncInst* encoder_inst_ptr_;
45  uint16_t sample_freq_;
46  uint16_t bitrate_;
47  int channels_;
48};
49
50}  // namespace acm2
51
52}  // namespace webrtc
53
54#endif  // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_OPUS_H_
Note: See TracBrowser for help on using the repository browser.