Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
rs_internal.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2  Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
3 
10 #ifndef LIBREALSENSE_RS2_INTERNAL_H
11 #define LIBREALSENSE_RS2_INTERNAL_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 #include "rs_types.h"
17 #include "rs_context.h"
18 #include "rs_sensor.h"
19 #include "rs_frame.h"
20 #include "rs_option.h"
25 typedef enum rs2_recording_mode
26 {
27  RS2_RECORDING_MODE_BLANK_FRAMES, /* frame metadata will be recorded, but pixel data will be replaced with zeros to save space */
28  RS2_RECORDING_MODE_COMPRESSED, /* frames will be encoded using a proprietary lossy encoding, aiming at x5 compression at some CPU expense */
29  RS2_RECORDING_MODE_BEST_QUALITY, /* frames will not be compressed, but rather stored as-is. This gives best quality and low CPU overhead, but you might run out of memory */
32 
34 typedef struct rs2_video_stream
35 {
37  int index;
38  int uid;
39  int width;
40  int height;
41  int fps;
42  int bpp;
46 
49 {
50  void* pixels;
51  void(*deleter)(void*);
52  int stride;
53  int bpp;
59 
68 rs2_context* rs2_create_recording_context(int api_version, const char* filename, const char* section, rs2_recording_mode mode, rs2_error** error);
69 
79 rs2_context* rs2_create_mock_context(int api_version, const char* filename, const char* section, rs2_error** error);
80 
88 
96 rs2_sensor* rs2_software_device_add_sensor(rs2_device* dev, const char* sensor_name, rs2_error** error);
97 
105 
113 
121 
129 void rs2_software_sensor_add_read_only_option(rs2_sensor* sensor, rs2_option option, float val, rs2_error** error);
130 
138 void rs2_software_sensor_update_read_only_option(rs2_sensor* sensor, rs2_option option, float val, rs2_error** error);
139 #ifdef __cplusplus
140 }
141 #endif
142 #endif
rs2_format fmt
Definition: rs_internal.h:43
rs2_time_t timestamp
Definition: rs_internal.h:54
struct rs2_software_video_frame rs2_software_video_frame
All the parameters are requaired to define video frame.
struct rs2_video_stream rs2_video_stream
All the parameters are requaired to defind video stream.
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
rs2_recording_mode
Definition: rs_internal.h:25
Definition: rs_internal.h:28
struct rs2_context rs2_context
Definition: rs_types.h:167
int bpp
Definition: rs_internal.h:53
All the parameters are requaired to defind video stream.
Definition: rs_internal.h:34
rs2_stream type
Definition: rs_internal.h:36
int bpp
Definition: rs_internal.h:42
int fps
Definition: rs_internal.h:41
struct rs2_sensor rs2_sensor
Definition: rs_types.h:170
rs2_context * rs2_create_recording_context(int api_version, const char *filename, const char *section, rs2_recording_mode mode, rs2_error **error)
const rs2_stream_profile * profile
Definition: rs_internal.h:57
int stride
Definition: rs_internal.h:52
Exposes RealSense frame functionality for C compilers.
int uid
Definition: rs_internal.h:38
Exposes RealSense structs.
rs2_matchers
Specifies types of different matchers.
Definition: rs_types.h:127
rs2_device * rs2_create_software_device(rs2_error **error)
void rs2_software_sensor_add_read_only_option(rs2_sensor *sensor, rs2_option option, float val, rs2_error **error)
struct rs2_stream_profile rs2_stream_profile
Definition: rs_types.h:158
int width
Definition: rs_internal.h:39
Definition: rs_internal.h:30
Exposes RealSense sensor functionality for C compilers.
rs2_format
Format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:55
Exposes sensor options functionality for C compilers.
rs2_context * rs2_create_mock_context(int api_version, const char *filename, const char *section, rs2_error **error)
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:38
rs2_sensor * rs2_software_device_add_sensor(rs2_device *dev, const char *sensor_name, rs2_error **error)
void rs2_software_sensor_update_read_only_option(rs2_sensor *sensor, rs2_option option, float val, rs2_error **error)
Definition: rs_internal.h:27
rs2_stream_profile * rs2_software_sensor_add_video_stream(rs2_sensor *sensor, rs2_video_stream video_stream, rs2_error **error)
void rs2_software_device_create_matcher(rs2_device *dev, rs2_matchers matcher, rs2_error **error)
int index
Definition: rs_internal.h:37
rs2_timestamp_domain domain
Definition: rs_internal.h:55
struct rs2_device rs2_device
Definition: rs_types.h:148
int frame_number
Definition: rs_internal.h:56
Video stream intrinsics.
Definition: rs_types.h:56
void rs2_software_sensor_on_video_frame(rs2_sensor *sensor, rs2_software_video_frame frame, rs2_error **error)
rs2_intrinsics intrinsics
Definition: rs_internal.h:44
All the parameters are requaired to define video frame.
Definition: rs_internal.h:48
Exposes RealSense context functionality for C compilers.
void(* deleter)(void *)
Definition: rs_internal.h:51
void * pixels
Definition: rs_internal.h:50
struct rs2_error rs2_error
Definition: rs_types.h:149
double rs2_time_t
Definition: rs_types.h:180
Definition: rs_internal.h:29
int height
Definition: rs_internal.h:40
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition: rs_frame.h:19