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

Unified Diff: chrome/gpu/arc_gpu_video_decode_accelerator.cc

Issue 2045273005: Have VDA clients inform decoder of supported picture buffer formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | content/renderer/media/rtc_video_decoder.cc » ('j') | media/video/video_decode_accelerator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/arc_gpu_video_decode_accelerator.cc
diff --git a/chrome/gpu/arc_gpu_video_decode_accelerator.cc b/chrome/gpu/arc_gpu_video_decode_accelerator.cc
index 7a632b670718eefc137116edb6150800bab5ea01..d6f8a16ac91b3d79b0bc01f954477a937d711f58 100644
--- a/chrome/gpu/arc_gpu_video_decode_accelerator.cc
+++ b/chrome/gpu/arc_gpu_video_decode_accelerator.cc
@@ -108,6 +108,10 @@ ArcVideoAccelerator::Result ArcGpuVideoDecodeAccelerator::Initialize(
}
vda_config.output_mode =
media::VideoDecodeAccelerator::Config::OutputMode::IMPORT;
+ vda_config.supported_output_formats.assign(
+ {media::PIXEL_FORMAT_I420, media::PIXEL_FORMAT_YV12,
+ media::PIXEL_FORMAT_NV12, media::PIXEL_FORMAT_NV21,
+ media::PIXEL_FORMAT_ARGB});
std::unique_ptr<content::GpuVideoDecodeAcceleratorFactory> vda_factory =
content::GpuVideoDecodeAcceleratorFactory::CreateWithNoGL();
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | media/video/video_decode_accelerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698