Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f8e1e88c
Commit
f8e1e88c
authored
Jul 01, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
we do not need strmiids.lib anymore
parent
e9583832
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
15 deletions
+46
-15
CMakeLists.txt
CMakeLists.txt
+0
-1
cap_dshow.cpp
modules/highgui/src/cap_dshow.cpp
+46
-14
No files found.
CMakeLists.txt
View file @
f8e1e88c
...
...
@@ -927,7 +927,6 @@ if(WIN32)
if
(
WITH_VIDEOINPUT
)
set
(
HAVE_VIDEOINPUT 1
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
strmiids
)
endif
()
if
(
MSVC
)
...
...
modules/highgui/src/cap_dshow.cpp
View file @
f8e1e88c
...
...
@@ -89,7 +89,7 @@ Thanks to:
#include "precomp.hpp"
#if _MSC_VER >= 1
4
00
#if _MSC_VER >= 100
#pragma warning(disable: 4995)
#endif
...
...
@@ -103,13 +103,17 @@ Thanks to:
#include <vector>
//Include Directshow stuff here so we don't worry about needing all the h files.
#if
def _MSC_VER
#if
_MSC_VER >= 1500
#include "DShow.h"
#include "strmif.h"
#include "Aviriff.h"
#include "dvdmedia.h"
#include "bdaiface.h"
#else
#ifdef _MSC_VER
#define __extension__
typedef
BOOL
WINBOOL
;
#endif
#include "dshow/dshow.h"
#include "dshow/dvdmedia.h"
#include "dshow/bdatypes.h"
...
...
@@ -167,18 +171,6 @@ MEDIASUBTYPE_Y422 : TGUID ='{32323459-0000-0010-8000-00AA00389B71}';
MEDIASUBTYPE_GREY : TGUID ='{59455247-0000-0010-8000-00AA00389B71}';
*/
#ifdef _MSC_VER
#include <initguid.h>
#endif
DEFINE_GUID
(
IID_ISampleGrabber
,
0x6b652fff
,
0x11fe
,
0x4fce
,
0x92
,
0xad
,
0x02
,
0x66
,
0xb5
,
0xd7
,
0xc7
,
0x8f
);
DEFINE_GUID
(
CLSID_SampleGrabber
,
0xc1f400a0
,
0x3f08
,
0x11d3
,
0x9f
,
0x0b
,
0x00
,
0x60
,
0x08
,
0x03
,
0x9e
,
0x37
);
DEFINE_GUID
(
CLSID_NullRenderer
,
0xc1f400a4
,
0x3f08
,
0x11d3
,
0x9f
,
0x0b
,
0x00
,
0x60
,
0x08
,
0x03
,
0x9e
,
0x37
);
DEFINE_GUID
(
IID_IMPEG2PIDMap
,
0xafb6c2a1
,
0x2c41
,
0x11d3
,
0x8a
,
0x60
,
0x00
,
0x00
,
0xf8
,
0x1e
,
0x0e
,
0x4a
);
#include <initguid.h>
DEFINE_GUID
(
MEDIASUBTYPE_GREY
,
0x59455247
,
0x0000
,
0x0010
,
0x80
,
0x00
,
...
...
@@ -188,6 +180,46 @@ DEFINE_GUID(MEDIASUBTYPE_Y8, 0x20203859, 0x0000, 0x0010, 0x80, 0x00,
DEFINE_GUID
(
MEDIASUBTYPE_Y800
,
0x30303859
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
CLSID_CaptureGraphBuilder2
,
0xbf87b6e1
,
0x8c27
,
0x11d0
,
0xb3
,
0xf0
,
0x00
,
0xaa
,
0x00
,
0x37
,
0x61
,
0xc5
);
DEFINE_GUID
(
CLSID_FilterGraph
,
0xe436ebb3
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
CLSID_NullRenderer
,
0xc1f400a4
,
0x3f08
,
0x11d3
,
0x9f
,
0x0b
,
0x00
,
0x60
,
0x08
,
0x03
,
0x9e
,
0x37
);
DEFINE_GUID
(
CLSID_SampleGrabber
,
0xc1f400a0
,
0x3f08
,
0x11d3
,
0x9f
,
0x0b
,
0x00
,
0x60
,
0x08
,
0x03
,
0x9e
,
0x37
);
DEFINE_GUID
(
CLSID_SystemDeviceEnum
,
0x62be5d10
,
0x60eb
,
0x11d0
,
0xbd
,
0x3b
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0xce
,
0x86
);
DEFINE_GUID
(
CLSID_VideoInputDeviceCategory
,
0x860bb310
,
0x5d01
,
0x11d0
,
0xbd
,
0x3b
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0xce
,
0x86
);
DEFINE_GUID
(
FORMAT_VideoInfo
,
0x05589f80
,
0xc356
,
0x11ce
,
0xbf
,
0x01
,
0x00
,
0xaa
,
0x00
,
0x55
,
0x59
,
0x5a
);
DEFINE_GUID
(
IID_IAMAnalogVideoDecoder
,
0xc6e13350
,
0x30ac
,
0x11d0
,
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
);
DEFINE_GUID
(
IID_IAMCameraControl
,
0xc6e13370
,
0x30ac
,
0x11d0
,
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
);
DEFINE_GUID
(
IID_IAMCrossbar
,
0xc6e13380
,
0x30ac
,
0x11d0
,
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
);
DEFINE_GUID
(
IID_IAMStreamConfig
,
0xc6e13340
,
0x30ac
,
0x11d0
,
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
);
DEFINE_GUID
(
IID_IAMVideoProcAmp
,
0xc6e13360
,
0x30ac
,
0x11d0
,
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
);
DEFINE_GUID
(
IID_IBaseFilter
,
0x56a86895
,
0x0ad4
,
0x11ce
,
0xb0
,
0x3a
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
IID_ICaptureGraphBuilder2
,
0x93e5a4e0
,
0x2d50
,
0x11d2
,
0xab
,
0xfa
,
0x00
,
0xa0
,
0xc9
,
0xc6
,
0xe3
,
0x8d
);
DEFINE_GUID
(
IID_ICreateDevEnum
,
0x29840822
,
0x5b84
,
0x11d0
,
0xbd
,
0x3b
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0xce
,
0x86
);
DEFINE_GUID
(
IID_IGraphBuilder
,
0x56a868a9
,
0x0ad4
,
0x11ce
,
0xb0
,
0x3a
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
IID_IMPEG2PIDMap
,
0xafb6c2a1
,
0x2c41
,
0x11d3
,
0x8a
,
0x60
,
0x00
,
0x00
,
0xf8
,
0x1e
,
0x0e
,
0x4a
);
DEFINE_GUID
(
IID_IMediaControl
,
0x56a868b1
,
0x0ad4
,
0x11ce
,
0xb0
,
0x3a
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
IID_IMediaFilter
,
0x56a86899
,
0x0ad4
,
0x11ce
,
0xb0
,
0x3a
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
IID_ISampleGrabber
,
0x6b652fff
,
0x11fe
,
0x4fce
,
0x92
,
0xad
,
0x02
,
0x66
,
0xb5
,
0xd7
,
0xc7
,
0x8f
);
DEFINE_GUID
(
LOOK_UPSTREAM_ONLY
,
0xac798be0
,
0x98e3
,
0x11d1
,
0xb3
,
0xf1
,
0x00
,
0xaa
,
0x00
,
0x37
,
0x61
,
0xc5
);
DEFINE_GUID
(
MEDIASUBTYPE_AYUV
,
0x56555941
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_IYUV
,
0x56555949
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_RGB24
,
0xe436eb7d
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
MEDIASUBTYPE_RGB32
,
0xe436eb7e
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
MEDIASUBTYPE_RGB555
,
0xe436eb7c
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
MEDIASUBTYPE_RGB565
,
0xe436eb7b
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
DEFINE_GUID
(
MEDIASUBTYPE_UYVY
,
0x59565955
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_Y211
,
0x31313259
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_Y411
,
0x31313459
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_Y41P
,
0x50313459
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_YUY2
,
0x32595559
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_YUYV
,
0x56595559
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_YV12
,
0x32315659
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_YVU9
,
0x39555659
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIASUBTYPE_YVYU
,
0x55595659
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIATYPE_Interleaved
,
0x73766169
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
MEDIATYPE_Video
,
0x73646976
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
PIN_CATEGORY_CAPTURE
,
0xfb6c4281
,
0x0353
,
0x11d1
,
0x90
,
0x5f
,
0x00
,
0x00
,
0xc0
,
0xcc
,
0x16
,
0xba
);
DEFINE_GUID
(
PIN_CATEGORY_PREVIEW
,
0xfb6c4282
,
0x0353
,
0x11d1
,
0x90
,
0x5f
,
0x00
,
0x00
,
0xc0
,
0xcc
,
0x16
,
0xba
);
interface
ISampleGrabberCB
:
public
IUnknown
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment