diff --git a/include/librealsense2/h/rs_frame.h b/include/librealsense2/h/rs_frame.h index d8edfe6078..07dd2e974a 100644 --- a/include/librealsense2/h/rs_frame.h +++ b/include/librealsense2/h/rs_frame.h @@ -62,18 +62,18 @@ typedef enum rs2_frame_metadata_value RS2_FRAME_METADATA_FRAME_LED_POWER , /**< Led power value 0-360. */ RS2_FRAME_METADATA_RAW_FRAME_SIZE , /**< The number of transmitted payload bytes, not including metadata */ RS2_FRAME_METADATA_GPIO_INPUT_DATA , /**< GPIO input data */ - RS2_FRAME_METADATA_SEQUENCE_NAME , /**< sub-preset id */ - RS2_FRAME_METADATA_SEQUENCE_ID , /**< sub-preset sequence id */ - RS2_FRAME_METADATA_SEQUENCE_SIZE , /**< sub-preset sequence size */ + RS2_FRAME_METADATA_SEQUENCE_NAME , /**< sub-preset id */ + RS2_FRAME_METADATA_SEQUENCE_ID , /**< sub-preset sequence id */ + RS2_FRAME_METADATA_SEQUENCE_SIZE , /**< sub-preset sequence size */ //mipi metadata_values - RS2_FRAME_METADATA_TRIGGER, - RS2_FRAME_METADATA_PRESET, - RS2_FRAME_METADATA_INPUT_WIDTH, - RS2_FRAME_METADATA_INPUT_HEIGHT, - RS2_FRAME_METADATA_SUB_PRESET_INFO, - RS2_FRAME_METADATA_CALIB_INFO, - RS2_FRAME_METADATA_CRC, + RS2_FRAME_METADATA_TRIGGER , /**< Frame trigger type */ + RS2_FRAME_METADATA_PRESET , /**< Preset id, used in MIPI SKU Metadata */ + RS2_FRAME_METADATA_INPUT_WIDTH , /**< Frame input width in pixels, used as safety attribute */ + RS2_FRAME_METADATA_INPUT_HEIGHT , /**< Frame input height in pixels, used as safety attribute */ + RS2_FRAME_METADATA_SUB_PRESET_INFO , /**< Sub-preset information */ + RS2_FRAME_METADATA_CALIB_INFO , /**< FW-controlled frame counter to be using in Calibration scenarios */ + RS2_FRAME_METADATA_CRC , /**< CRC checksum of the Metadata */ RS2_FRAME_METADATA_COUNT } rs2_frame_metadata_value; diff --git a/wrappers/nodejs/index.js b/wrappers/nodejs/index.js index 3260e4e802..7e74ee83e2 100644 --- a/wrappers/nodejs/index.js +++ b/wrappers/nodejs/index.js @@ -5684,6 +5684,90 @@ const frame_metadata = { * @type {Integer} */ FRAME_METADATA_LOW_LIGHT_COMPENSATION: RS2.RS2_FRAME_METADATA_LOW_LIGHT_COMPENSATION, + /** + * Emitter mode: 0 - all emitters disabled. 1 - laser enabled. 2 - auto laser enabled (opt). 3 - LED enabled (opt). + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_FRAME_EMITTER_MODE: RS2.RS2_FRAME_METADATA_FRAME_EMITTER_MODE, + /** + * Led power value 0-360. + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_FRAME_LED_POWER: RS2.RS2_FRAME_METADATA_FRAME_LED_POWER, + /** + * The number of transmitted payload bytes, not including metadata + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_RAW_FRAME_SIZE: RS2.RS2_FRAME_METADATA_RAW_FRAME_SIZE, + /** + * GPIO input data + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_GPIO_INPUT_DATA: RS2.RS2_FRAME_METADATA_GPIO_INPUT_DATA, + /** + * Sub-preset name. Used in advanced scenarios, such as HDR + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_SEQUENCE_NAME: RS2.RS2_FRAME_METADATA_SEQUENCE_NAME, + /** + * Sub-preset sequence id + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_SEQUENCE_ID: RS2.RS2_FRAME_METADATA_SEQUENCE_ID, + /** + * Sub-preset sequence size in bytes + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_SEQUENCE_SIZE: RS2.RS2_FRAME_METADATA_SEQUENCE_SIZE, + /** + * Frame trigger type, used in MIPI SKU Metadata + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_TRIGGER: RS2.RS2_FRAME_METADATA_TRIGGER, + /** + * Preset id, used in MIPI SKU Metadata + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_PRESET: RS2.RS2_FRAME_METADATA_PRESET, + /** + * Frame input width in pixels, used in MIPI SKU Metadata as safety attribute + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_INPUT_WIDTH: RS2.RS2_FRAME_METADATA_INPUT_WIDTH, + /** + * Frame input height in pixels, used in MIPI SKU Metadata as safety attribute + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_INPUT_HEIGHT: RS2.RS2_FRAME_METADATA_INPUT_HEIGHT, + /** + * Sub-preset information, used in MIPI SKU + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_SUB_PRESET_INFO: RS2.RS2_FRAME_METADATA_SUB_PRESET_INFO, + /** + * FW-controlled frame counter to be using in Calibration scenarios. Used with MIPI SKU only + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_CALIB_INFO: RS2.RS2_FRAME_METADATA_CALIB_INFO, + /** + * CRC checksum of the Metadata, avalable for MIPI SKU only + *
Equivalent to its lowercase counterpart + * @type {Integer} + */ + RS2_FRAME_METADATA_CRC: RS2.RS2_FRAME_METADATA_CRC, /** * Number of enumeration values. Not a valid input: intended to be used in for-loops. * @type {Integer} diff --git a/wrappers/nodejs/src/addon.cpp b/wrappers/nodejs/src/addon.cpp index 22334ef372..9fe4e3f854 100644 --- a/wrappers/nodejs/src/addon.cpp +++ b/wrappers/nodejs/src/addon.cpp @@ -4749,6 +4749,7 @@ void InitModule(v8::Local exports) { _FORCE_SET_ENUM(RS2_FRAME_METADATA_INPUT_WIDTH); _FORCE_SET_ENUM(RS2_FRAME_METADATA_INPUT_HEIGHT); _FORCE_SET_ENUM(RS2_FRAME_METADATA_SUB_PRESET_INFO); + _FORCE_SET_ENUM(RS2_FRAME_METADATA_CALIB_INFO); _FORCE_SET_ENUM(RS2_FRAME_METADATA_CRC); _FORCE_SET_ENUM(RS2_FRAME_METADATA_COUNT);