Implement and test EncodedImageCallback in new ViE API.
R=mflodman@webrtc.org, pbos@webrtc.org, stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/4059004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5179 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/video_coding/main/source/video_coding_impl.h b/webrtc/modules/video_coding/main/source/video_coding_impl.h
index c1d02d9..d9564c0 100644
--- a/webrtc/modules/video_coding/main/source/video_coding_impl.h
+++ b/webrtc/modules/video_coding/main/source/video_coding_impl.h
@@ -27,6 +27,9 @@
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
namespace webrtc {
+
+class EncodedFrameObserver;
+
namespace vcm {
class VCMProcessTimer {
@@ -98,6 +101,9 @@
void SuspendBelowMinBitrate();
bool VideoSuspended() const;
+ void RegisterPostEncodeImageCallback(
+ EncodedImageCallback* post_encode_callback);
+
int32_t TimeUntilNextProcess();
int32_t Process();
@@ -173,6 +179,8 @@
int32_t TimeUntilNextProcess();
int32_t Process();
+ void RegisterPreDecodeImageCallback(EncodedImageCallback* observer);
+
protected:
int32_t Decode(const webrtc::VCMEncodedFrame& frame);
int32_t RequestKeyFrame();
@@ -213,6 +221,7 @@
VCMKeyRequestMode _keyRequestMode;
bool _scheduleKeyRequest;
size_t max_nack_list_size_;
+ EncodedImageCallback* pre_decode_image_callback_;
VCMCodecDataBase _codecDataBase;
VCMProcessTimer _receiveStatsTimer;