OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool enforce_frame_size; | 50 bool enforce_frame_size; |
51 }; | 51 }; |
52 | 52 |
53 explicit AudioEncoderDecoderIsacT(const Config& config); | 53 explicit AudioEncoderDecoderIsacT(const Config& config); |
54 ~AudioEncoderDecoderIsacT() override; | 54 ~AudioEncoderDecoderIsacT() override; |
55 | 55 |
56 // AudioEncoder public methods. | 56 // AudioEncoder public methods. |
57 int SampleRateHz() const override; | 57 int SampleRateHz() const override; |
58 int NumChannels() const override; | 58 int NumChannels() const override; |
59 size_t MaxEncodedBytes() const override; | 59 size_t MaxEncodedBytes() const override; |
60 int Num10MsFramesInNextPacket() const override; | 60 size_t Num10MsFramesInNextPacket() const override; |
61 int Max10MsFramesInAPacket() const override; | 61 size_t Max10MsFramesInAPacket() const override; |
62 int GetTargetBitrate() const override; | 62 int GetTargetBitrate() const override; |
63 | 63 |
64 // AudioDecoder methods. | 64 // AudioDecoder methods. |
65 bool HasDecodePlc() const override; | 65 bool HasDecodePlc() const override; |
66 int DecodePlc(int num_frames, int16_t* decoded) override; | 66 size_t DecodePlc(size_t num_frames, int16_t* decoded) override; |
67 int Init() override; | 67 int Init() override; |
68 int IncomingPacket(const uint8_t* payload, | 68 int IncomingPacket(const uint8_t* payload, |
69 size_t payload_len, | 69 size_t payload_len, |
70 uint16_t rtp_sequence_number, | 70 uint16_t rtp_sequence_number, |
71 uint32_t rtp_timestamp, | 71 uint32_t rtp_timestamp, |
72 uint32_t arrival_timestamp) override; | 72 uint32_t arrival_timestamp) override; |
73 int ErrorCode() override; | 73 int ErrorCode() override; |
74 size_t Channels() const override { return 1; } | 74 size_t Channels() const override { return 1; } |
75 | 75 |
76 // AudioEncoder protected method. | 76 // AudioEncoder protected method. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 struct CodecInst; | 122 struct CodecInst; |
123 | 123 |
124 class AudioEncoderDecoderMutableIsac : public AudioEncoderMutable, | 124 class AudioEncoderDecoderMutableIsac : public AudioEncoderMutable, |
125 public AudioDecoder { | 125 public AudioDecoder { |
126 public: | 126 public: |
127 virtual void UpdateSettings(const CodecInst& codec_inst) = 0; | 127 virtual void UpdateSettings(const CodecInst& codec_inst) = 0; |
128 }; | 128 }; |
129 | 129 |
130 } // namespace webrtc | 130 } // namespace webrtc |
131 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ | 131 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ |
OLD | NEW |