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

Side by Side Diff: voice_engine/channel_proxy.h

Issue 3019433002: Remove VoECodec (Closed)
Patch Set: rebase Created 3 years, 3 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 | « voice_engine/channel.cc ('k') | voice_engine/channel_proxy.cc » ('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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual int GetSpeechOutputLevelFullRange() const; 86 virtual int GetSpeechOutputLevelFullRange() const;
87 // See description of "totalAudioEnergy" in the WebRTC stats spec: 87 // See description of "totalAudioEnergy" in the WebRTC stats spec:
88 // https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaudio energy 88 // https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaudio energy
89 virtual double GetTotalOutputEnergy() const; 89 virtual double GetTotalOutputEnergy() const;
90 virtual double GetTotalOutputDuration() const; 90 virtual double GetTotalOutputDuration() const;
91 virtual uint32_t GetDelayEstimate() const; 91 virtual uint32_t GetDelayEstimate() const;
92 virtual bool SetSendTelephoneEventPayloadType(int payload_type, 92 virtual bool SetSendTelephoneEventPayloadType(int payload_type,
93 int payload_frequency); 93 int payload_frequency);
94 virtual bool SendTelephoneEventOutband(int event, int duration_ms); 94 virtual bool SendTelephoneEventOutband(int event, int duration_ms);
95 virtual void SetBitrate(int bitrate_bps, int64_t probing_interval_ms); 95 virtual void SetBitrate(int bitrate_bps, int64_t probing_interval_ms);
96 virtual void SetRecPayloadType(int payload_type,
97 const SdpAudioFormat& format);
98 virtual void SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs); 96 virtual void SetReceiveCodecs(const std::map<int, SdpAudioFormat>& codecs);
99 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink); 97 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink);
100 virtual void SetInputMute(bool muted); 98 virtual void SetInputMute(bool muted);
101 virtual void RegisterExternalTransport(Transport* transport); 99 virtual void RegisterExternalTransport(Transport* transport);
102 virtual void DeRegisterExternalTransport(); 100 virtual void DeRegisterExternalTransport();
103 101
104 // Implements RtpPacketSinkInterface 102 // Implements RtpPacketSinkInterface
105 void OnRtpPacket(const RtpPacketReceived& packet) override; 103 void OnRtpPacket(const RtpPacketReceived& packet) override;
106 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length); 104 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length);
107 virtual const rtc::scoped_refptr<AudioDecoderFactory>& 105 virtual const rtc::scoped_refptr<AudioDecoderFactory>&
108 GetAudioDecoderFactory() const; 106 GetAudioDecoderFactory() const;
109 virtual void SetChannelOutputVolumeScaling(float scaling); 107 virtual void SetChannelOutputVolumeScaling(float scaling);
110 virtual void SetRtcEventLog(RtcEventLog* event_log); 108 virtual void SetRtcEventLog(RtcEventLog* event_log);
111 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo( 109 virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo(
112 int sample_rate_hz, 110 int sample_rate_hz,
113 AudioFrame* audio_frame); 111 AudioFrame* audio_frame);
114 virtual int NeededFrequency() const; 112 virtual int NeededFrequency() const;
115 virtual void SetTransportOverhead(int transport_overhead_per_packet); 113 virtual void SetTransportOverhead(int transport_overhead_per_packet);
116 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy); 114 virtual void AssociateSendChannel(const ChannelProxy& send_channel_proxy);
117 virtual void DisassociateSendChannel(); 115 virtual void DisassociateSendChannel();
118 virtual void GetRtpRtcp(RtpRtcp** rtp_rtcp, 116 virtual void GetRtpRtcp(RtpRtcp** rtp_rtcp,
119 RtpReceiver** rtp_receiver) const; 117 RtpReceiver** rtp_receiver) const;
120 virtual uint32_t GetPlayoutTimestamp() const; 118 virtual uint32_t GetPlayoutTimestamp() const;
121 virtual void SetMinimumPlayoutDelay(int delay_ms); 119 virtual void SetMinimumPlayoutDelay(int delay_ms);
122 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); 120 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats);
123 virtual bool GetRecCodec(CodecInst* codec_inst) const; 121 virtual bool GetRecCodec(CodecInst* codec_inst) const;
124 virtual void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); 122 virtual void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate);
125 virtual void OnRecoverableUplinkPacketLossRate( 123 virtual void OnRecoverableUplinkPacketLossRate(
126 float recoverable_packet_loss_rate); 124 float recoverable_packet_loss_rate);
127 virtual void RegisterLegacyReceiveCodecs();
128 virtual std::vector<webrtc::RtpSource> GetSources() const; 125 virtual std::vector<webrtc::RtpSource> GetSources() const;
129 126
130 private: 127 private:
131 Channel* channel() const; 128 Channel* channel() const;
132 129
133 // Thread checkers document and lock usage of some methods on voe::Channel to 130 // Thread checkers document and lock usage of some methods on voe::Channel to
134 // specific threads we know about. The goal is to eventually split up 131 // specific threads we know about. The goal is to eventually split up
135 // voe::Channel into parts with single-threaded semantics, and thereby reduce 132 // voe::Channel into parts with single-threaded semantics, and thereby reduce
136 // the need for locks. 133 // the need for locks.
137 rtc::ThreadChecker worker_thread_checker_; 134 rtc::ThreadChecker worker_thread_checker_;
138 rtc::ThreadChecker module_process_thread_checker_; 135 rtc::ThreadChecker module_process_thread_checker_;
139 // Methods accessed from audio and video threads are checked for sequential- 136 // Methods accessed from audio and video threads are checked for sequential-
140 // only access. We don't necessarily own and control these threads, so thread 137 // only access. We don't necessarily own and control these threads, so thread
141 // checkers cannot be used. E.g. Chromium may transfer "ownership" from one 138 // checkers cannot be used. E.g. Chromium may transfer "ownership" from one
142 // audio thread to another, but access is still sequential. 139 // audio thread to another, but access is still sequential.
143 rtc::RaceChecker audio_thread_race_checker_; 140 rtc::RaceChecker audio_thread_race_checker_;
144 rtc::RaceChecker video_capture_thread_race_checker_; 141 rtc::RaceChecker video_capture_thread_race_checker_;
145 ChannelOwner channel_owner_; 142 ChannelOwner channel_owner_;
146 143
147 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); 144 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy);
148 }; 145 };
149 } // namespace voe 146 } // namespace voe
150 } // namespace webrtc 147 } // namespace webrtc
151 148
152 #endif // VOICE_ENGINE_CHANNEL_PROXY_H_ 149 #endif // VOICE_ENGINE_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « voice_engine/channel.cc ('k') | voice_engine/channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698