4 #include "../include/librealsense2/hpp/rs_sensor.hpp" 5 #include "../include/librealsense2/hpp/rs_processing.hpp" 6 #include "../include/librealsense2-gl/rs_processing_gl.hpp" 19 #include <glad/glad.h> 73 auto height = vf.get_height();
88 gf->get_gpu_section().set_size(width, height);
100 auto height = vf.get_height();
111 memcpy(ptr->data.data(), depth_data, ptr->data.size());
113 ptr->set_sensor(
orig->get_sensor());
120 depth_data, width, height);
146 gf->get_gpu_section().set_size(width, height,
true);
#define GL_TEXTURE_MAG_FILTER
static const int MAX_DEPTH
void add_extension(rs2_extension ex)
void output_texture(int id, uint32_t *tex, texture_type type)
stream_profile get_profile() const
const void * get_data() const
rs2::frame process_frame(const rs2::frame_source &source, const rs2::frame &f) override
GLfloat GLfloat GLfloat GLfloat h
frame allocate_video_frame(const stream_profile &profile, const frame &original, int new_bpp=0, int new_width=0, int new_height=0, int new_stride=0, rs2_extension frame_type=RS2_EXTENSION_VIDEO_FRAME) const
GLint GLsizei GLsizei height
#define GL_TEXTURE_MIN_FILTER
void create_gpu_resources() override
std::vector< float > _fhist
rs2_format format() const
#define RS2_EXTENSION_VIDEO_FRAME_GL
void perform_gl_action(T action, S fallback)
virtual gpu_section & get_gpu_section()=0
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
GLsizei GLsizei GLchar * source
#define RS2_EXTENSION_DEPTH_FRAME_GL
static void update_histogram(int *hist, const T *depth_data, int w, int h)
void cleanup_gpu_resources() override
static void populate_floating_histogram(float *f, int *hist)