Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/videoio/src/cap_dshow.hpp
16354 views
1
/*M///////////////////////////////////////////////////////////////////////////////////////
2
//
3
// This file is part of OpenCV project.
4
// It is subject to the license terms in the LICENSE file found in the top-level directory
5
// of this distribution and at http://opencv.org/license.html.
6
//
7
// Copyright (C) 2014, Itseez, Inc., all rights reserved.
8
// Third party copyrights are property of their respective owners.
9
//
10
//M*/
11
12
#ifndef _CAP_DSHOW_HPP_
13
#define _CAP_DSHOW_HPP_
14
15
#ifdef HAVE_DSHOW
16
17
class videoInput;
18
namespace cv
19
{
20
21
class VideoCapture_DShow : public IVideoCapture
22
{
23
public:
24
VideoCapture_DShow(int index);
25
virtual ~VideoCapture_DShow();
26
27
virtual double getProperty(int propIdx) const CV_OVERRIDE;
28
virtual bool setProperty(int propIdx, double propVal) CV_OVERRIDE;
29
30
virtual bool grabFrame() CV_OVERRIDE;
31
virtual bool retrieveFrame(int outputType, OutputArray frame) CV_OVERRIDE;
32
virtual int getCaptureDomain() CV_OVERRIDE;
33
virtual bool isOpened() const;
34
protected:
35
void open(int index);
36
void close();
37
38
int m_index, m_width, m_height, m_fourcc;
39
int m_widthSet, m_heightSet;
40
static videoInput g_VI;
41
};
42
43
}
44
45
#endif //HAVE_DSHOW
46
#endif //_CAP_DSHOW_HPP_
47