4#ifndef LIBREALSENSE_RS2_PROCESSING_GL_HPP
5#define LIBREALSENSE_RS2_PROCESSING_GL_HPP
36 &glfwMakeContextCurrent,
37 &glfwGetCurrentContext,
78 &glfwMakeContextCurrent,
79 &glfwGetCurrentContext,
126 std::shared_ptr<rs2_processing_block> init()
129 auto block = std::shared_ptr<rs2_processing_block>(
151 std::shared_ptr<rs2_processing_block> init()
154 auto block = std::shared_ptr<rs2_processing_block>(
175 static std::shared_ptr<rs2_processing_block> init()
178 auto block = std::shared_ptr<rs2_processing_block>(
197 std::shared_ptr<rs2_processing_block> init()
200 auto block = std::shared_ptr<rs2_processing_block>(
215 std::shared_ptr<rs2_processing_block> init()
218 auto block = std::shared_ptr<rs2_processing_block>(
245 std::shared_ptr<rs2_processing_block> init()
249 auto block = std::shared_ptr<rs2_processing_block>(
284 std::shared_ptr<rs2_processing_block> init()
288 auto block = std::shared_ptr<rs2_processing_block>(
339 std::shared_ptr<rs2_processing_block> init()
343 auto block = std::shared_ptr<rs2_processing_block>(
362 std::shared_ptr<rs2_processing_block> init(
rs2_stream to)
366 auto block = std::shared_ptr<rs2_processing_block>(
Definition rs_processing.hpp:740
Definition rs_processing.hpp:784
static void handle(rs2_error *e)
Definition rs_types.hpp:167
Definition rs_processing.hpp:361
filter(std::shared_ptr< rs2_processing_block > block, int queue_size=1)
Definition rs_processing.hpp:383
rs2_processing_block * get() const
Definition rs_processing.hpp:405
frame()
Definition rs_frame.hpp:360
rs2_frame * get() const
Definition rs_frame.hpp:601
friend class context
Definition rs_processing_gl.hpp:360
align(rs2_stream to)
Definition rs_processing_gl.hpp:357
static const auto OPTION_MOUSE_X
Definition rs_processing_gl.hpp:276
static const auto OPTION_SELECTED
Definition rs_processing_gl.hpp:280
static const auto OPTION_MOUSE_Y
Definition rs_processing_gl.hpp:277
camera_renderer()
Definition rs_processing_gl.hpp:267
friend class context
Definition rs_processing_gl.hpp:282
static const auto OPTION_MOUSE_PICK
Definition rs_processing_gl.hpp:278
void set_matrix(rs2_gl_matrix_type type, float *m4x4)
Definition rs_processing_gl.hpp:269
static const auto OPTION_WAS_PICKED
Definition rs_processing_gl.hpp:279
colorizer()
Definition rs_processing_gl.hpp:194
uint32_t get_texture_id(unsigned int id=0) const
Definition rs_processing_gl.hpp:107
gpu_frame(const frame &f)
Definition rs_processing_gl.hpp:96
m420_decoder()
Definition rs_processing_gl.hpp:148
static const auto OPTION_PICKED_Z
Definition rs_processing_gl.hpp:324
static const auto OPTION_NORMAL_Y
Definition rs_processing_gl.hpp:331
static const auto OPTION_SELECTED
Definition rs_processing_gl.hpp:327
static const auto OPTION_NORMAL_X
Definition rs_processing_gl.hpp:330
static const auto OPTION_ORIGIN_PICKED
Definition rs_processing_gl.hpp:328
void set_matrix(rs2_gl_matrix_type type, float *m4x4)
Definition rs_processing_gl.hpp:308
static const auto OPTION_PICKED_Y
Definition rs_processing_gl.hpp:323
pointcloud_renderer()
Definition rs_processing_gl.hpp:306
static const auto OPTION_MOUSE_PICK
Definition rs_processing_gl.hpp:320
static const auto OPTION_MOUSE_X
Definition rs_processing_gl.hpp:318
static const auto OPTION_FILLED
Definition rs_processing_gl.hpp:315
friend class context
Definition rs_processing_gl.hpp:337
static const auto OPTION_NORMAL_Z
Definition rs_processing_gl.hpp:332
static const auto OPTION_MOUSE_Y
Definition rs_processing_gl.hpp:319
static const auto OPTION_PICKED_X
Definition rs_processing_gl.hpp:322
static const auto OPTION_PICKED_ID
Definition rs_processing_gl.hpp:326
static const auto OPTION_SHADED
Definition rs_processing_gl.hpp:316
static const auto OPTION_SCALE_FACTOR
Definition rs_processing_gl.hpp:334
Definition rs_processing_gl.hpp:231
pointcloud(rs2_stream stream, int index=0)
Definition rs_processing_gl.hpp:235
pointcloud()
Definition rs_processing_gl.hpp:233
friend class context
Definition rs_processing_gl.hpp:243
uploader()
Definition rs_processing_gl.hpp:212
y411_decoder()
Definition rs_processing_gl.hpp:172
yuy_decoder()
Definition rs_processing_gl.hpp:123
Definition rs_processing.hpp:529
void set_option(rs2_option option, float value) const
Definition rs_options.hpp:256
Definition rs_processing.hpp:430
Definition rs_processing.hpp:561
Definition rs_processing.hpp:500
Definition rs_processing_gl.hpp:15
void shutdown_processing()
Definition rs_processing_gl.hpp:61
void init_processing(bool use_glsl=true)
Definition rs_processing_gl.hpp:54
void init_rendering(bool use_glsl=true)
Definition rs_processing_gl.hpp:46
void shutdown_rendering()
Definition rs_processing_gl.hpp:19
Definition rs_processing_gl.hpp:13
#define RS2_API_VERSION
Definition rs.h:44
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition rs_option.h:27
@ RS2_OPTION_STREAM_FILTER
Definition rs_option.h:71
@ RS2_OPTION_COUNT
Definition rs_option.h:138
@ RS2_OPTION_STREAM_INDEX_FILTER
Definition rs_option.h:73
void rs2_delete_processing_block(rs2_processing_block *block)
Exposes RealSense processing-block functionality for GPU for C compilers.
rs2_processing_block * rs2_gl_create_colorizer(int api_version, rs2_error **error)
unsigned int rs2_gl_frame_get_texture_id(const rs2_frame *f, unsigned int id, rs2_error **error)
@ RS2_GL_EXTENSION_VIDEO_FRAME
Definition rs_processing_gl.h:24
rs2_processing_block * rs2_gl_create_pointcloud(int api_version, rs2_error **error)
struct GLFWwindow GLFWwindow
Definition rs_processing_gl.h:43
void rs2_gl_init_rendering(int api_version, int use_glsl, rs2_error **error)
rs2_processing_block * rs2_gl_create_yuy_decoder(int api_version, rs2_error **error)
rs2_processing_block * rs2_gl_create_align(int api_version, rs2_stream to, rs2_error **error)
void rs2_gl_set_matrix(rs2_processing_block *block, rs2_gl_matrix_type type, float *m4x4, rs2_error **error)
rs2_processing_block * rs2_gl_create_camera_renderer(int api_version, rs2_error **error)
void rs2_gl_shutdown_rendering(int api_version, rs2_error **error)
void rs2_gl_shutdown_processing(int api_version, rs2_error **error)
rs2_gl_matrix_type
Definition rs_processing_gl.h:34
int rs2_gl_is_frame_extendable_to(const rs2_frame *f, rs2_gl_extension extension_type, rs2_error **error)
rs2_processing_block * rs2_gl_create_uploader(int api_version, rs2_error **error)
rs2_processing_block * rs2_gl_create_y411_decoder(int api_version, rs2_error **error)
rs2_processing_block * rs2_gl_create_m420_decoder(int api_version, rs2_error **error)
void rs2_gl_init_rendering_glfw(int api_version, glfw_binding bindings, int use_glsl, rs2_error **error)
void rs2_gl_init_processing(int api_version, int use_glsl, rs2_error **error)
void rs2_gl_init_processing_glfw(int api_version, GLFWwindow *share_with, glfw_binding bindings, int use_glsl, rs2_error **error)
rs2_processing_block * rs2_gl_create_pointcloud_renderer(int api_version, rs2_error **error)
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition rs_sensor.h:47
struct rs2_error rs2_error
Definition rs_types.h:276
Definition rs_processing_gl.h:59