Adds C methods that take a cv::Mat* (#21)

Some implementations of OpenCV use cv::Mat as their native pointer
rather then CvMat, so we need to support both in the C interface
This commit is contained in:
Thad House
2016-11-30 22:00:44 -08:00
committed by Peter Johnson
parent 1332ba3ad2
commit 3625f11e08
5 changed files with 19 additions and 0 deletions

View File

@@ -294,4 +294,10 @@ std::vector<std::string> GetNetworkInterfaces();
} // namespace cs
// C functions taking a cv::Mat* for specific interop implementations
extern "C" {
uint64_t CS_GrabSinkFrameCpp(CS_Sink sink, cv::Mat* image, CS_Status* status);
void CS_PutSourceFrameCpp(CS_Source source, cv::Mat* image, CS_Status* status);
}
#endif // CSCORE_CPP_H_