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

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

Issue 1184313002: Add AudioEncoder::GetTargetBitrate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing GN compile Created 5 years, 6 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int Num10MsFramesInNextPacket() const override;
61 int Max10MsFramesInAPacket() const override; 61 int Max10MsFramesInAPacket() const override;
62 int GetTargetBitrate() const override;
62 63
63 // AudioDecoder methods. 64 // AudioDecoder methods.
64 bool HasDecodePlc() const override; 65 bool HasDecodePlc() const override;
65 int DecodePlc(int num_frames, int16_t* decoded) override; 66 int DecodePlc(int num_frames, int16_t* decoded) override;
66 int Init() override; 67 int Init() override;
67 int IncomingPacket(const uint8_t* payload, 68 int IncomingPacket(const uint8_t* payload,
68 size_t payload_len, 69 size_t payload_len,
69 uint16_t rtp_sequence_number, 70 uint16_t rtp_sequence_number,
70 uint32_t rtp_timestamp, 71 uint32_t rtp_timestamp,
71 uint32_t arrival_timestamp) override; 72 uint32_t arrival_timestamp) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 107
107 // Have we accepted input but not yet emitted it in a packet? 108 // Have we accepted input but not yet emitted it in a packet?
108 bool packet_in_progress_ GUARDED_BY(lock_); 109 bool packet_in_progress_ GUARDED_BY(lock_);
109 110
110 // Timestamp of the first input of the currently in-progress packet. 111 // Timestamp of the first input of the currently in-progress packet.
111 uint32_t packet_timestamp_ GUARDED_BY(lock_); 112 uint32_t packet_timestamp_ GUARDED_BY(lock_);
112 113
113 // Timestamp of the previously encoded packet. 114 // Timestamp of the previously encoded packet.
114 uint32_t last_encoded_timestamp_ GUARDED_BY(lock_); 115 uint32_t last_encoded_timestamp_ GUARDED_BY(lock_);
115 116
117 const int target_bitrate_bps_;
118
116 DISALLOW_COPY_AND_ASSIGN(AudioEncoderDecoderIsacT); 119 DISALLOW_COPY_AND_ASSIGN(AudioEncoderDecoderIsacT);
117 }; 120 };
118 121
119 struct CodecInst; 122 struct CodecInst;
120 123
121 class AudioEncoderDecoderMutableIsac : public AudioEncoderMutable, 124 class AudioEncoderDecoderMutableIsac : public AudioEncoderMutable,
122 public AudioDecoder { 125 public AudioDecoder {
123 public: 126 public:
124 virtual void UpdateSettings(const CodecInst& codec_inst) = 0; 127 virtual void UpdateSettings(const CodecInst& codec_inst) = 0;
125 }; 128 };
126 129
127 } // namespace webrtc 130 } // namespace webrtc
128 #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

Powered by Google App Engine
This is Rietveld 408576698