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

Unified Diff: remoting/codec/video_encoder_vpx.cc

Issue 2329653002: Add WebrtcVideoEncoder interface (Closed)
Patch Set: win Created 4 years, 3 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
« no previous file with comments | « remoting/codec/video_encoder_vpx.h ('k') | remoting/codec/video_encoder_vpx_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_vpx.cc
diff --git a/remoting/codec/video_encoder_vpx.cc b/remoting/codec/video_encoder_vpx.cc
index e281ef58efbc9c9e092c3b2efadf04b528dbebdf..6ab4eb6e6c72c00887be3478d7dadb336433a2ea 100644
--- a/remoting/codec/video_encoder_vpx.cc
+++ b/remoting/codec/video_encoder_vpx.cc
@@ -269,8 +269,7 @@ void VideoEncoderVpx::SetLosslessColor(bool want_lossless) {
}
std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
- const webrtc::DesktopFrame& frame,
- uint32_t flags) {
+ const webrtc::DesktopFrame& frame) {
DCHECK_LE(32, frame.size().width());
DCHECK_LE(32, frame.size().height());
@@ -301,9 +300,6 @@ std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
LOG(ERROR) << "Unable to apply active map";
}
- if (flags & REQUEST_KEY_FRAME)
- vpx_codec_control(codec_.get(), VP8E_SET_FRAME_FLAGS, VPX_EFLAG_FORCE_KF);
-
// Do the actual encoding.
int timestamp = (clock_->NowTicks() - timestamp_base_).InMilliseconds();
vpx_codec_err_t ret = vpx_codec_encode(
@@ -344,7 +340,6 @@ std::unique_ptr<VideoPacket> VideoEncoderVpx::Encode(
case VPX_CODEC_CX_FRAME_PKT:
got_data = true;
packet->set_data(vpx_packet->data.frame.buf, vpx_packet->data.frame.sz);
- packet->set_key_frame(vpx_packet->data.frame.flags & VPX_FRAME_IS_KEY);
break;
default:
break;
« no previous file with comments | « remoting/codec/video_encoder_vpx.h ('k') | remoting/codec/video_encoder_vpx_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698