rs_frame.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_FRAME_H
11 #define LIBREALSENSE_RS2_FRAME_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 #include "rs_types.h"
17 
20 {
26 const char* rs2_timestamp_domain_to_string(rs2_timestamp_domain info);
27 
30 {
70 const char* rs2_frame_metadata_to_string(rs2_frame_metadata_value metadata);
71 const char* rs2_frame_metadata_value_to_string(rs2_frame_metadata_value metadata);
72 
75 {
79 const char* rs2_calib_target_type_to_string(rs2_calib_target_type type);
80 
88 rs2_metadata_type rs2_get_frame_metadata(const rs2_frame* frame, rs2_frame_metadata_value frame_metadata, rs2_error** error);
89 
97 int rs2_supports_frame_metadata(const rs2_frame* frame, rs2_frame_metadata_value frame_metadata, rs2_error** error);
98 
107 rs2_timestamp_domain rs2_get_frame_timestamp_domain(const rs2_frame* frameset, rs2_error** error);
108 
116 
124 
131 unsigned long long rs2_get_frame_number(const rs2_frame* frame, rs2_error** error);
132 
139 int rs2_get_frame_data_size(const rs2_frame* frame, rs2_error** error);
140 
147 const void* rs2_get_frame_data(const rs2_frame* frame, rs2_error** error);
148 
155 int rs2_get_frame_width(const rs2_frame* frame, rs2_error** error);
156 
163 int rs2_get_frame_height(const rs2_frame* frame, rs2_error** error);
164 
169 float rs2_depth_frame_get_units( const rs2_frame* frame, rs2_error** error );
170 
178 
187 
194 void rs2_frame_add_ref(rs2_frame* frame, rs2_error ** error);
195 
200 void rs2_release_frame(rs2_frame* frame);
201 
208 void rs2_keep_frame(rs2_frame* frame);
209 
218 
226 void rs2_export_to_ply(const rs2_frame* frame, const char* fname, rs2_frame* texture, rs2_error** error);
227 
236 
244 
252 
260 int rs2_is_frame_extendable_to(const rs2_frame* frame, rs2_extension extension_type, rs2_error ** error);
261 
277  int new_bpp, int new_width, int new_height, int new_stride, rs2_extension frame_type, rs2_error** error);
278 
290  rs2_extension frame_type, rs2_error** error);
291 
302 
313 
324 
332 
340 
341 
349 
358 void rs2_extract_target_dimensions(const rs2_frame* frame, rs2_calib_target_type calib_type, float * target_dims, unsigned int target_dims_size, rs2_error** error);
359 
360 #ifdef __cplusplus
361 }
362 #endif
363 #endif
void rs2_export_to_ply(const rs2_frame *frame, const char *fname, rs2_frame *texture, rs2_error **error)
Definition: rs.cpp:2162
float rs2_depth_frame_get_units(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:2356
int rs2_get_frame_points_count(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:2179
const rs2_stream_profile * rs2_get_frame_stream_profile(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:971
rs2_frame * rs2_allocate_composite_frame(rs2_source *source, rs2_frame **frames, int count, rs2_error **error)
Definition: rs.cpp:2127
rs2_sensor * rs2_get_frame_sensor(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:922
const char * rs2_timestamp_domain_to_string(rs2_timestamp_domain info)
Definition: rs.cpp:1267
const char * rs2_frame_metadata_to_string(rs2_frame_metadata_value metadata)
Definition: rs.cpp:1275
int rs2_is_frame_extendable_to(const rs2_frame *frame, rs2_extension extension_type, rs2_error **error)
Definition: rs.cpp:1461
rs2_frame * rs2_allocate_points(rs2_source *source, const rs2_stream_profile *new_stream, rs2_frame *original, rs2_error **error)
Definition: rs.cpp:1732
void rs2_keep_frame(rs2_frame *frame)
Definition: rs.cpp:1000
rs2_calib_target_type
Calibration target type.
Definition: rs_frame.h:74
rs2_time_t rs2_get_frame_timestamp(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:908
rs2_pixel * rs2_get_frame_texture_coordinates(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:2171
3D coordinates with origin at topmost left corner of the lense, with positive Z pointing away from th...
Definition: rs_types.h:117
const char * rs2_frame_metadata_value_to_string(rs2_frame_metadata_value metadata)
Definition: rs.cpp:1277
int rs2_supports_frame_metadata(const rs2_frame *frame, rs2_frame_metadata_value frame_metadata, rs2_error **error)
Definition: rs.cpp:838
The texture class.
Definition: example.hpp:402
::realsense_legacy_msgs::pose_< std::allocator< void > > pose
Definition: pose.h:88
GLuint index
int rs2_get_frame_height(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:955
def info(name, value, persistent=False)
Definition: test.py:301
int rs2_get_frame_stride_in_bytes(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:963
rs2_frame * rs2_allocate_synthetic_video_frame(rs2_source *source, const rs2_stream_profile *new_stream, rs2_frame *original, int new_bpp, int new_width, int new_height, int new_stride, rs2_extension frame_type, rs2_error **error)
Definition: rs.cpp:1704
int rs2_embedded_frames_count(rs2_frame *composite, rs2_error **error)
Definition: rs.cpp:2144
Exposes RealSense structs.
int rs2_get_frame_width(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:947
rs2_timestamp_domain rs2_get_frame_timestamp_domain(const rs2_frame *frameset, rs2_error **error)
Definition: rs.cpp:915
void rs2_synthetic_frame_ready(rs2_source *source, rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:1745
const char * rs2_calib_target_type_to_string(rs2_calib_target_type type)
Definition: rs.cpp:1269
unsigned long long rs2_get_frame_number(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:986
int rs2_get_frame_data_size(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:933
void rs2_extract_target_dimensions(const rs2_frame *frame, rs2_calib_target_type calib_type, float *target_dims, unsigned int target_dims_size, rs2_error **error)
Definition: rs.cpp:2402
rs2_frame * rs2_allocate_synthetic_motion_frame(rs2_source *source, const rs2_stream_profile *new_stream, rs2_frame *original, rs2_extension frame_type, rs2_error **error)
Definition: rs.cpp:1718
fname
Definition: rmse.py:13
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: rs_types.h:166
::realsense_legacy_msgs::metadata_< std::allocator< void > > metadata
long long rs2_metadata_type
Definition: rs_types.h:301
GLenum type
GLint GLsizei count
rs2_vertex * rs2_get_frame_vertices(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:2154
void rs2_frame_add_ref(rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:1015
GLsizei GLsizei GLchar * source
void rs2_release_frame(rs2_frame *frame)
Definition: rs.cpp:993
rs2_frame * rs2_extract_frame(rs2_frame *composite, int index, rs2_error **error)
Definition: rs.cpp:2114
rs2_metadata_type rs2_get_frame_metadata(const rs2_frame *frame, rs2_frame_metadata_value frame_metadata, rs2_error **error)
Definition: rs.cpp:846
double rs2_time_t
Definition: rs_types.h:300
void rs2_pose_frame_get_pose_data(const rs2_frame *frame, rs2_pose *pose, rs2_error **error)
Definition: rs.cpp:2372
int rs2_get_frame_bits_per_pixel(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:978
rs2_frame_metadata_value
Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame...
Definition: rs_frame.h:29
struct rs2_frame rs2_frame
Definition: rs_types.h:261
const void * rs2_get_frame_data(const rs2_frame *frame, rs2_error **error)
Definition: rs.cpp:940
Pixel location within 2D image. (0,0) is the topmost, left corner. Positive X is right, positive Y is down.
Definition: rs_types.h:123
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition: rs_frame.h:19


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40