-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
9 changed files
with
98 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,32 +34,29 @@ | |
import org.bytedeco.javacpp.tools.InfoMapper; | ||
|
||
/** | ||
* Wrapper for Point Grey FlyCapture2_C library (the C API v.2). | ||
* Wrapper for Point Grey FlyCapture2 library (the C++ API v.2). | ||
* | ||
* @author Jarek Sacha | ||
*/ | ||
@Properties(target = "org.bytedeco.javacpp.FlyCapture2", value = { | ||
@Platform(value = {"linux", "windows"}, include = {"<FlyCapture2Platform.h>", "<FlyCapture2Defs.h>", | ||
"<Error.h>", "<BusManager.h>", "<CameraBase.h>", "<Camera.h>", "<GigECamera.h>", "<Image.h>", | ||
"<Utilities.h>", "<AVIRecorder.h>", "<TopologyNode.h>", "<ImageStatistics.h>"}), | ||
@Platform(value = "linux", link = "[email protected]", includepath = "/usr/include/flycapture/"), | ||
@Platform(value = "windows", link = "FlyCapture2", | ||
include = {"<FlyCapture2Platform.h>", "<FlyCapture2Defs.h>", "<Error.h>", "<BusManager.h>", | ||
"<CameraBase.h>", "<Camera.h>", "<GigECamera.h>", "<Image.h>", "<Utilities.h>", | ||
"<AVIRecorder.h>", "<TopologyNode.h>", "<ImageStatistics.h>"}, | ||
includepath = {"C:/Program Files/Point Grey Research/FlyCapture2/include/"}), | ||
@Platform(value = "windows-x86", | ||
linkpath = {"C:/Program Files/Point Grey Research/FlyCapture2/lib/"}, | ||
define = {"WIN32"}, | ||
preloadpath = {"C:/Program Files/Point Grey Research/FlyCapture2/bin/"}), | ||
@Platform(value = "windows-x86_64", | ||
linkpath = {"C:/Program Files/Point Grey Research/FlyCapture2/lib64/"}, | ||
define = {"WIN64"}, | ||
preloadpath = {"C:/Program Files/Point Grey Research/FlyCapture2/bin64/"})}) | ||
includepath = "C:/Program Files/Point Grey Research/FlyCapture2/include/"), | ||
@Platform(value = "windows-x86", define = "WIN32", | ||
linkpath = "C:/Program Files/Point Grey Research/FlyCapture2/lib/", | ||
preloadpath = "C:/Program Files/Point Grey Research/FlyCapture2/bin/"), | ||
@Platform(value = "windows-x86_64", define = "WIN64", | ||
linkpath = "C:/Program Files/Point Grey Research/FlyCapture2/lib64/", | ||
preloadpath = "C:/Program Files/Point Grey Research/FlyCapture2/bin64/") }) | ||
public class FlyCapture2 implements InfoMapper { | ||
public void map(InfoMap infoMap) { | ||
infoMap.put(new Info("FLYCAPTURE2_API", "FLYCAPTURE2_LOCAL").cppTypes().annotations().cppText("")) | ||
.put(new Info("defined(WIN32) || defined(WIN64)").define(true)) | ||
.put(new Info("ErrorType").cast().valueTypes("int")) | ||
.put(new Info("FlyCapture2::ImageEventCallback").valueTypes("ImageEventCallback") | ||
.pointerTypes("@Cast(\"FlyCapture2::ImageEventCallback*\") @ByPtrPtr ImageEventCallback")) | ||
.put(new Info("FlyCapture2::CameraBase::GetRegisterString", "FlyCapture2::CameraBase::StartSyncCapture").skip()); | ||
|
||
.put(new Info("defined(WIN32) || defined(WIN64)").define()) | ||
.put(new Info("FlyCapture2::ImageEventCallback").valueTypes("ImageEventCallback") | ||
.pointerTypes("@Cast(\"FlyCapture2::ImageEventCallback*\") @ByPtrPtr ImageEventCallback")) | ||
.put(new Info("FlyCapture2::CameraBase::GetRegisterString", "FlyCapture2::CameraBase::StartSyncCapture").skip()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,25 +39,26 @@ | |
* @author Jarek Sacha | ||
*/ | ||
@Properties(target = "org.bytedeco.javacpp.FlyCapture2_C", value = { | ||
@Platform(value = {"linux", "windows"}, include = {"<FlyCapture2Defs_C.h>", "<FlyCapture2_C.h>"}), | ||
@Platform(value = "linux", link = "[email protected]", includepath = "/usr/include/flycapture/C/"), | ||
@Platform(value = "windows", link = "FlyCapture2_C", preload = {"libiomp5md", "FlyCapture2"}, | ||
include = {"<FlyCapture2Defs_C.h>", "<FlyCapture2_C.h>"}, | ||
includepath = {"C:/Program Files/Point Grey Research/FlyCapture2/include/C/"}), | ||
includepath = "C:/Program Files/Point Grey Research/FlyCapture2/include/C/"), | ||
@Platform(value = "windows-x86", | ||
linkpath = {"C:/Program Files/Point Grey Research/FlyCapture2/lib/C/"}, | ||
linkpath = "C:/Program Files/Point Grey Research/FlyCapture2/lib/C/", | ||
preloadpath = {"C:/Program Files/Point Grey Research/FlyCapture2/bin/", | ||
"C:/Program Files/Point Grey Research/FlyCapture2/bin/C/"}), | ||
"C:/Program Files/Point Grey Research/FlyCapture2/bin/C/"}), | ||
@Platform(value = "windows-x86_64", | ||
linkpath = {"C:/Program Files/Point Grey Research/FlyCapture2/lib64/C/"}, | ||
linkpath = "C:/Program Files/Point Grey Research/FlyCapture2/lib64/C/", | ||
preloadpath = {"C:/Program Files/Point Grey Research/FlyCapture2/bin64/", | ||
"C:/Program Files/Point Grey Research/FlyCapture2/bin64/C/"})}) | ||
"C:/Program Files/Point Grey Research/FlyCapture2/bin64/C/"}) }) | ||
public class FlyCapture2_C implements InfoMapper { | ||
public void map(InfoMap infoMap) { | ||
infoMap.put(new Info("FLYCAPTURE2_C_API", "FLYCAPTURE2_C_CALL_CONVEN").cppTypes().annotations().cppText("")) | ||
.put(new Info("fc2TriggerDelayInfo").cast().pointerTypes("fc2PropertyInfo")) | ||
.put(new Info("fc2TriggerDelay").cast().pointerTypes("fc2Property")) | ||
.put(new Info("fc2ImageEventCallback").valueTypes("fc2ImageEventCallback") | ||
.pointerTypes("@Cast(\"fc2ImageEventCallback*\") @ByPtrPtr fc2ImageEventCallback")) | ||
.put(new Info("fc2Context").valueTypes("fc2Context") | ||
.pointerTypes("@Cast(\"fc2Context*\") @ByPtrPtr fc2Context")); | ||
.put(new Info("fc2TriggerDelayInfo").cast().pointerTypes("fc2PropertyInfo")) | ||
.put(new Info("fc2TriggerDelay").cast().pointerTypes("fc2Property")) | ||
.put(new Info("fc2ImageEventCallback").valueTypes("fc2ImageEventCallback") | ||
.pointerTypes("@Cast(\"fc2ImageEventCallback*\") @ByPtrPtr fc2ImageEventCallback")) | ||
.put(new Info("fc2Context").valueTypes("fc2Context") | ||
.pointerTypes("@Cast(\"fc2Context*\") @ByPtrPtr fc2Context")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters