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

Unified Diff: media/gpu/android_video_encode_accelerator.cc

Issue 2434053002: Android: tuning Exynos HW H264 encoding performance. (Closed)
Patch Set: address comments Created 4 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
« no previous file with comments | « media/base/android/sdk_media_codec_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/android_video_encode_accelerator.cc
diff --git a/media/gpu/android_video_encode_accelerator.cc b/media/gpu/android_video_encode_accelerator.cc
index 77780dc5186215f8ff1d31ef2ebd0feb06644585..b16f933222866fe2bb9bcae46c1883d6a9eeecb7 100644
--- a/media/gpu/android_video_encode_accelerator.cc
+++ b/media/gpu/android_video_encode_accelerator.cc
@@ -273,7 +273,7 @@ void AndroidVideoEncodeAccelerator::RequestEncodingParametersChange(
DCHECK(thread_checker_.CalledOnValidThread());
if (bitrate != last_set_bitrate_) {
last_set_bitrate_ = bitrate;
- media_codec_->SetVideoBitrate(bitrate);
+ media_codec_->SetVideoBitrate(bitrate, framerate);
}
// Note: Android's MediaCodec doesn't allow mid-stream adjustments to
// framerate, so we ignore that here. This is OK because Android only uses
« no previous file with comments | « media/base/android/sdk_media_codec_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698