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

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

Issue 1685713003: Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@ comments and reverted change to WeakPtr Created 4 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_SINGLE_PLANE_H_
6 #define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_SINGLE_PLANE_H_
7
8 #include <stdint.h>
9
10 #include "base/memory/ref_counted.h"
11 #include "media/capture/video/linux/v4l2_capture_delegate.h"
12 #include "media/capture/video/video_capture_device.h"
13
14 namespace base {
15 class SingleThreadTaskRunner;
16 } // namespace base
17
18 namespace media {
19
20 // V4L2 specifics for SPLANE API.
21 class V4L2CaptureDelegateSinglePlane final : public V4L2CaptureDelegate {
22 public:
23 V4L2CaptureDelegateSinglePlane(
24 const VideoCaptureDevice::Name& device_name,
25 const scoped_refptr<base::SingleThreadTaskRunner>& v4l2_task_runner,
26 int power_line_frequency)
27 : V4L2CaptureDelegate(device_name,
28 v4l2_task_runner,
29 power_line_frequency) {}
30
31 private:
32 // BufferTracker derivation to implement construction semantics for SPLANE.
33 class BufferTrackerSPlane final : public BufferTracker {
34 public:
35 bool Init(int fd, const v4l2_buffer& buffer) override;
36
37 private:
38 ~BufferTrackerSPlane() override {}
39 };
40
41 ~V4L2CaptureDelegateSinglePlane() override {}
42
43 // V4L2CaptureDelegate virtual methods implementation.
44 scoped_refptr<BufferTracker> CreateBufferTracker() const override;
45 bool FillV4L2Format(v4l2_format* format,
46 uint32_t width,
47 uint32_t height,
48 uint32_t pixelformat_fourcc) const override;
49 void FinishFillingV4L2Buffer(v4l2_buffer* buffer) const override;
50 void SetPayloadSize(const scoped_refptr<BufferTracker>& buffer_tracker,
51 const v4l2_buffer& buffer) const override;
52 void SendBuffer(const scoped_refptr<BufferTracker>& buffer_tracker,
53 const v4l2_format& format) const override;
54 };
55
56 } // namespace media
57
58 #endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698