Skip to content

Commit

Permalink
Merge pull request IntelRealSense#1444 from tingshao/new_option
Browse files Browse the repository at this point in the history
[Node.js] Add new option value for auto exposure
  • Loading branch information
Halton Huo authored Mar 30, 2018
2 parents 9db6221 + 9d8799b commit 1def32a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wrappers/nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4316,6 +4316,12 @@ const option = {
* <br>Equivalent to its uppercase counterpart.
*/
option_stereo_baseline: 'stereo-baseline',
/**
* String literal of <code>'auto-exposure-converage-step'</code>. <br>Allows dynamically ajust
* the converge step value of the target exposure in Auto-Exposure algorithm
* <br>Equivalent to its uppercase counterpart.
*/
option_auto_exposure_converge_step: 'auto-exposure-converge-step',
/**
* Enable / disable color backlight compensatio.<br>Equivalent to its lowercase counterpart.
* @type {Integer}
Expand Down Expand Up @@ -4548,6 +4554,13 @@ const option = {
* @type {Integer}
*/
OPTION_STEREO_BASELINE: RS2.RS2_OPTION_STEREO_BASELINE,
/**
* Allows dynamically ajust the converge step value of the target exposure in Auto-Exposure
* algorithm
* <br>Equivalent to its lowercase counterpart
* @type {Integer}
*/
OPTION_AUTO_EXPOSURE_CONVERGE_STEP: RS2.RS2_OPTION_AUTO_EXPOSURE_CONVERGE_STEP,
/**
* Number of enumeration values. Not a valid input: intended to be used in for-loops.
* @type {Integer}
Expand Down Expand Up @@ -4646,6 +4659,8 @@ const option = {
return this.option_holes_fill;
case this.OPTION_STEREO_BASELINE:
return this.option_stereo_baseline;
case this.OPTION_AUTO_EXPOSURE_CONVERGE_STEP:
return this.option_auto_exposure_converge_step;
default:
throw new TypeError(
'option.optionToString(option) expects a valid value as the 1st argument');
Expand Down
1 change: 1 addition & 0 deletions wrappers/nodejs/src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4557,6 +4557,7 @@ void InitModule(v8::Local<v8::Object> exports) {
_FORCE_SET_ENUM(RS2_OPTION_FILTER_SMOOTH_DELTA);
_FORCE_SET_ENUM(RS2_OPTION_HOLES_FILL);
_FORCE_SET_ENUM(RS2_OPTION_STEREO_BASELINE);
_FORCE_SET_ENUM(RS2_OPTION_AUTO_EXPOSURE_CONVERGE_STEP);
_FORCE_SET_ENUM(RS2_OPTION_COUNT);

// rs2_camera_info
Expand Down

0 comments on commit 1def32a

Please sign in to comment.