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

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
« no previous file with comments | « media/gpu/v4l2_video_encode_accelerator.cc ('k') | media/gpu/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e1c8d800e9cb52d414a0ff541d662f0bd03ba67e 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;
+ // Source timestamp.
+ 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_.
« no previous file with comments | « media/gpu/v4l2_video_encode_accelerator.cc ('k') | media/gpu/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698