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

Unified Diff: webrtc/modules/audio_coding/codecs/audio_encoder.h

Issue 1967503002: Audio codec usage statistics (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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/audio_encoder.h
diff --git a/webrtc/modules/audio_coding/codecs/audio_encoder.h b/webrtc/modules/audio_coding/codecs/audio_encoder.h
index a0f1839e73393c4ad017c6d6d5393a740187f64d..24006fdf674b332daf8c07c8037a44285460149f 100644
--- a/webrtc/modules/audio_coding/codecs/audio_encoder.h
+++ b/webrtc/modules/audio_coding/codecs/audio_encoder.h
@@ -136,6 +136,9 @@ class AudioEncoder {
rtc::ArrayView<const int16_t> audio,
rtc::Buffer* encoded) = 0;
+ // Subclasses implements this and return a name, e.g. "Opus" or "iSAC".
kwiberg-webrtc 2016/05/11 00:47:00 Despite the example set by EncodeImpl, you probabl
hlundin-webrtc 2016/05/11 08:27:26 I'm not sure we should promise statically allocate
kwiberg-webrtc 2016/05/11 08:52:24 OK. What lifetime should we promise, then? That of
hlundin-webrtc 2016/05/11 08:59:18 That seems reasonable, but promising the correct v
kwiberg-webrtc 2016/05/11 09:49:43 I think it's problematic if we have an interface t
hlundin-webrtc 2016/05/11 10:37:20 I too was thinking of a "small set" of statically
kwiberg-webrtc 2016/05/11 10:46:21 But the complete set of strings possibly returned
hlundin-webrtc 2016/05/11 11:01:37 Acknowledged.
aleloi 2016/05/11 11:16:13 Can a C++ string be returned dynamically instead?
The Sun (google.com) 2016/05/11 11:36:44 A string returned by value will likely require hea
kwiberg-webrtc 2016/05/11 12:00:41 I agree. We definitely want to return a pointer to
+ virtual const char* GetCodecName() const;
+
private:
// This function is deprecated. It was used to return the maximum number of
// bytes that can be produced by the encoder at each Encode() call. Since the

Powered by Google App Engine
This is Rietveld 408576698