Chromium Code Reviews| 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_; |