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

Unified Diff: webrtc/modules/video_coding/main/source/generic_encoder.h

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: report what we fell back from Created 5 years, 2 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/video_coding/main/source/generic_encoder.h
diff --git a/webrtc/modules/video_coding/main/source/generic_encoder.h b/webrtc/modules/video_coding/main/source/generic_encoder.h
index 25235b6b4677ad2565a9d6583bc2cf565727cd40..75c72210f30bdec7df5e2d27085163b20852b83c 100644
--- a/webrtc/modules/video_coding/main/source/generic_encoder.h
+++ b/webrtc/modules/video_coding/main/source/generic_encoder.h
@@ -55,9 +55,10 @@ public:
void SetInternalSource(bool internalSource) { _internalSource = internalSource; };
void SetRotation(VideoRotation rotation) { _rotation = rotation; }
+ void LastEncoderImplementationUsed(const char* encoder_implementation_name);
private:
- VCMPacketizationCallback* _sendCallback;
+ VCMPacketizationCallback* send_callback_;
media_optimization::MediaOptimization* _mediaOpt;
uint8_t _payloadType;
bool _internalSource;
@@ -145,11 +146,11 @@ public:
private:
VideoEncoder* const encoder_;
VideoEncoderRateObserver* const rate_observer_;
- VCMEncodedFrameCallback* vcm_encoded_frame_callback_;
- uint32_t bit_rate_;
- uint32_t frame_rate_;
- const bool internal_source_;
+ VCMEncodedFrameCallback* vcm_encoded_frame_callback_;
mutable rtc::CriticalSection rates_lock_;
+ uint32_t bit_rate_ GUARDED_BY(rates_lock_);
+ uint32_t frame_rate_ GUARDED_BY(rates_lock_);
+ const bool internal_source_;
VideoRotation rotation_;
bool is_screenshare_;
}; // end of VCMGenericEncoder class

Powered by Google App Engine
This is Rietveld 408576698