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

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

Issue 839523002: V4L2VDA: Generalize EGLImage import and query driver for output formats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/v4l2_video_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h
index 01714791442601555ef92bb99d66346b5ad89240..9eb04feb8fa203f46f9b6c13594ee91fc83002f2 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h
@@ -275,6 +275,10 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
bool CreateInputBuffers();
bool CreateOutputBuffers();
+ // Query the hardware for a suitable format that we can use for
+ // importing into EGLImages for output, and set it.
+ bool SetupOutputFormat();
+
//
// Methods run on child thread.
//
@@ -398,7 +402,8 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
std::vector<OutputRecord> output_buffer_map_;
// Required size of DPB for decoding.
int output_dpb_size_;
- // Stores the number of planes (i.e. separate memory buffers) for output.
+
+ // Number of planes (i.e. separate memory buffers) for output.
size_t output_planes_count_;
// Pictures that are ready but not sent to PictureReady yet.
@@ -434,6 +439,8 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// The codec we'll be decoding for.
media::VideoCodecProfile video_profile_;
+ // Chosen output format.
+ uint32_t output_format_fourcc_;
// The WeakPtrFactory for |weak_this_|.
base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;
« no previous file with comments | « content/common/gpu/media/tegra_v4l2_video_device.cc ('k') | content/common/gpu/media/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698