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

Side by Side Diff: media/video/capture/linux/v4l2_capture_delegate_multi_plane.h

Issue 1124723006: VideoCaptureDeviceLinux: Add support for SPLANE+DMABUF V4L2 type capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_
6 #define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_ 6 #define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "media/video/capture/linux/v4l2_capture_delegate.h" 9 #include "media/video/capture/linux/v4l2_capture_delegate.h"
10 10
(...skipping 26 matching lines...) Expand all
37 }; 37 };
38 38
39 ~V4L2CaptureDelegateMultiPlane() override; 39 ~V4L2CaptureDelegateMultiPlane() override;
40 40
41 // V4L2CaptureDelegate virtual methods implementation. 41 // V4L2CaptureDelegate virtual methods implementation.
42 scoped_refptr<BufferTracker> CreateBufferTracker() const override; 42 scoped_refptr<BufferTracker> CreateBufferTracker() const override;
43 bool FillV4L2Format(v4l2_format* format, 43 bool FillV4L2Format(v4l2_format* format,
44 uint32_t width, 44 uint32_t width,
45 uint32_t height, 45 uint32_t height,
46 uint32_t pixelformat_fourcc) const override; 46 uint32_t pixelformat_fourcc) const override;
47 void FinishFillingV4L2Buffer(v4l2_buffer* buffer) const override;
48 void SetPayloadSize(const scoped_refptr<BufferTracker>& buffer_tracker, 47 void SetPayloadSize(const scoped_refptr<BufferTracker>& buffer_tracker,
49 const v4l2_buffer& buffer) const override; 48 const v4l2_buffer& buffer) const override;
49 void FinishFillingV4L2Buffer(v4l2_buffer* buffer,
50 bool for_enqueue) const override;
51 void FinishFillingV4L2RequestBuffers(
52 v4l2_requestbuffers* request) const override;
50 void SendBuffer(const scoped_refptr<BufferTracker>& buffer_tracker, 53 void SendBuffer(const scoped_refptr<BufferTracker>& buffer_tracker,
51 const v4l2_format& format) const override; 54 const v4l2_format& format) const override;
52 55
53 // Vector to allocate and track as many v4l2_plane structs as planes, needed 56 // Vector to allocate and track as many v4l2_plane structs as planes, needed
54 // for v4l2_buffer.m.planes. This is a scratchpad marked mutable to enable 57 // for v4l2_buffer.m.planes. This is a scratchpad marked mutable to enable
55 // using it in otherwise const methods. 58 // using it in otherwise const methods.
56 mutable std::vector<struct v4l2_plane> v4l2_planes_; 59 mutable std::vector<struct v4l2_plane> v4l2_planes_;
57 }; 60 };
58 61
59 } // namespace media 62 } // namespace media
60 63
61 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_SINGLE_PLANE_H_ 64 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_SINGLE_PLANE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698