Home
last modified time | relevance | path

Searched refs:GetFormatParameter (Results 1 – 6 of 6) sorted by relevance

/external/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_multi_channel_opus_impl.cc62 const auto param = GetFormatParameter<int>(format, "maxplaybackrate"); in GetMaxPlaybackRate()
70 const auto ptime = GetFormatParameter<int>(format, "ptime"); in GetFrameSizeMs()
248 config.fec_enabled = (GetFormatParameter(format, "useinbandfec") == "1"); in SdpToConfig()
249 config.dtx_enabled = (GetFormatParameter(format, "usedtx") == "1"); in SdpToConfig()
250 config.cbr_enabled = (GetFormatParameter(format, "cbr") == "1"); in SdpToConfig()
253 GetFormatParameter(format, "maxaveragebitrate")); in SdpToConfig()
264 auto num_streams = GetFormatParameter<int>(format, "num_streams"); in SdpToConfig()
270 auto coupled_streams = GetFormatParameter<int>(format, "coupled_streams"); in SdpToConfig()
277 GetFormatParameter<std::vector<unsigned char>>(format, "channel_mapping"); in SdpToConfig()
Daudio_decoder_multi_channel_opus_unittest.cc21 TEST(AudioDecoderMultiOpusTest, GetFormatParameter) { in TEST() argument
27 EXPECT_EQ(GetFormatParameter(sdp_format, "channel_mapping"), in TEST()
30 EXPECT_EQ(GetFormatParameter<int>(sdp_format, "coupled_streams"), in TEST()
33 EXPECT_EQ(GetFormatParameter(sdp_format, "missing"), absl::nullopt); in TEST()
35 EXPECT_EQ(GetFormatParameter<int>(sdp_format, "channel_mapping"), in TEST()
Daudio_coder_opus_common.h25 absl::optional<std::string> GetFormatParameter(const SdpAudioFormat& format,
29 absl::optional<T> GetFormatParameter(const SdpAudioFormat& format, in GetFormatParameter() function
31 return rtc::StringToNumber<T>(GetFormatParameter(format, param).value_or("")); in GetFormatParameter()
35 absl::optional<std::vector<unsigned char>> GetFormatParameter(
Daudio_coder_opus_common.cc15 absl::optional<std::string> GetFormatParameter(const SdpAudioFormat& format, in GetFormatParameter() function
26 absl::optional<std::vector<unsigned char>> GetFormatParameter( in GetFormatParameter() function
31 GetFormatParameter(format, param).value_or(""); in GetFormatParameter()
Daudio_encoder_opus.cc114 const auto param = GetFormatParameter(format, "stereo"); in GetChannelCount()
123 const auto param = GetFormatParameter<int>(format, "maxplaybackrate"); in GetMaxPlaybackRate()
131 const auto ptime = GetFormatParameter<int>(format, "ptime"); in GetFrameSizeMs()
247 config.fec_enabled = (GetFormatParameter(format, "useinbandfec") == "1"); in SdpToConfig()
248 config.dtx_enabled = (GetFormatParameter(format, "usedtx") == "1"); in SdpToConfig()
249 config.cbr_enabled = (GetFormatParameter(format, "cbr") == "1"); in SdpToConfig()
252 GetFormatParameter(format, "maxaveragebitrate")); in SdpToConfig()
265 GetFormatParameter<int>(format, "minptime").value_or(kMinANAFrameLength); in SdpToConfig()
267 GetFormatParameter<int>(format, "maxptime").value_or(kMaxANAFrameLength); in SdpToConfig()
Daudio_decoder_multi_channel_opus_impl.cc63 auto num_streams = GetFormatParameter<int>(format, "num_streams"); in SdpToConfig()
69 auto coupled_streams = GetFormatParameter<int>(format, "coupled_streams"); in SdpToConfig()
76 GetFormatParameter<std::vector<unsigned char>>(format, "channel_mapping"); in SdpToConfig()