Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
17b18de5
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
17b18de5
编写于
6月 16, 2011
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added missing evcode.h; made videoinput optional (ticket #1142)
上级
802fcc57
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
79 addition
and
5 deletion
+79
-5
3rdparty/include/dshow/dshow.h
3rdparty/include/dshow/dshow.h
+1
-1
3rdparty/include/dshow/evcode.h
3rdparty/include/dshow/evcode.h
+68
-0
CMakeLists.txt
CMakeLists.txt
+9
-3
modules/highgui/src/cap_dshow.cpp
modules/highgui/src/cap_dshow.cpp
+1
-1
未找到文件。
3rdparty/include/dshow/dshow.h
浏览文件 @
17b18de5
...
...
@@ -44,7 +44,7 @@
/* FIXME: #include <amaudio.h>*/
#endif
#include <dshow/control.h>
#include <evcode.h>
#include <
dshow/
evcode.h>
#include <dshow/uuids.h>
#include <errors.h>
/* FIXME: #include <edevdefs.h> */
...
...
3rdparty/include/dshow/evcode.h
0 → 100644
浏览文件 @
17b18de5
#ifndef _EVCODE_H
#define _EVCODE_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/*--- DirectShow Reference - Constants and GUIDs - Event Notification Codes */
#define EC_ACTIVATE 0x0013
#define EC_BUFFERING_DATA 0x0011
#define EC_BUILT 0x0300
#define EC_CLOCK_CHANGED 0x000D
#define EC_CLOCK_UNSET 0x0051
#define EC_CODECAPI_EVENT 0x0057
#define EC_COMPLETE 0x0001
#define EC_DEVICE_LOST 0x001F
#define EC_DISPLAY_CHANGED 0x0016
#define EC_END_OF_SEGMENT 0x001C
#define EC_ERROR_STILLPLAYING 0x0008
#define EC_ERRORABORT 0x0003
#define EC_EXTDEVICE_MODE_CHANGE 0x0031
#define EC_FULLSCREEN_LOST 0x0012
#define EC_GRAPH_CHANGED 0x0050
#define EC_LENGTH_CHANGED 0x001E
#define EC_NEED_RESTART 0x0014
#define EC_NOTIFY_WINDOW 0x0019
#define EC_OLE_EVENT 0x0018
#define EC_OPENING_FILE 0x0010
#define EC_PALETTE_CHANGED 0x0009
#define EC_PAUSED 0x000E
#define EC_PREPROCESS_COMPLETE 0x0056
#define EC_QUALITY_CHANGE 0x000B
#define EC_REPAINT 0x0005
#define EC_SEGMENT_STARTED 0x001D
#define EC_SHUTTING_DOWN 0x000C
#define EC_SNDDEV_IN_ERROR 0x0200
#define EC_SNDDEV_OUT_ERROR 0x0201
#define EC_STARVATION 0x0017
#define EC_STATE_CHANGE 0x0032
#define EC_STEP_COMPLETE 0x0024
#define EC_STREAM_CONTROL_STARTED 0x001B
#define EC_STREAM_CONTROL_STOPPED 0x001A
#define EC_STREAM_ERROR_STILLPLAYING 0x0007
#define EC_STREAM_ERROR_STOPPED 0x0006
#define EC_TIMECODE_AVAILABLE 0x0030
#define EC_UNBUILT 0x0301
#define EC_USERABORT 0x0002
#define EC_VIDEO_SIZE_CHANGED 0x000A
#define EC_VMR_RENDERDEVICE_SET 0x0053
#define EC_VMR_SURFACE_FLIPPED 0x0054
#define EC_VMR_RECONNECTION_FAILED 0x0055
#define EC_WINDOW_DESTROYED 0x0015
#define EC_WMT_EVENT 0x0252
#define EC_WMT_INDEX_EVENT 0x0251
#define EC_USER 0x8000
/*--- DirectShow Reference - DirectShow Structures */
typedef
struct
{
HRESULT
hrStatus
;
void
*
pData
;
}
AM_WMT_EVENT_DATA
;
#ifdef __cplusplus
}
#endif
#endif
CMakeLists.txt
浏览文件 @
17b18de5
...
...
@@ -844,8 +844,14 @@ endif()
################## Extra HighGUI libs on Windows ###################
if
(
WIN32
)
set
(
HAVE_VIDEOINPUT 1
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
comctl32 gdi32 ole32 strmiids
)
set
(
WITH_VIDEOINPUT ON CACHE BOOL
"Build HighGUI with DirectShow support"
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
comctl32 gdi32 ole32
)
if
(
WITH_VIDEOINPUT
)
set
(
HAVE_VIDEOINPUT 1
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
strmiids
)
endif
()
if
(
MSVC
)
set
(
HIGHGUI_LIBRARIES
${
HIGHGUI_LIBRARIES
}
vfw32
)
...
...
@@ -1474,7 +1480,7 @@ message(STATUS " Video I/O: QTKit")
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
and HAVE_VIDEOINPUT
)
message
(
STATUS
""
)
message
(
STATUS
" Video I/O: DirectShow"
)
endif
()
...
...
modules/highgui/src/cap_dshow.cpp
浏览文件 @
17b18de5
...
...
@@ -41,7 +41,7 @@
#include "precomp.hpp"
#if
defined WIN32 || defined _WIN32
#if
(defined WIN32 || defined _WIN32) && defined HAVE_VIDEOINPUT
/*
DirectShow-based Video Capturing module is based on
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录