Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.bytedeco.javacpp.presets.RealSense Maven / Gradle / Ivy
/*
* Copyright (C) 2016-2017 Jérémy Laviole, Samuel Audet
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
* the Free Software Foundation (subject to the "Classpath" exception),
* either version 2, or any later version (collectively, the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.gnu.org/licenses/
* http://www.gnu.org/software/classpath/license.html
*
* or as provided in the LICENSE.txt file that accompanied this code.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.bytedeco.javacpp.presets;
import org.bytedeco.javacpp.FunctionPointer;
import org.bytedeco.javacpp.Loader;
import org.bytedeco.javacpp.Pointer;
import org.bytedeco.javacpp.annotation.ByVal;
import org.bytedeco.javacpp.annotation.Cast;
import org.bytedeco.javacpp.annotation.Platform;
import org.bytedeco.javacpp.annotation.Properties;
import org.bytedeco.javacpp.tools.Info;
import org.bytedeco.javacpp.tools.InfoMap;
import org.bytedeco.javacpp.tools.InfoMapper;
/**
*
* @author Jérémy Laviole
*/
@Properties(target = "org.bytedeco.javacpp.RealSense", value = {
@Platform(value = {"linux-x86", "macosx-x86", "windows-x86"}, compiler = "cpp11",
include = {"", "", "", ""},
link = "[email protected] "),
@Platform(value = "macosx", preload = "[email protected] ", preloadpath = "/usr/local/lib/"),
@Platform(value = "windows", preload = {
"api-ms-win-crt-locale-l1-1-0", "api-ms-win-crt-string-l1-1-0", "api-ms-win-crt-stdio-l1-1-0", "api-ms-win-crt-math-l1-1-0",
"api-ms-win-crt-heap-l1-1-0", "api-ms-win-crt-runtime-l1-1-0", "api-ms-win-crt-convert-l1-1-0", "api-ms-win-crt-environment-l1-1-0",
"api-ms-win-crt-time-l1-1-0", "api-ms-win-crt-filesystem-l1-1-0", "api-ms-win-crt-utility-l1-1-0", "api-ms-win-crt-multibyte-l1-1-0",
"api-ms-win-core-string-l1-1-0", "api-ms-win-core-errorhandling-l1-1-0", "api-ms-win-core-timezone-l1-1-0", "api-ms-win-core-file-l1-1-0",
"api-ms-win-core-namedpipe-l1-1-0", "api-ms-win-core-handle-l1-1-0", "api-ms-win-core-file-l2-1-0", "api-ms-win-core-heap-l1-1-0",
"api-ms-win-core-libraryloader-l1-1-0", "api-ms-win-core-synch-l1-1-0", "api-ms-win-core-processthreads-l1-1-0",
"api-ms-win-core-processenvironment-l1-1-0", "api-ms-win-core-datetime-l1-1-0", "api-ms-win-core-localization-l1-2-0",
"api-ms-win-core-sysinfo-l1-1-0", "api-ms-win-core-synch-l1-2-0", "api-ms-win-core-console-l1-1-0", "api-ms-win-core-debug-l1-1-0",
"api-ms-win-core-rtlsupport-l1-1-0", "api-ms-win-core-processthreads-l1-1-1", "api-ms-win-core-file-l1-2-0", "api-ms-win-core-profile-l1-1-0",
"api-ms-win-core-memory-l1-1-0", "api-ms-win-core-util-l1-1-0", "api-ms-win-core-interlocked-l1-1-0", "ucrtbase",
"vcruntime140", "msvcp140", "concrt140"}),
@Platform(value = "windows-x86", preloadpath = {"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/redist/x86/Microsoft.VC140.CRT/",
"C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x86/"}),
@Platform(value = "windows-x86_64", preloadpath = {"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/redist/x64/Microsoft.VC140.CRT/",
"C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x64/"}) })
public class RealSense implements InfoMapper {
public void map(InfoMap infoMap) {
infoMap.put(new Info("std::runtime_error").cast().pointerTypes("Pointer"))
.put(new Info("std::timed_mutex").cast().pointerTypes("Pointer"))
.put(new Info("RS_API_VERSION_STR").cppTypes("const char*").pointerTypes("String").translate(false))
.put(new Info("rs::log_severity::none").javaNames("log_none"))
.put(new Info("rs::output_buffer_format::native").javaNames("output_native"))
.put(new Info("rs::stream::depth", "rs::stream::color", "rs::stream::infrared", "rs::stream::infrared2").skip())
.put(new Info("rs::device").purify())
.put(new Info("std::function").pointerTypes("MotionFunction"))
.put(new Info("std::function").pointerTypes("FrameFunction"))
.put(new Info("std::function").pointerTypes("TimestampFunction"))
.put(new Info("std::function").pointerTypes("LogCallbackFunction"));
}
public static class MotionFunction extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public MotionFunction(Pointer p) { super(p); }
protected MotionFunction() { allocate(); }
private native void allocate();
public native void call(@ByVal @Cast("rs::motion_data*") Pointer motion);
}
public static class FrameFunction extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public FrameFunction(Pointer p) { super(p); }
protected FrameFunction() { allocate(); }
private native void allocate();
public native void call(@ByVal @Cast("rs::frame*") Pointer frame);
}
public static class TimestampFunction extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TimestampFunction(Pointer p) { super(p); }
protected TimestampFunction() { allocate(); }
private native void allocate();
public native void call(@ByVal @Cast("rs::timestamp_data*") Pointer timestamp);
}
public static class LogCallbackFunction extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public LogCallbackFunction(Pointer p) { super(p); }
protected LogCallbackFunction() { allocate(); }
private native void allocate();
public native void call(@Cast("rs::log_severity") int severity, @Cast("const char*") String message);
}
}