Delphi-OpenCV/source/opencv_classes/highgui_prx.cpp
Laentir Valetov d219c19bf9 Refactoring opencv_classes
Signed-off-by: Laentir Valetov <laex@bk.ru>
2016-07-23 18:12:28 +04:00

53 lines
984 B
C++

#include "stdafx.h"
namespace cv
{
//////////////////// VidoCapture ////////////////////
ICLASS_API VideoCapture* __stdcall CreateVideoCapture()
{
return new VideoCapture;
};
ICLASS_API bool __stdcall VideoCaptureOpen(VideoCapture* e, int CamNumber)
{
return e->open(CamNumber);
};
ICLASS_API bool __stdcall VideoCaptureOpenFileName(VideoCapture* e, char* FileName)
{
return e->open(FileName);
};
ICLASS_API bool __stdcall VideoCaptureisOpened(VideoCapture* e)
{
return e->isOpened();
};
ICLASS_API bool __stdcall VideoCaptureRead(VideoCapture* e, Mat** M)
{
Mat *_M = new Mat;
bool r=e->read(*_M);
*M = _M;
return r;
};
ICLASS_API bool __stdcall VideoCaptureSet(VideoCapture* e, int propId, double value)
{
return e->set(propId, value);
}
ICLASS_API double __stdcall VideoCaptureGet(VideoCapture* e, int propId)
{
return e->get(propId);
}
ICLASS_API void __stdcall DestroyVideoCapture(VideoCapture* e)
{
delete e;
};
}