Dynamic resolution change for VP8 HW encode.
Off by default for now. BUG= R=glaznev@webrtc.org, stefan@webrtc.org TBR=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/45849004 Cr-Commit-Position: refs/heads/master@{#9045}
This commit is contained in:
@ -197,6 +197,10 @@ VCMGenericEncoder::InternalSource() const
|
||||
return internal_source_;
|
||||
}
|
||||
|
||||
void VCMGenericEncoder::OnDroppedFrame() {
|
||||
encoder_->OnDroppedFrame();
|
||||
}
|
||||
|
||||
/***************************
|
||||
* Callback Implementation
|
||||
***************************/
|
||||
|
||||
@ -136,6 +136,8 @@ public:
|
||||
|
||||
bool InternalSource() const;
|
||||
|
||||
void OnDroppedFrame();
|
||||
|
||||
private:
|
||||
VideoEncoder* const encoder_;
|
||||
VideoEncoderRateObserver* const rate_observer_;
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
#include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h"
|
||||
#include "webrtc/modules/video_coding/main/source/encoded_frame.h"
|
||||
#include "webrtc/modules/video_coding/main/source/video_coding_impl.h"
|
||||
#include "webrtc/modules/video_coding/utility/include/quality_scaler.h"
|
||||
#include "webrtc/system_wrappers/interface/clock.h"
|
||||
#include "webrtc/system_wrappers/interface/logging.h"
|
||||
|
||||
@ -346,6 +347,7 @@ int32_t VideoSender::AddVideoFrame(const I420VideoFrame& videoFrame,
|
||||
return VCM_OK;
|
||||
}
|
||||
if (_mediaOpt.DropFrame()) {
|
||||
_encoder->OnDroppedFrame();
|
||||
return VCM_OK;
|
||||
}
|
||||
_mediaOpt.UpdateContentData(contentMetrics);
|
||||
|
||||
Reference in New Issue
Block a user