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

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

Issue 1228793004: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Compile fix Created 5 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698