-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of Aravis camera adapter. Add to build system.
- Loading branch information
Hazen Babcock
authored and
Hazen Babcock
committed
Feb 10, 2024
1 parent
85867ae
commit 23ba384
Showing
5 changed files
with
110 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// #pragma warning(push) | ||
// #pragma warning(disable : 4482) | ||
// #pragma warning(disable : 4251) // Note: need to have a C++ interface, i.e., compiler versions need to match! | ||
|
||
#include "AravisCamera.h" | ||
#include "ModuleInterface.h" | ||
#include <vector> | ||
#include <string> | ||
#include <algorithm> | ||
|
||
|
||
/* | ||
* Module functions. | ||
*/ | ||
MODULE_API void InitializeModuleData() | ||
{ | ||
} | ||
|
||
MODULE_API MM::Device* CreateDevice(const char* deviceName) | ||
{ | ||
return new AravisCamera(deviceName); | ||
} | ||
|
||
MODULE_API void DeleteDevice(MM::Device* pDevice) | ||
{ | ||
} | ||
|
||
|
||
/* | ||
* Camera class and methods. | ||
*/ | ||
|
||
AravisCamera::AravisCamera(const char *name) : CCameraBase<AravisCamera>() | ||
{ | ||
} | ||
|
||
AravisCamera::~AravisCamera() | ||
{ | ||
} | ||
|
||
|
||
/* | ||
* Acquistion thread class and methods. | ||
*/ | ||
AravisAcquisitionThread::AravisAcquisitionThread(AravisCamera * aCam) | ||
{ | ||
} | ||
|
||
AravisAcquisitionThread::~AravisAcquisitionThread() | ||
{ | ||
} | ||
|
||
// #pragma warning(pop) |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef _ARAVIS_CAMERA_H_ | ||
#define _ARAVIS_CAMERA_H_ | ||
|
||
#include "DeviceBase.h" | ||
#include "ImgBuffer.h" | ||
#include "DeviceThreads.h" | ||
#include "arv.h" | ||
|
||
|
||
class AravisAcquisitionThread; | ||
|
||
|
||
class AravisCamera : public CCameraBase<AravisCamera> | ||
{ | ||
public: | ||
AravisCamera(const char *serialNumber); | ||
~AravisCamera(); | ||
}; | ||
|
||
|
||
class AravisAcquisitionThread : public MMDeviceThreadBase | ||
{ | ||
public: | ||
AravisAcquisitionThread(AravisCamera *aCam); | ||
~AravisAcquisitionThread(); | ||
}; | ||
|
||
#endif // !_ARAVIS_CAMERA_H_ | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
AM_CXXFLAGS=$(MMDEVAPI_CXXFLAGS) | ||
|
||
# Linux, use output from from pkg-config (aravis-0.10). | ||
ARAVISCPPFLAGS = -I/usr/local/include/aravis-0.10 -I/usr/include/libxml2 -I/usr/include/libusb-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
ARAVISLDFLAGS = -Wl,--enable-new-dtags -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu,-L/usr/local/lib/x86_64-linux-gnu | ||
ARAVISLDLIBS = -laravis-0.10 -lgio-2.0 -lgobject-2.0 -lglib-2.0 | ||
|
||
deviceadapter_LTLIBRARIES=libmmgr_dal_AravisCamera.la | ||
libmmgr_dal_AravisCamera_la_SOURCES=AravisCamera.cpp AravisCamera.h | ||
libmmgr_dal_AravisCamera_la_CPPFLAGS=$(ARAVISCPPFLAGS) | ||
libmmgr_dal_AravisCamera_la_LIBADD=$(MMDEVAPI_LIBADD) $(ARAVISLDLIBS) | ||
libmmgr_dal_AravisCamera_la_LDFLAGS=$(MMDEVAPI_LDFLAGS) $(ARAVISLDLIBS) $(ARAVISLDFLAGS) | ||
|
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