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

Unified Diff: content/common/gpu/media/vt_video_encode_accelerator_mac.h

Issue 1818903004: Bitrate controller for VideoToolbox Video Encode Accelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: content/common/gpu/media/vt_video_encode_accelerator_mac.h
diff --git a/content/common/gpu/media/vt_video_encode_accelerator_mac.h b/content/common/gpu/media/vt_video_encode_accelerator_mac.h
index dfa180e5741fc017583b9cd3d7b71a36cda0cbb3..8b9d49739c398b4f0a29ff3158cb223a911a1c94 100644
--- a/content/common/gpu/media/vt_video_encode_accelerator_mac.h
+++ b/content/common/gpu/media/vt_video_encode_accelerator_mac.h
@@ -12,6 +12,7 @@
#include "media/base/mac/videotoolbox_glue.h"
#include "media/base/mac/videotoolbox_helpers.h"
#include "media/video/video_encode_accelerator.h"
+#include "third_party/webrtc/common_video/include/bitrate_adjuster.h"
namespace content {
@@ -107,6 +108,10 @@ class CONTENT_EXPORT VTVideoEncodeAccelerator
size_t bitstream_buffer_size_;
int32_t frame_rate_;
int32_t target_bitrate_;
+ int32_t adjusted_bitrate_;
+
+ // Bitrate adjuster used to fix VideoToolbox's inconsistent bitrate issues.
+ webrtc::BitrateAdjuster bitrate_adjuster_;
// Bitstream buffers ready to be used to return encoded output as a FIFO.
std::deque<std::unique_ptr<BitstreamBufferRef>> bitstream_buffer_queue_;

Powered by Google App Engine
This is Rietveld 408576698