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

Unified Diff: media/gpu/vaapi_video_encode_accelerator.h

Issue 1996453003: RTC Video Encoder: Use capturer timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: media/gpu/vaapi_video_encode_accelerator.h
diff --git a/media/gpu/vaapi_video_encode_accelerator.h b/media/gpu/vaapi_video_encode_accelerator.h
index 1d5fb9d161ff06bde94cecade20d1e3643eb528d..bc4e3ca51b0b5cb00128e1d0c8962b96801975f5 100644
--- a/media/gpu/vaapi_video_encode_accelerator.h
+++ b/media/gpu/vaapi_video_encode_accelerator.h
@@ -73,6 +73,8 @@ class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator
// True if this job will produce a keyframe. Used to report
// to BitstreamBufferReady().
bool keyframe;
+ // Captured timestamp.
Pawel Osciak 2016/05/27 04:46:38 Nit: this doesn't have to be "captured". Let's say
shenghao 2016/05/30 09:18:02 Done.
+ base::TimeDelta timestamp;
EncodeJob();
~EncodeJob();
@@ -118,7 +120,7 @@ class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator
// Check if we have sufficient resources for a new encode job, claim them and
// fill current_encode_job_ with them.
// Return false if we cannot start a new job yet, true otherwise.
- bool PrepareNextJob();
+ bool PrepareNextJob(base::TimeDelta timestamp);
// Begin a new frame, making it a keyframe if |force_keyframe| is true,
// updating current_pic_.

Powered by Google App Engine
This is Rietveld 408576698