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

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

Issue 1424843002: Make VCMEncodedFrameCallback const. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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..079345e61f89ba13240f0a02613801b8d48215fc 100644
--- a/webrtc/modules/video_coding/main/source/generic_encoder.h
+++ b/webrtc/modules/video_coding/main/source/generic_encoder.h
@@ -80,6 +80,7 @@ class VCMGenericEncoder
public:
VCMGenericEncoder(VideoEncoder* encoder,
VideoEncoderRateObserver* rate_observer,
+ VCMEncodedFrameCallback* encoded_frame_callback,
bool internalSource);
~VCMGenericEncoder();
/**
@@ -116,12 +117,6 @@ public:
int32_t SetChannelParameters(int32_t packetLoss, int64_t rtt);
int32_t CodecConfigParameters(uint8_t* buffer, int32_t size);
/**
- * Register a transport callback which will be called to deliver the encoded
- * buffers
- */
- int32_t RegisterEncodeCallback(
- VCMEncodedFrameCallback* VCMencodedFrameCallback);
- /**
* Get encoder bit rate
*/
uint32_t BitRate() const;
@@ -145,7 +140,7 @@ public:
private:
VideoEncoder* const encoder_;
VideoEncoderRateObserver* const rate_observer_;
- VCMEncodedFrameCallback* vcm_encoded_frame_callback_;
+ VCMEncodedFrameCallback* const vcm_encoded_frame_callback_;
uint32_t bit_rate_;
uint32_t frame_rate_;
const bool internal_source_;

Powered by Google App Engine
This is Rietveld 408576698