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

Unified Diff: content/common/gpu/media/vaapi_video_encode_accelerator.cc

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/vaapi_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_encode_accelerator.cc b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
index 1f9388e33abb400d88fbd28fbfdc27f228d1bb8a..9872cbb7e100e1637d80ff126768fa9dd7526b04 100644
--- a/content/common/gpu/media/vaapi_video_encode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_encode_accelerator.cc
@@ -582,12 +582,14 @@ bool VaapiVideoEncodeAccelerator::PrepareNextJob() {
return false;
}
- current_encode_job_->input_surface = new VASurface(
- available_va_surface_ids_.back(), coded_size_, va_surface_release_cb_);
+ current_encode_job_->input_surface =
+ new VASurface(available_va_surface_ids_.back(), coded_size_,
+ VA_RT_FORMAT_YUV420, va_surface_release_cb_);
Pawel Osciak 2015/11/05 10:23:51 We shouldn't be hardcoding the format in multiple
william.xie1 2015/11/06 06:56:14 Done.
available_va_surface_ids_.pop_back();
- current_encode_job_->recon_surface = new VASurface(
- available_va_surface_ids_.back(), coded_size_, va_surface_release_cb_);
+ current_encode_job_->recon_surface =
+ new VASurface(available_va_surface_ids_.back(), coded_size_,
+ VA_RT_FORMAT_YUV420, va_surface_release_cb_);
available_va_surface_ids_.pop_back();
// Reference surfaces are needed until the job is done, but they get

Powered by Google App Engine
This is Rietveld 408576698