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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix compile Created 4 years, 11 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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool enforce_frame_size = false; 49 bool enforce_frame_size = false;
50 }; 50 };
51 51
52 explicit AudioEncoderIsacT(const Config& config); 52 explicit AudioEncoderIsacT(const Config& config);
53 explicit AudioEncoderIsacT(const CodecInst& codec_inst, 53 explicit AudioEncoderIsacT(const CodecInst& codec_inst,
54 LockedIsacBandwidthInfo* bwinfo); 54 LockedIsacBandwidthInfo* bwinfo);
55 ~AudioEncoderIsacT() override; 55 ~AudioEncoderIsacT() override;
56 56
57 size_t MaxEncodedBytes() const override; 57 size_t MaxEncodedBytes() const override;
58 int SampleRateHz() const override; 58 int SampleRateHz() const override;
59 int NumChannels() const override; 59 size_t NumChannels() const override;
60 size_t Num10MsFramesInNextPacket() const override; 60 size_t Num10MsFramesInNextPacket() const override;
61 size_t Max10MsFramesInAPacket() const override; 61 size_t Max10MsFramesInAPacket() const override;
62 int GetTargetBitrate() const override; 62 int GetTargetBitrate() const override;
63 EncodedInfo EncodeInternal(uint32_t rtp_timestamp, 63 EncodedInfo EncodeInternal(uint32_t rtp_timestamp,
64 rtc::ArrayView<const int16_t> audio, 64 rtc::ArrayView<const int16_t> audio,
65 size_t max_encoded_bytes, 65 size_t max_encoded_bytes,
66 uint8_t* encoded) override; 66 uint8_t* encoded) override;
67 void Reset() override; 67 void Reset() override;
68 68
69 private: 69 private:
(...skipping 18 matching lines...) Expand all
88 88
89 // Timestamp of the previously encoded packet. 89 // Timestamp of the previously encoded packet.
90 uint32_t last_encoded_timestamp_; 90 uint32_t last_encoded_timestamp_;
91 91
92 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT); 92 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT);
93 }; 93 };
94 94
95 } // namespace webrtc 95 } // namespace webrtc
96 96
97 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ 97 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698