mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
merged fix for x64 MSVC compile errors in highgui into trunk
This commit is contained in:
parent
be38864dd0
commit
e90f197beb
@ -257,7 +257,7 @@ set_target_properties(${the_target} PROPERTIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib")
|
set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
# Dependencies of this target:
|
# Dependencies of this target:
|
||||||
|
@ -184,6 +184,7 @@ CvCapture* cvCreateCameraCapture_DShow( int index )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#pragma comment(lib, "strmiids.lib")
|
||||||
#if defined _M_X64
|
#if defined _M_X64
|
||||||
#pragma comment(lib, "videoInput64.lib")
|
#pragma comment(lib, "videoInput64.lib")
|
||||||
#else
|
#else
|
||||||
|
@ -74,8 +74,8 @@ CV_IMPL CvSeq* cvPointSeqFromMat( int seq_kind, const CvArr* arr,
|
|||||||
namespace cv
|
namespace cv
|
||||||
{
|
{
|
||||||
|
|
||||||
static void copyMakeBorder_8u( const uchar* src, int srcstep, Size srcroi,
|
static void copyMakeBorder_8u( const uchar* src, size_t srcstep, Size srcroi,
|
||||||
uchar* dst, int dststep, Size dstroi,
|
uchar* dst, size_t dststep, Size dstroi,
|
||||||
int top, int left, int cn, int borderType )
|
int top, int left, int cn, int borderType )
|
||||||
{
|
{
|
||||||
const int isz = (int)sizeof(int);
|
const int isz = (int)sizeof(int);
|
||||||
@ -155,8 +155,8 @@ static void copyMakeBorder_8u( const uchar* src, int srcstep, Size srcroi,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void copyMakeConstBorder_8u( const uchar* src, int srcstep, Size srcroi,
|
static void copyMakeConstBorder_8u( const uchar* src, size_t srcstep, Size srcroi,
|
||||||
uchar* dst, int dststep, Size dstroi,
|
uchar* dst, size_t dststep, Size dstroi,
|
||||||
int top, int left, int cn, const uchar* value )
|
int top, int left, int cn, const uchar* value )
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
@ -205,14 +205,14 @@ void copyMakeBorder( const Mat& src, Mat& dst, int top, int bottom,
|
|||||||
if( borderType != BORDER_CONSTANT )
|
if( borderType != BORDER_CONSTANT )
|
||||||
copyMakeBorder_8u( src.data, src.step, src.size(),
|
copyMakeBorder_8u( src.data, src.step, src.size(),
|
||||||
dst.data, dst.step, dst.size(),
|
dst.data, dst.step, dst.size(),
|
||||||
top, left, src.elemSize(), borderType );
|
top, left, (int)src.elemSize(), borderType );
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
double buf[4];
|
double buf[4];
|
||||||
scalarToRawData(value, buf, src.type());
|
scalarToRawData(value, buf, src.type());
|
||||||
copyMakeConstBorder_8u( src.data, src.step, src.size(),
|
copyMakeConstBorder_8u( src.data, src.step, src.size(),
|
||||||
dst.data, dst.step, dst.size(),
|
dst.data, dst.step, dst.size(),
|
||||||
top, left, src.elemSize(), (uchar*)buf );
|
top, left, (int)src.elemSize(), (uchar*)buf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user