Skip to content

Commit

Permalink
* Upgrade presets for CUDA 12.3.1, cuDNN 8.9.7, NCCL 2.19.3, nvCOMP …
Browse files Browse the repository at this point in the history
…3.0.5, DepthAI 2.24.0
  • Loading branch information
saudet committed Dec 29, 2023
1 parent 6e36cac commit c03017a
Show file tree
Hide file tree
Showing 52 changed files with 984 additions and 143 deletions.
24 changes: 12 additions & 12 deletions .github/actions/deploy-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ runs:
export ARCH=arm64
export ARCH_CUDA=sbsa
export PREFIX=aarch64-linux-gnu
export CUDA=cuda-repo-rhel8-12-3-local-12.3.0_545.23.06-1.aarch64.rpm
export CUDNN=8.9.5.29-1.cuda12.2.aarch64
export NCCL=2.18.5-1+cuda12.2.aarch64
export NVCOMP=nvcomp_3.0.4_SBSA_12.x
export CUDA=cuda-repo-rhel8-12-3-local-12.3.1_545.23.08-1.aarch64.rpm
export CUDNN=8.9.7.29-1.cuda12.2.aarch64
export NCCL=2.19.3-1+cuda12.3.aarch64
export NVCOMP=nvcomp_3.0.5_SBSA_12.x
export USERLAND_BUILDME="buildme --aarch64"
elif [[ "$CI_DEPLOY_PLATFORM" == "linux-ppc64le" ]]; then
export ARCH=ppc64el
export ARCH_CUDA=ppc64le
export PREFIX=powerpc64le-linux-gnu
export CUDA=cuda-repo-rhel8-12-3-local-12.3.0_545.23.06-1.ppc64le.rpm
export CUDNN=8.9.5.29-1.cuda12.2.ppc64le
export NCCL=2.18.5-1+cuda12.2.ppc64le
export CUDA=cuda-repo-rhel8-12-3-local-12.3.1_545.23.08-1.ppc64le.rpm
export CUDNN=8.9.7.29-1.cuda12.2.ppc64le
export NCCL=2.19.3-1+cuda12.3.ppc64le
elif [[ "$CI_DEPLOY_PLATFORM" == "linux-x86" ]]; then
export ARCH=i386
export PREFIX=i686-linux-gnu
elif [[ "$CI_DEPLOY_PLATFORM" == "linux-x86_64" ]]; then
export ARCH=amd64
export ARCH_CUDA=x86_64
export PREFIX=x86_64-linux-gnu
export CUDA=cuda-repo-rhel8-12-3-local-12.3.0_545.23.06-1.x86_64.rpm
export CUDNN=8.9.5.29-1.cuda12.2.x86_64
export NCCL=2.18.5-1+cuda12.2.x86_64
export NVCOMP=nvcomp_3.0.4_x86_64_12.x
export CUDA=cuda-repo-rhel8-12-3-local-12.3.1_545.23.08-1.x86_64.rpm
export CUDNN=8.9.7.29-1.cuda12.2.x86_64
export NCCL=2.19.3-1+cuda12.3.x86_64
export NVCOMP=nvcomp_3.0.5_x86_64_12.x
fi
echo "ARCH=$ARCH" >> $GITHUB_ENV
echo "PREFIX=$PREFIX" >> $GITHUB_ENV
Expand Down Expand Up @@ -156,7 +156,7 @@ runs:
$SUDO mv /usr/lib64/libcudnn* /usr/lib64/libnccl* /usr/local/cuda/lib64/
if [[ -n ${NVCOMP:-} ]]; then
curl -LO https://developer.download.nvidia.com/compute/nvcomp/3.0.4/local_installers/$NVCOMP.tgz
curl -LO https://developer.download.nvidia.com/compute/nvcomp/3.0.5/local_installers/$NVCOMP.tgz
$SUDO tar -xvf nvcomp_*.tgz -C /usr/local/cuda/lib64/ --strip-components=1 lib/
$SUDO tar -xvf nvcomp_*.tgz -C /usr/local/cuda/include/ --strip-components=1 include/
rm -f $NVCOMP.tgz
Expand Down
18 changes: 9 additions & 9 deletions .github/actions/deploy-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,27 @@ runs:
if "%CI_DEPLOY_PLATFORM%"=="windows-x86_64" if not "%CI_DEPLOY_NEED_CUDA%"=="" (
echo Installing CUDA, cuDNN, nvCOMP, etc
curl -LO https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_522.06_windows.exe
curl -LO https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda_12.3.0_545.84_windows.exe
curl -LO https://developer.download.nvidia.com/compute/cuda/12.3.1/local_installers/cuda_12.3.1_546.12_windows.exe
rem curl -LO https://developer.download.nvidia.com/compute/redist/cudnn/v8.8.0/local_installers/12.0/cudnn_8.8.0.121_windows.exe
python -m gdown.cli https://drive.google.com/uc?id=1-5QHvwDZC_1rhn5W6fRHNWicXRPtqt31
curl -LO http://www.winimage.com/zLibDll/zlib123dllx64.zip
curl -LO https://developer.download.nvidia.com/compute/nvcomp/3.0.4/local_installers/nvcomp_3.0.4_windows_12.x.zip
curl -LO https://developer.download.nvidia.com/compute/nvcomp/3.0.5/local_installers/nvcomp_3.0.5_windows_12.x.zip
cuda_11.8.0_522.06_windows.exe -s
bash -c "rm -Rf 'C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8'"
bash -c "mv 'C:/Program Files/NVIDIA Corporation/NvToolsExt' 'C:/Program Files/NVIDIA Corporation/NvToolsExt_old'"
cuda_12.3.0_545.84_windows.exe -s
cuda_12.3.1_546.12_windows.exe -s
bash -c "mv 'C:/Program Files/NVIDIA Corporation/NvToolsExt_old' 'C:/Program Files/NVIDIA Corporation/NvToolsExt'"
bash -c "ls 'C:/Program Files/NVIDIA Corporation/NvToolsExt'"
rem cudnn_8.8.0.121_windows.exe -s
unzip cudnn-windows-x86_64-8.9.5.29_cuda12-archive.zip
unzip cudnn-windows-x86_64-8.9.7.29_cuda12-archive.zip
unzip zlib123dllx64.zip
unzip nvcomp_3.0.4_windows_12.x.zip
unzip nvcomp_3.0.5_windows_12.x.zip
rem move "%ProgramFiles%\NVIDIA\CUDNN\v8.8\bin\*.dll" "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin"
rem move "%ProgramFiles%\NVIDIA\CUDNN\v8.8\include\*.h" "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include"
rem move "%ProgramFiles%\NVIDIA\CUDNN\v8.8\lib\x64\*.lib" "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\lib\x64"
move cudnn-windows-x86_64-8.9.5.29_cuda12-archive\bin\*.dll "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin"
move cudnn-windows-x86_64-8.9.5.29_cuda12-archive\include\*.h "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include"
move cudnn-windows-x86_64-8.9.5.29_cuda12-archive\lib\x64\*.lib "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\lib\x64"
move cudnn-windows-x86_64-8.9.7.29_cuda12-archive\bin\*.dll "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin"
move cudnn-windows-x86_64-8.9.7.29_cuda12-archive\include\*.h "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include"
move cudnn-windows-x86_64-8.9.7.29_cuda12-archive\lib\x64\*.lib "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\lib\x64"
move dll_x64\zlibwapi.dll "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin"
move include\* "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include"
move include\gdeflate "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include"
Expand Down Expand Up @@ -229,7 +229,7 @@ runs:
set "CUDA_PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3"
set "CUDA_PATH_V12_3=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3"
set "PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\libnvvp;%PATH%"
echo CUDA Version 12.3.0>"%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\version.txt"
echo CUDA Version 12.3.1>"%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.3\version.txt"
)
set "CCACHE_DIR=%USERPROFILE%\ccache"
set "PATH=C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%ProgramFiles%\apache-maven-3.6.3\bin;%PATH%"
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

