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

Unified Diff: media/gpu/v4l2_image_processor.h

Issue 2191263002: V4L2VideoDecodeAccelerator: support external buffer import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small refactor Created 4 years, 3 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 | media/gpu/v4l2_image_processor.cc » ('j') | media/gpu/v4l2_image_processor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/v4l2_image_processor.h
diff --git a/media/gpu/v4l2_image_processor.h b/media/gpu/v4l2_image_processor.h
index 3e456b9c32158683e323854eaf268fae5f0485f2..31e20b7d9e9613da5742c9f7201d0579b611b3da 100644
--- a/media/gpu/v4l2_image_processor.h
+++ b/media/gpu/v4l2_image_processor.h
@@ -41,6 +41,7 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor {
bool Initialize(VideoPixelFormat input_format,
VideoPixelFormat output_format,
v4l2_memory input_memory_type,
+ v4l2_memory output_memory_type,
gfx::Size input_visible_size,
gfx::Size input_allocated_size,
gfx::Size output_visible_size,
@@ -87,6 +88,7 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor {
// accessing it.
void Process(const scoped_refptr<VideoFrame>& frame,
int output_buffer_index,
+ std::vector<base::ScopedFD> output_dmabuf_fds,
Pawel Osciak 2016/09/12 08:54:26 Please document.
wuchengli 2016/09/12 11:56:51 Done.
const FrameReadyCB& cb);
// Stop all processing and clean up. After this method returns no more
@@ -106,8 +108,10 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor {
// Record for output buffers.
struct OutputRecord {
OutputRecord();
+ OutputRecord(OutputRecord&&) = default;
~OutputRecord();
bool at_device;
+ std::vector<base::ScopedFD> dmabuf_fds;
};
// Job record. Jobs are processed in a FIFO order. This is separate from
@@ -119,6 +123,7 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor {
~JobRecord();
scoped_refptr<VideoFrame> frame;
int output_buffer_index;
+ std::vector<base::ScopedFD> output_dmabuf_fds;
FrameReadyCB ready_cb;
};
@@ -161,6 +166,7 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor {
VideoPixelFormat input_format_;
VideoPixelFormat output_format_;
v4l2_memory input_memory_type_;
+ v4l2_memory output_memory_type_;
uint32_t input_format_fourcc_;
uint32_t output_format_fourcc_;
« no previous file with comments | « no previous file | media/gpu/v4l2_image_processor.cc » ('j') | media/gpu/v4l2_image_processor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698