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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h

Issue 2934833002: G722 implementation of the AudioEncoderFactoryTemplate API (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h
diff --git a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h
index 9f37fe6dd08065bd610014de22e8711d25108869..b6583ce92adb295ce88deecc6c3d598e3ddaad41 100644
--- a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h
+++ b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h
@@ -14,6 +14,7 @@
#include <memory>
#include "webrtc/api/audio_codecs/audio_encoder.h"
+#include "webrtc/api/audio_codecs/audio_encoder_g722_config.h"
#include "webrtc/api/audio_codecs/audio_format.h"
#include "webrtc/base/buffer.h"
#include "webrtc/base/constructormagic.h"
@@ -25,15 +26,10 @@ struct CodecInst;
class AudioEncoderG722 final : public AudioEncoder {
public:
- struct Config {
- bool IsOk() const;
-
- int payload_type = 9;
- int frame_size_ms = 20;
- size_t num_channels = 1;
- };
+ static rtc::Optional<AudioEncoderG722Config> SdpToConfig(
+ const SdpAudioFormat& format);
- explicit AudioEncoderG722(const Config& config);
+ AudioEncoderG722(const AudioEncoderG722Config& config, int payload_type);
explicit AudioEncoderG722(const CodecInst& codec_inst);
AudioEncoderG722(int payload_type, const SdpAudioFormat& format);
~AudioEncoderG722() override;

Powered by Google App Engine
This is Rietveld 408576698