-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Atik SDK to 2023.07.14.1456. (#817)
- Loading branch information
1 parent
50dab60
commit 00a322d
Showing
9 changed files
with
116 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#ifndef ATIK_DEFS_H | ||
#define ATIK_DEFS_H | ||
|
||
/// @file AtikDefs.h | ||
/// @brief Atik SDK structure definitions. | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
/// | ||
/// @brief Structure of the data, a pointer to which is, passed to | ||
/// the info parameter of FastCallbackEx function set by a call to | ||
/// ArtemisSetFastCallbackEx. | ||
/// | ||
/// @see ArtemisSetFastCallbackEx | ||
/// | ||
struct FastCallbackInfo_ | ||
{ | ||
/// Set to the size of this structure minus 1. | ||
unsigned char size; | ||
|
||
/// Number of dropped frames since the previous callback. | ||
unsigned char droppedFrames; | ||
|
||
/// Number of dropped frames in software since the previous callback. | ||
unsigned char softDroppedFrames; | ||
|
||
/// Number of dropped frames in camera since the previous callback. | ||
unsigned char hardDroppedFrames; | ||
|
||
/// Start of exposure year. | ||
int exposureStartTimeYear; | ||
|
||
/// Start of exposure month. | ||
int exposureStartTimeMonth; | ||
|
||
/// Start of exposure day. | ||
int exposureStartTimeDay; | ||
|
||
/// Start of exposure hour (24 hour clock format) (UTC). | ||
int exposureStartTimeHour; | ||
|
||
/// Start of exposure minute (UTC). | ||
int exposureStartTimeMinute; | ||
|
||
/// Start of exposure second (UTC). | ||
int exposureStartTimeSecond; | ||
|
||
/// Start of exposure millisecond (UTC). | ||
int exposureStartTimeMS; | ||
}; | ||
typedef struct FastCallbackInfo_ FastCallbackInfo; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // ATIK_DEFS_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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,32 @@ | ||
#!/bin/bash | ||
|
||
# The Atik SDK uncompresses as a list of files prefixed with Windows backslashes | ||
|
||
if [ -z "${1:-}" -o ! -d "${1:-}" -o ! -f "${1:-}/include\\AtikCameras.h" ] | ||
then | ||
echo "Picks Atik libraries and headers from an extracted SDK and moves them here in ./libatik" >&2 | ||
echo "Usage: $0 <sdk folder>" >&2 | ||
exit 2 | ||
fi | ||
|
||
archive="$1" | ||
|
||
set -eux -o pipefail | ||
|
||
copy_lib() { | ||
find $archive -name "$1" | \ | ||
while read -r f | ||
do | ||
cp "$f" "./$2/$(basename "$f" | sed -e 's/.*\\//' -e 's/so$/bin/')" | ||
done | ||
} | ||
|
||
copy_lib '*ARM\\64\\With*.so' 'arm64' | ||
copy_lib '*ARM\\32\\With*.so' 'armhf' | ||
copy_lib '*linux\\64\\With*.so' 'x64' | ||
copy_lib '*linux\\32\\With*.so' 'x86' | ||
|
||
cp "$1/lib\\macos\\libatikcameras.dylib" "./mac/libatikcameras.bin" | ||
|
||
cp "$1/include\\AtikCameras.h" . | ||
cp "$1/include\\AtikDefs.h" . |
Binary file not shown.
Binary file not shown.