* Include `timeapi.h` for system API of Windows ([pull #1447](https://github.com/bytedeco/javacpp-presets/pull/1447))
* Add Android and Windows builds to presets for DepthAI ([pull #1441](https://github.com/bytedeco/javacpp-presets/pull/1441))
* Add presets for nvCOMP 3.0.4 ([pull #1434](https://github.com/bytedeco/javacpp-presets/pull/1434)), SentencePiece 0.1.99 ([pull #1384](https://github.com/bytedeco/javacpp-presets/pull/1384))
* Add presets for nvCOMP 3.0.5 ([pull #1434](https://github.com/bytedeco/javacpp-presets/pull/1434)), SentencePiece 0.1.99 ([pull #1384](https://github.com/bytedeco/javacpp-presets/pull/1384))
* Refactor and improve presets for PyTorch ([pull #1360](https://github.com/bytedeco/javacpp-presets/pull/1360))
* Include `mkl_lapack.h` header file in presets for MKL ([issue #1388](https://github.com/bytedeco/javacpp-presets/issues/1388))
* Map new higher-level C++ API of Triton Inference Server ([pull #1361](https://github.com/bytedeco/javacpp-presets/pull/1361))
* Upgrade presets for OpenCV 4.8.1, FFmpeg 6.1, HDF5 1.14.3, MKL 2024.0, DNNL 3.3.3, OpenBLAS 0.3.25, ARPACK-NG 3.9.1, CPython 3.12.1, NumPy 1.26.2, SciPy 1.11.4, LLVM 17.0.6, Leptonica 1.83.1, Tesseract 5.3.3, CUDA 12.3.0, cuDNN 8.9.5, NCCL 2.18.5, PyTorch 2.1.2 ([pull #1426](https://github.com/bytedeco/javacpp-presets/pull/1426)), TensorFlow Lite 2.15.0, Triton Inference Server 2.38.0, DepthAI 2.23.0, ONNX 1.15.0, ONNX Runtime 1.16.3, TVM 0.14.0, and their dependencies
* Upgrade presets for OpenCV 4.8.1, FFmpeg 6.1, HDF5 1.14.3, MKL 2024.0, DNNL 3.3.3, OpenBLAS 0.3.25, ARPACK-NG 3.9.1, CPython 3.12.1, NumPy 1.26.2, SciPy 1.11.4, LLVM 17.0.6, Leptonica 1.83.1, Tesseract 5.3.3, CUDA 12.3.1, cuDNN 8.9.7, NCCL 2.19.3, PyTorch 2.1.2 ([pull #1426](https://github.com/bytedeco/javacpp-presets/pull/1426)), TensorFlow Lite 2.15.0, Triton Inference Server 2.38.0, DepthAI 2.24.0, ONNX 1.15.0, ONNX Runtime 1.16.3, TVM 0.14.0, and their dependencies

### June 6, 2023 version 1.5.9
* Virtualize `nvinfer1::IGpuAllocator` from TensorRT to allow customization ([pull #1367](https://github.com/bytedeco/javacpp-presets/pull/1367))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
* TensorRT 8.6.x https://developer.nvidia.com/tensorrt
* Triton Inference Server 2.38.x https://developer.nvidia.com/nvidia-triton-inference-server
* The Arcade Learning Environment 0.8.x https://github.com/mgbellemare/Arcade-Learning-Environment
* DepthAI 2.23.x https://github.com/luxonis/depthai-core
* DepthAI 2.24.x https://github.com/luxonis/depthai-core
* ONNX 1.15.x https://github.com/onnx/onnx
* nGraph 0.26.0 https://github.com/NervanaSystems/ngraph
* ONNX Runtime 1.16.x https://github.com/microsoft/onnxruntime
Expand Down
8 changes: 4 additions & 4 deletions cuda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Introduction
------------
This directory contains the JavaCPP Presets module for:

* CUDA 12.3.0 https://developer.nvidia.com/cuda-zone
* cuDNN 8.9.5 https://developer.nvidia.com/cudnn
* NCCL 2.18.5 https://developer.nvidia.com/nccl
* nvCOMP 3.0.4 https://developer.nvidia.com/nvcomp
* CUDA 12.3.1 https://developer.nvidia.com/cuda-zone
* cuDNN 8.9.7 https://developer.nvidia.com/cudnn
* NCCL 2.19.3 https://developer.nvidia.com/nccl
* nvCOMP 3.0.5 https://developer.nvidia.com/nvcomp

Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.

Expand Down
2 changes: 1 addition & 1 deletion cuda/src/main/java/org/bytedeco/cuda/presets/cusparse.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
@Properties(inherit = cudart.class, value = {
@Platform(include = "<cusparse.h>", link = "cusparse@.12", preload = "nvJitLink@.12"),
@Platform(value = "windows-x86_64", preload = {"cusparse64_12", "nvJitLink_120_0"})},
@Platform(value = "windows-x86_64", preload = {"nvJitLink_120_0", "cusparse64_12"})},
target = "org.bytedeco.cuda.cusparse", global = "org.bytedeco.cuda.global.cusparse")
@NoException
public class cusparse implements InfoMapper {
Expand Down
4 changes: 2 additions & 2 deletions depthai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Introduction
------------
This directory contains the JavaCPP Presets module for:

* DepthAI 2.23.0 https://luxonis.com/depthai
* DepthAI 2.24.0 https://luxonis.com/depthai

Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.

Expand Down Expand Up @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>depthai-platform</artifactId>
<version>2.23.0-1.5.10-SNAPSHOT</version>
<version>2.24.0-1.5.10-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
Expand Down
6 changes: 3 additions & 3 deletions depthai/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then
exit
fi

DEPTHAI_VERSION=2.23.0
DEPTHAI_VERSION=2.24.0
LIBUSB_VERSION=1.0.22
download https://github.com/luxonis/depthai-core/releases/download/v$DEPTHAI_VERSION/depthai-core-v$DEPTHAI_VERSION.tar.gz depthai-core-v$DEPTHAI_VERSION.tar.gz
download http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-$LIBUSB_VERSION/libusb-$LIBUSB_VERSION.tar.bz2/download libusb-$LIBUSB_VERSION.tar.bz2
Expand Down Expand Up @@ -131,14 +131,14 @@ case $PLATFORM in
export CC="cl.exe"
export CXX="cl.exe"
sedinplace 's:BUILD_SHARED_LIBS=ON:BUILD_SHARED_LIBS=OFF:g' cmake/Hunter/config.cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" -DDEPTHAI_ENABLE_BACKWARD=OFF -DBUILD_SHARED_LIBS=ON -DDEPTHAI_OPENCV_SUPPORT=ON .
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" -DDEPTHAI_ENABLE_BACKWARD=OFF -DBUILD_SHARED_LIBS=ON -DDEPTHAI_OPENCV_SUPPORT=ON -DOpenCV_DIR=$OPENCV_PATH .
"$CMAKE" --build . --config Release --target install -j $MAKEJ
;;
windows-x86_64)
export CC="cl.exe"
export CXX="cl.exe"
sedinplace 's:BUILD_SHARED_LIBS=ON:BUILD_SHARED_LIBS=OFF:g' cmake/Hunter/config.cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" -DDEPTHAI_ENABLE_BACKWARD=OFF -DBUILD_SHARED_LIBS=ON -DDEPTHAI_OPENCV_SUPPORT=ON .
"$CMAKE" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$INSTALL_PATH" -DCMAKE_INSTALL_LIBDIR="lib" -DDEPTHAI_ENABLE_BACKWARD=OFF -DBUILD_SHARED_LIBS=ON -DDEPTHAI_OPENCV_SUPPORT=ON -DOpenCV_DIR=$OPENCV_PATH .
"$CMAKE" --build . --config Release --target install -j $MAKEJ
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion depthai/platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>org.bytedeco</groupId>
<artifactId>depthai-platform</artifactId>
<version>2.23.0-${project.parent.version}</version>
<version>2.24.0-${project.parent.version}</version>
<name>JavaCPP Presets Platform for DepthAI</name>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion depthai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.bytedeco</groupId>
<artifactId>depthai</artifactId>
<version>2.23.0-${project.parent.version}</version>
<version>2.24.0-${project.parent.version}</version>
<name>JavaCPP Presets for DepthAI</name>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion depthai/samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>depthai-platform</artifactId>
<version>2.23.0-1.5.10-SNAPSHOT</version>
<version>2.24.0-1.5.10-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ public class CalibrationHandler extends Pointer {
* Get the Distortion Coefficients object
*
* @param cameraId Uses the cameraId to identify which distortion Coefficients to return.
* @return the distortion coefficients of the requested camera in this order: [k1,k2,p1,p2,k3,k4,k5,k6,s1,s2,s3,s4,τx,τy]
* @return the distortion coefficients of the requested camera in this order: [k1,k2,p1,p2,k3,k4,k5,k6,s1,s2,s3,s4,τx,τy] for CameraModel::Perspective
* or [k1, k2, k3, k4] for CameraModel::Fisheye
* see https://docs.opencv.org/4.5.4/d9/d0c/group__calib3d.html for Perspective model (Rational Polynomial Model)
* see https://docs.opencv.org/4.5.4/db/d58/group__calib3d__fisheye.html for Fisheye model
*/
public native @StdVector FloatPointer getDistortionCoefficients(CameraBoardSocket cameraId);
public native @StdVector FloatBuffer getDistortionCoefficients(@Cast("dai::CameraBoardSocket") int cameraId);
Expand Down
32 changes: 31 additions & 1 deletion depthai/src/gen/java/org/bytedeco/depthai/CameraControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,22 @@ public class CameraControl extends Buffer {
*/
public native @ByRef CameraControl setAutoExposureCompensation(int compensation);

/**
* Set a command to specify the maximum exposure time limit for auto-exposure. By default
* the AE algorithm prioritizes increasing exposure over ISO, up to around frame-time
* (subject to further limits imposed by anti-banding)
* @param maxExposureTimeUs Maximum exposure time in microseconds
*/
public native @ByRef CameraControl setAutoExposureLimit(@Cast("uint32_t") int maxExposureTimeUs);

/**
* Set a command to specify the maximum exposure time limit for auto-exposure. By default
* the AE algorithm prioritizes increasing exposure over ISO, up to around frame-time
* (subject to further limits imposed by anti-banding)
* @param maxExposureTime Maximum exposure time
*/
public native @ByRef CameraControl setAutoExposureLimit(@ByVal @Cast("std::chrono::microseconds*") Pointer maxExposureTime);

/**
* Set a command to specify anti-banding mode. Anti-banding / anti-flicker
* works in auto-exposure mode, by controlling the exposure time to be applied
Expand All @@ -202,7 +218,7 @@ public class CameraControl extends Buffer {
* @param exposureTime Exposure time
* @param sensitivityIso Sensitivity as ISO value, usual range 100..1600
*/
public native void setManualExposure(@ByVal @Cast("std::chrono::microseconds*") Pointer exposureTime, @Cast("uint32_t") int sensitivityIso);
public native @ByRef CameraControl setManualExposure(@ByVal @Cast("std::chrono::microseconds*") Pointer exposureTime, @Cast("uint32_t") int sensitivityIso);

// White Balance
/**
Expand Down Expand Up @@ -275,6 +291,20 @@ public class CameraControl extends Buffer {
public native @ByRef CameraControl setEffectMode(RawCameraControl.EffectMode mode);
public native @ByRef CameraControl setEffectMode(@Cast("dai::RawCameraControl::EffectMode") byte mode);

/**
* Set a command to specify control mode
* @param mode Control mode
*/
public native @ByRef CameraControl setControlMode(RawCameraControl.ControlMode mode);
public native @ByRef CameraControl setControlMode(@Cast("dai::RawCameraControl::ControlMode") byte mode);

/**
* Set a command to specify capture intent mode
* @param mode Capture intent mode
*/
public native @ByRef CameraControl setCaptureIntent(RawCameraControl.CaptureIntent mode);
public native @ByRef CameraControl setCaptureIntent(@Cast("dai::RawCameraControl::CaptureIntent") byte mode);

// Functions to retrieve properties
/**
* Check whether command to capture a still is set
Expand Down
2 changes: 2 additions & 0 deletions depthai/src/gen/java/org/bytedeco/depthai/Device.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public class Device extends DeviceBase {
private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, UsbSpeed maxUsbSpeed);
public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(config, devInfo, maxUsbSpeed); }
private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed);
public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd, @Cast("bool") boolean dumpOnly/*=false*/) { super((Pointer)null); allocate(config, devInfo, pathToCmd, dumpOnly); }
private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd, @Cast("bool") boolean dumpOnly/*=false*/);
public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd) { super((Pointer)null); allocate(config, devInfo, pathToCmd); }
private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd);
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
Expand Down
Loading

0 comments on commit c03017a

Please sign in to comment.