Home
last modified time | relevance | path

Searched refs:AudioCodec (Results 1 – 25 of 56) sorted by relevance

123

/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dcodec_unittest.cc31 using cricket::AudioCodec;
84 AudioCodec c0(96, "A", 44100, 20000, 2, 3); in TEST_F()
85 AudioCodec c1(95, "A", 44100, 20000, 2, 3); in TEST_F()
86 AudioCodec c2(96, "x", 44100, 20000, 2, 3); in TEST_F()
87 AudioCodec c3(96, "A", 48000, 20000, 2, 3); in TEST_F()
88 AudioCodec c4(96, "A", 44100, 10000, 2, 3); in TEST_F()
89 AudioCodec c5(96, "A", 44100, 20000, 1, 3); in TEST_F()
90 AudioCodec c6(96, "A", 44100, 20000, 2, 1); in TEST_F()
98 AudioCodec c7; in TEST_F()
99 AudioCodec c8(0, "", 0, 0, 0, 0); in TEST_F()
[all …]
Dcodec.h148 struct AudioCodec : public Codec { struct
153 AudioCodec(int pt, const std::string& nm, int cr, int br, int cs, int pr) in AudioCodec() function
160 AudioCodec() : Codec(), bitrate(0), channels(0) {} in AudioCodec() function
163 bool Matches(const AudioCodec& codec) const;
165 static bool Preferable(const AudioCodec& first, const AudioCodec& other) { in Preferable() argument
171 AudioCodec& operator=(const AudioCodec& c) {
183 bool operator==(const AudioCodec& c) const {
194 bool operator!=(const AudioCodec& c) const {
Dfilemediaengine.h73 void set_voice_codecs(const std::vector<AudioCodec>& codecs) { in set_voice_codecs()
117 virtual const std::vector<AudioCodec>& audio_codecs() { in audio_codecs()
130 virtual bool FindAudioCodec(const AudioCodec& codec) { return true; } in FindAudioCodec()
170 std::vector<AudioCodec> voice_codecs_;
191 virtual bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) { in SetRecvCodecs()
194 virtual bool SetSendCodecs(const std::vector<AudioCodec>& codecs);
Dfakemediaengine.h246 const std::vector<AudioCodec>& recv_codecs() const { return recv_codecs_; } in recv_codecs()
247 const std::vector<AudioCodec>& send_codecs() const { return send_codecs_; } in send_codecs()
248 const std::vector<AudioCodec>& codecs() const { return send_codecs(); } in codecs()
258 virtual bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) { in SetRecvCodecs()
266 virtual bool SetSendCodecs(const std::vector<AudioCodec>& codecs) { in SetSendCodecs()
356 for (std::vector<AudioCodec>::const_iterator it = send_codecs_.begin(); in CanInsertDtmf()
452 std::vector<AudioCodec> recv_codecs_;
453 std::vector<AudioCodec> send_codecs_;
765 codecs_.push_back(AudioCodec(101, "fake_audio_codec", 0, 0, 1, 0)); in FakeVoiceEngine()
797 const std::vector<AudioCodec>& codecs() { return codecs_; } in codecs()
[all …]
Dcodec.cc138 bool AudioCodec::Matches(const AudioCodec& codec) const { in Matches()
155 std::string AudioCodec::ToString() const { in ToString()
Dmediaengine.h126 virtual const std::vector<AudioCodec>& audio_codecs() = 0;
242 virtual const std::vector<AudioCodec>& audio_codecs() { in audio_codecs()
317 const std::vector<AudioCodec>& codecs() { return codecs_; } in codecs()
331 std::vector<AudioCodec> codecs_;
/external/chromium_org/third_party/libjingle/source/talk/examples/call/
Dmediaenginefactory.cc35 std::vector<cricket::AudioCodec> RequiredAudioCodecs() { in RequiredAudioCodecs()
36 std::vector<cricket::AudioCodec> audio_codecs; in RequiredAudioCodecs()
38 cricket::AudioCodec(9, "G722", 16000, 0, 1, 0)); in RequiredAudioCodecs()
40 cricket::AudioCodec(0, "PCMU", 8000, 0, 1, 0)); in RequiredAudioCodecs()
42 cricket::AudioCodec(13, "CN", 8000, 0, 1, 0)); in RequiredAudioCodecs()
44 cricket::AudioCodec(105, "CN", 16000, 0, 1, 0)); in RequiredAudioCodecs()
/external/chromium_org/media/mojo/services/
Dmedia_type_converters.cc28 static_cast<media::AudioCodec>(AUDIO_CODEC_UNKNOWN),
30 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, AAC);
31 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, MP3);
32 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, PCM);
33 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, Vorbis);
34 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, FLAC);
35 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, AMR_NB);
36 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, PCM_MULAW);
37 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, GSM_MS);
38 ASSERT_ENUM_EQ(AudioCodec, kCodec, AUDIO_CODEC_, PCM_S16BE);
[all …]
/external/chromium_org/media/base/
Daudio_decoder_config.h19 enum AudioCodec { enum
59 AudioDecoderConfig(AudioCodec codec, SampleFormat sample_format,
67 void Initialize(AudioCodec codec, SampleFormat sample_format,
86 AudioCodec codec() const { return codec_; } in codec()
109 AudioCodec codec_;
Daudio_decoder_config.cc27 AudioDecoderConfig::AudioDecoderConfig(AudioCodec codec, in AudioDecoderConfig()
39 void AudioDecoderConfig::Initialize(AudioCodec codec, in Initialize()
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvoiceengine_unittest.cc51 static const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0);
52 static const cricket::AudioCodec kIsacCodec(103, "ISAC", 16000, 32000, 1, 0);
53 static const cricket::AudioCodec kCeltCodec(110, "CELT", 32000, 64000, 2, 0);
54 static const cricket::AudioCodec kOpusCodec(111, "opus", 48000, 64000, 2, 0);
55 static const cricket::AudioCodec kRedCodec(117, "red", 8000, 0, 1, 0);
56 static const cricket::AudioCodec kCn8000Codec(13, "CN", 8000, 0, 1, 0);
57 static const cricket::AudioCodec kCn16000Codec(105, "CN", 16000, 0, 1, 0);
58 static const cricket::AudioCodec
60 static const cricket::AudioCodec* const kAudioCodecs[] = {
192 std::vector<cricket::AudioCodec> codecs; in TestInsertDtmf()
[all …]
Dwebrtcvoiceengine.h138 const std::vector<AudioCodec>& codecs();
139 bool FindCodec(const AudioCodec& codec);
140 bool FindWebRtcCodec(const AudioCodec& codec, webrtc::CodecInst* gcodec);
255 std::vector<AudioCodec> codecs_;
339 virtual bool SetRecvCodecs(const std::vector<AudioCodec> &codecs);
340 virtual bool SetSendCodecs(const std::vector<AudioCodec> &codecs);
396 bool GetRedSendCodec(const AudioCodec& red_codec,
397 const std::vector<AudioCodec>& all_codecs,
430 bool SetSendCodecs(int channel, const std::vector<AudioCodec>& codecs);
446 std::vector<AudioCodec> recv_codecs_;
[all …]
Dwebrtcvoiceengine.cc147 static std::string ToString(const AudioCodec& codec) { in ToString()
205 static bool FindCodec(const std::vector<AudioCodec>& codecs, in FindCodec()
206 const AudioCodec& codec, in FindCodec()
207 AudioCodec* found_codec) { in FindCodec()
208 for (std::vector<AudioCodec>::const_iterator it = codecs.begin(); in FindCodec()
220 static bool IsNackEnabled(const AudioCodec& codec) { in IsNackEnabled()
394 static bool IsOpus(const AudioCodec& codec) { in IsOpus()
398 static bool IsIsac(const AudioCodec& codec) { in IsIsac()
403 static bool IsOpusStereoEnabled(const AudioCodec& codec) { in IsOpusStereoEnabled()
415 static int GetOpusBitrateFromParams(const AudioCodec& codec) { in GetOpusBitrateFromParams()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/media/other/
Dlinphonemediaengine.cc78 …voice_codecs_.push_back(AudioCodec(110, payload_type_speex_wb.mime_type, payload_type_speex_wb.clo… in Init()
79 …voice_codecs_.push_back(AudioCodec(111, payload_type_speex_nb.mime_type, payload_type_speex_nb.clo… in Init()
84 …voice_codecs_.push_back(AudioCodec(102, payload_type_ilbc.mime_type, payload_type_ilbc.clock_rate,… in Init()
87 …voice_codecs_.push_back(AudioCodec(0, payload_type_pcmu8000.mime_type, payload_type_pcmu8000.clock… in Init()
88 …voice_codecs_.push_back(AudioCodec(101, payload_type_telephone_event.mime_type, payload_type_telep… in Init()
112 bool LinphoneMediaEngine::FindAudioCodec(const AudioCodec &c) { in FindAudioCodec()
163 bool LinphoneVoiceChannel::SetSendCodecs(const std::vector<AudioCodec>& codecs) { in SetSendCodecs()
166 std::vector<AudioCodec>::const_iterator i; in SetSendCodecs()
Dlinphonemediaengine.h58 void set_voice_codecs(const std::vector<AudioCodec>& codecs) { in set_voice_codecs()
85 virtual const std::vector<AudioCodec>& audio_codecs() { in audio_codecs()
91 virtual bool FindAudioCodec(const AudioCodec& codec);
106 std::vector<AudioCodec> voice_codecs_;
121 virtual bool SetRecvCodecs(const std::vector<AudioCodec>& codecs) { return true; } in SetRecvCodecs()
122 virtual bool SetSendCodecs(const std::vector<AudioCodec>& codecs);
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dmediasessionclient_unittest.cc45 using cricket::AudioCodec;
57 static const cricket::AudioCodec kAudioCodecs[] = {
58 cricket::AudioCodec(103, "ISAC", 16000, -1, 1, 18),
59 cricket::AudioCodec(104, "ISAC", 32000, -1, 1, 17),
60 cricket::AudioCodec(119, "ISACLC", 16000, 40000, 1, 16),
61 cricket::AudioCodec(99, "speex", 16000, 22000, 1, 15),
62 cricket::AudioCodec(97, "IPCMWB", 16000, 80000, 1, 14),
63 cricket::AudioCodec(9, "G722", 16000, 64000, 1, 13),
64 cricket::AudioCodec(102, "iLBC", 8000, 13300, 1, 12),
65 cricket::AudioCodec(98, "speex", 8000, 11000, 1, 11),
[all …]
Dmediasessionclient.cc252 bool ParseGingleAudioCodec(const buzz::XmlElement* element, AudioCodec* out) { in ParseGingleAudioCodec()
261 *out = AudioCodec(id, name, clockrate, bitrate, channels, 0); in ParseGingleAudioCodec()
382 AudioCodec codec; in ParseGingleAudioContent()
391 audio->AddCodec(AudioCodec(103, "ISAC", 16000, -1, 1, 1)); in ParseGingleAudioContent()
392 audio->AddCodec(AudioCodec(0, "PCMU", 8000, 64000, 1, 0)); in ParseGingleAudioContent()
503 bool ParseJingleAudioCodec(const buzz::XmlElement* elem, AudioCodec* codec) { in ParseJingleAudioCodec()
516 *codec = AudioCodec(id, name, clockrate, bitrate, channels, 0); in ParseJingleAudioCodec()
583 AudioCodec codec; in ParseJingleAudioContent()
757 buzz::XmlElement* CreateGingleAudioCodecElem(const AudioCodec& codec) { in CreateGingleAudioCodecElem()
915 buzz::XmlElement* CreateJingleAudioCodecElem(const AudioCodec& codec) { in CreateJingleAudioCodecElem()
Dmediasession_unittest.cc76 using cricket::AudioCodec;
90 static const AudioCodec kAudioCodecs1[] = {
91 AudioCodec(103, "ISAC", 16000, -1, 1, 6),
92 AudioCodec(102, "iLBC", 8000, 13300, 1, 5),
93 AudioCodec(0, "PCMU", 8000, 64000, 1, 4),
94 AudioCodec(8, "PCMA", 8000, 64000, 1, 3),
95 AudioCodec(117, "red", 8000, 0, 1, 2),
96 AudioCodec(107, "CN", 48000, 0, 1, 1)
99 static const AudioCodec kAudioCodecs2[] = {
100 AudioCodec(126, "speex", 16000, 22000, 1, 3),
[all …]
/external/chromium_org/media/base/android/
Dmedia_codec_bridge.h221 static AudioCodecBridge* Create(const AudioCodec& codec);
224 static bool IsKnownUnaccelerated(const AudioCodec& codec);
227 bool Start(const AudioCodec& codec, int sample_rate, int channel_count,
243 bool ConfigureMediaFormat(jobject j_format, const AudioCodec& codec,
Ddemuxer_stream_player_params.h23 AudioCodec audio_codec;
Daudio_decoder_job.h57 AudioCodec audio_codec_;
Dmedia_codec_bridge.cc37 static const std::string AudioCodecToAndroidMimeType(const AudioCodec& codec) { in AudioCodecToAndroidMimeType()
502 bool AudioCodecBridge::Start(const AudioCodec& codec, in Start()
536 const AudioCodec& codec, in ConfigureMediaFormat()
658 AudioCodecBridge* AudioCodecBridge::Create(const AudioCodec& codec) { in Create()
667 bool AudioCodecBridge::IsKnownUnaccelerated(const AudioCodec& codec) { in IsKnownUnaccelerated()
/external/chromium_org/media/formats/mpeg/
Dmpeg_audio_stream_parser_base.h29 AudioCodec audio_codec,
148 const AudioCodec audio_codec_;
/external/chromium_org/media/mojo/interfaces/
Dmedia_types.mojom15 // Kept in sync with media::AudioCodec via COMPILE_ASSERTs.
16 enum AudioCodec {
90 AudioCodec codec;
/external/chromium_org/third_party/webrtc/modules/utility/interface/
Dfile_player.h76 virtual int32_t AudioCodec(CodecInst& audioCodec) const = 0;

123