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
5199cd9c
Commit
5199cd9c
authored
May 13, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary #include "windows.h" from "highgui_c.h"
parent
9d787afe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
18 deletions
+15
-18
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+4
-8
precomp.hpp
modules/highgui/src/precomp.hpp
+6
-0
window_w32.cpp
modules/highgui/src/window_w32.cpp
+5
-10
No files found.
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
5199cd9c
...
...
@@ -43,11 +43,6 @@
#define __OPENCV_HIGHGUI_H__
#include "opencv2/core/core_c.h"
#if defined WIN32 || defined _WIN32
#include <windows.h>
#undef min
#undef max
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -462,9 +457,10 @@ CVAPI(void) cvReleaseVideoWriter( CvVideoWriter** writer );
#if defined WIN32 || defined _WIN32
typedef
int
(
CV_CDECL
*
CvWin32WindowCallback
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
);
CVAPI
(
void
)
cvSetPreprocessFuncWin32
(
CvWin32WindowCallback
on_preprocess
);
CVAPI
(
void
)
cvSetPostprocessFuncWin32
(
CvWin32WindowCallback
on_postprocess
);
CVAPI
(
void
)
cvSetPreprocessFuncWin32_
(
const
void
*
callback
);
CVAPI
(
void
)
cvSetPostprocessFuncWin32_
(
const
void
*
callback
);
#define cvSetPreprocessFuncWin32(callback) cvSetPreprocessFuncWin32_((const void*)(callback))
#define cvSetPostprocessFuncWin32(callback) cvSetPostprocessFuncWin32_((const void*)(callback))
#endif
...
...
modules/highgui/src/precomp.hpp
View file @
5199cd9c
...
...
@@ -60,6 +60,12 @@
#include "cvconfig.h"
#if defined WIN32 || defined _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min
#undef max
void
FillBitmapInfo
(
BITMAPINFO
*
bmi
,
int
width
,
int
height
,
int
bpp
,
int
origin
);
#endif
...
...
modules/highgui/src/window_w32.cpp
View file @
5199cd9c
...
...
@@ -1671,23 +1671,18 @@ CV_IMPL const char* cvGetWindowName( void* window_handle )
}
typedef
int
(
CV_CDECL
*
CvWin32WindowCallback
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
);
CV_IMPL
void
cvSetPreprocessFuncWin32
(
int
(
__cdecl
*
on_preprocess
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
)
)
cvSetPreprocessFuncWin32
_
(
const
void
*
callback
)
{
if
(
on_preprocess
)
hg_on_preprocess
=
on_preprocess
;
else
assert
(
on_preprocess
);
hg_on_preprocess
=
(
CvWin32WindowCallback
)
callback
;
}
CV_IMPL
void
cvSetPostprocessFuncWin32
(
int
(
__cdecl
*
on_postprocess
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
)
)
cvSetPostprocessFuncWin32
_
(
const
void
*
callback
)
{
if
(
on_postprocess
)
hg_on_postprocess
=
on_postprocess
;
else
assert
(
on_postprocess
);
hg_on_postprocess
=
(
CvWin32WindowCallback
)
callback
;
}
#endif //WIN32
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