Skip to content

Commit

Permalink
Merge pull request #4162 from ev-mp/a_factor_wrappers
Browse files Browse the repository at this point in the history
Add a-factor APIs to the SDK wrappers
  • Loading branch information
ev-mp authored Jun 6, 2019
2 parents 3d451f0 + 2eed052 commit d6f6be8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/librealsense2/rs.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {
#include "h/rs_sensor.h"

#define RS2_API_MAJOR_VERSION 2
#define RS2_API_MINOR_VERSION 22
#define RS2_API_MINOR_VERSION 23
#define RS2_API_PATCH_VERSION 0
#define RS2_API_BUILD_VERSION 0

Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<package format="2">
<name>librealsense2</name>
<!-- The version tag needs to be updated with each new release of librealsense -->
<version>2.22.0</version>
<version>2.23.0</version>
<description>
Library for capturing data from the Intel(R) RealSense(TM) SR300, D400 Depth cameras and T2xx Tracking devices. This effort was initiated to better support researchers, creative coders, and app developers in domains such as robotics, virtual reality, and the internet of things. Several often-requested features of RealSense(TM); devices are implemented in this project.
</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN // slimmer compile times
#define _WINSOCKAPI_ // stops windows.h from including winsock.h (and lets us include winsock2.h)
#ifndef NOMINMAX
#define NOMINMAX // windows c++ pollutes the environment like any factory
#ifndef NOMINMAX
#define NOMINMAX // windows c++ pollutes the environment like any factory
#endif // NOMINMAX
#endif
#include <windows.h>
Expand Down
8 changes: 7 additions & 1 deletion wrappers/csharp/Intel.RealSense/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,13 @@ internal static MemCpyDelegate GetMethod()
internal static extern void rs2_set_census(IntPtr dev, IntPtr group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);

[DllImport(dllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern void rs2_get_census(IntPtr dev, IntPtr group, int mode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);
internal static extern void rs2_get_census(IntPtr dev, IntPtr group, int mode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);

[DllImport(dllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern void rs2_set_amp_factor(IntPtr dev, IntPtr group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);

[DllImport(dllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern void rs2_get_amp_factor(IntPtr dev, IntPtr group, int mode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);

[DllImport(dllName, CallingConvention = CallingConvention.Cdecl)]
internal static extern void rs2_load_json(IntPtr dev, [MarshalAs(UnmanagedType.LPStr)] string json_content, uint content_size, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(ErrorMarshaler))] out object error);
Expand Down
2 changes: 2 additions & 0 deletions wrappers/python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,8 @@ PYBIND11_MODULE(NAME, m) {
.def("get_ae_control", &rs400::advanced_mode::get_ae_control, "mode"_a = 0) //STAEControl
.def("set_census", &rs400::advanced_mode::set_census, "group"_a) //STCensusRadius
.def("get_census", &rs400::advanced_mode::get_census, "mode"_a = 0) //STCensusRadius
.def("set_amp_factor", &rs400::advanced_mode::set_amp_factor, "group"_a) //STAFactor
.def("get_amp_factor", &rs400::advanced_mode::get_amp_factor, "mode"_a = 0) //STAFactor
.def("serialize_json", &rs400::advanced_mode::serialize_json)
.def("load_json", &rs400::advanced_mode::load_json, "json_content"_a);

Expand Down

0 comments on commit d6f6be8

Please sign in to comment.