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

Unified Diff: media/gpu/vt_video_encode_accelerator_mac.h

Issue 2008583002: Fix BitrateAdjuster issues in VTVideoEncodeAccelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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 | « no previous file | media/gpu/vt_video_encode_accelerator_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vt_video_encode_accelerator_mac.h
diff --git a/media/gpu/vt_video_encode_accelerator_mac.h b/media/gpu/vt_video_encode_accelerator_mac.h
index ede9822728ef5ee607dbf90ed230966c63d57001..b36e41f2b8fc4d16e74bfe3bd4afcf4c80160117 100644
--- a/media/gpu/vt_video_encode_accelerator_mac.h
+++ b/media/gpu/vt_video_encode_accelerator_mac.h
@@ -63,6 +63,9 @@ class MEDIA_GPU_EXPORT VTVideoEncodeAccelerator
uint32_t framerate);
void DestroyTask();
+ // Helper function to set bitrate.
+ void SetAdjustedBitrate(int32_t bitrate);
+
// Helper function to notify the client of an error on |client_task_runner_|.
void NotifyError(media::VideoEncodeAccelerator::Error error);
@@ -107,8 +110,9 @@ class MEDIA_GPU_EXPORT VTVideoEncodeAccelerator
gfx::Size input_visible_size_;
size_t bitstream_buffer_size_;
int32_t frame_rate_;
+ int32_t initial_bitrate_;
int32_t target_bitrate_;
- int32_t adjusted_bitrate_;
+ int32_t encoder_set_bitrate_;
// Bitrate adjuster used to fix VideoToolbox's inconsistent bitrate issues.
webrtc::BitrateAdjuster bitrate_adjuster_;
« no previous file with comments | « no previous file | media/gpu/vt_video_encode_accelerator_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698