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

Unified Diff: media/capture/video/win/sink_input_pin_win.h

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « media/capture/video/win/sink_filter_win.cc ('k') | media/capture/video/win/sink_input_pin_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/win/sink_input_pin_win.h
diff --git a/media/capture/video/win/sink_input_pin_win.h b/media/capture/video/win/sink_input_pin_win.h
deleted file mode 100644
index a88a33397bc466af4d92bf5ff669e09a27a7f7d1..0000000000000000000000000000000000000000
--- a/media/capture/video/win/sink_input_pin_win.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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.
-
-// Implement a DirectShow input pin used for receiving captured frames from
-// a DirectShow Capture filter.
-
-#ifndef MEDIA_CAPTURE_VIDEO_WIN_SINK_INPUT_PIN_WIN_H_
-#define MEDIA_CAPTURE_VIDEO_WIN_SINK_INPUT_PIN_WIN_H_
-
-#include "base/macros.h"
-#include "media/base/video_capture_types.h"
-#include "media/capture/video/video_capture_device.h"
-#include "media/capture/video/win/pin_base_win.h"
-#include "media/capture/video/win/sink_filter_win.h"
-
-namespace media {
-
-// Const used for converting Seconds to REFERENCE_TIME.
-extern const REFERENCE_TIME kSecondsToReferenceTime;
-
-// Input pin of the SinkFilter.
-class SinkInputPin : public PinBase {
- public:
- SinkInputPin(IBaseFilter* filter, SinkFilterObserver* observer);
-
- void SetRequestedMediaFormat(VideoPixelFormat pixel_format,
- float frame_rate,
- const BITMAPINFOHEADER& info_header);
- // Returns the capability that is negotiated when this
- // pin is connected to a media filter.
- const VideoCaptureFormat& resulting_format() const {
- return resulting_format_;
- }
-
- // Implement PinBase.
- bool IsMediaTypeValid(const AM_MEDIA_TYPE* media_type) override;
- bool GetValidMediaType(int index, AM_MEDIA_TYPE* media_type) override;
-
- STDMETHOD(Receive)(IMediaSample* media_sample) override;
-
- private:
- ~SinkInputPin() override;
-
- VideoPixelFormat requested_pixel_format_;
- float requested_frame_rate_;
- BITMAPINFOHEADER requested_info_header_;
- VideoCaptureFormat resulting_format_;
- SinkFilterObserver* observer_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(SinkInputPin);
-};
-
-} // namespace media
-
-#endif // MEDIA_CAPTURE_VIDEO_WIN_SINK_INPUT_PIN_WIN_H_
« no previous file with comments | « media/capture/video/win/sink_filter_win.cc ('k') | media/capture/video/win/sink_input_pin_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698