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

Unified Diff: media/capture/video/linux/v4l2_capture_delegate_multi_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: rebase -- hubbe@ added more VideoPixelFormats 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/linux/v4l2_capture_delegate_multi_plane.h
diff --git a/media/capture/video/linux/v4l2_capture_delegate_multi_plane.h b/media/capture/video/linux/v4l2_capture_delegate_multi_plane.h
deleted file mode 100644
index 265f6b5a543fa9e5ea094bc48ea0ac48743c0724..0000000000000000000000000000000000000000
--- a/media/capture/video/linux/v4l2_capture_delegate_multi_plane.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_
-#define MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_MULTI_PLANE_H_
-
-#include <stdint.h>
-
-#include "base/memory/ref_counted.h"
-#include "build/build_config.h"
-#include "media/capture/video/linux/v4l2_capture_delegate.h"
-
-#if defined(OS_OPENBSD)
-#error "OpenBSD does not support MPlane capture API."
-#endif
-
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace media {
-
-// V4L2 specifics for MPLANE API.
-class V4L2CaptureDelegateMultiPlane final : public V4L2CaptureDelegate {
- public:
- V4L2CaptureDelegateMultiPlane(
- const VideoCaptureDevice::Name& device_name,
- const scoped_refptr<base::SingleThreadTaskRunner>& v4l2_task_runner,
- int power_line_frequency);
-
- private:
- // BufferTracker derivation to implement construction semantics for MPLANE.
- class BufferTrackerMPlane final : public BufferTracker {
- public:
- bool Init(int fd, const v4l2_buffer& buffer) override;
-
- private:
- ~BufferTrackerMPlane() override {}
- };
-
- ~V4L2CaptureDelegateMultiPlane() override;
-
- // V4L2CaptureDelegate virtual methods implementation.
- scoped_refptr<BufferTracker> CreateBufferTracker() const override;
- bool FillV4L2Format(v4l2_format* format,
- uint32_t width,
- uint32_t height,
- uint32_t pixelformat_fourcc) const override;
- void FinishFillingV4L2Buffer(v4l2_buffer* buffer) const override;
- void SetPayloadSize(const scoped_refptr<BufferTracker>& buffer_tracker,
- const v4l2_buffer& buffer) const override;
- void SendBuffer(const scoped_refptr<BufferTracker>& buffer_tracker,
- const v4l2_format& format) const override;
-
- // Vector to allocate and track as many v4l2_plane structs as planes, needed
- // for v4l2_buffer.m.planes. This is a scratchpad marked mutable to enable
- // using it in otherwise const methods.
- mutable std::vector<struct v4l2_plane> v4l2_planes_;
-};
-
-} // namespace media
-
-#endif // MEDIA_VIDEO_CAPTURE_LINUX_V4L2_CAPTURE_DELEGATE_SINGLE_PLANE_H_

Powered by Google App Engine
This is Rietveld 408576698