Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::gl::gpu_section Class Reference

#include <synthetic-stream-gl.h>

Inheritance diagram for librealsense::gl::gpu_section:
Inheritance graph
[legend]

Public Member Functions

void cleanup_gpu_resources () override
 
void create_gpu_resources () override
 
void fetch_frame (void *to)
 
int get_frame_size () const
 
 gpu_section ()
 
bool input_texture (int id, uint32_t *tex)
 
bool on_gpu () const
 
void on_publish ()
 
void on_unpublish ()
 
 operator bool ()
 
void output_texture (int id, uint32_t *tex, texture_type type)
 
void set_size (uint32_t width, uint32_t height, bool preloaded=false)
 
 ~gpu_section ()
 
- Public Member Functions inherited from librealsense::gl::gpu_processing_object
 gpu_processing_object ()
 
void set_context (std::weak_ptr< context > ctx)
 
virtual ~gpu_processing_object ()
 

Private Member Functions

void ensure_init ()
 

Private Attributes

std::unique_ptr< uint8_t[]> backup
 
bool backup_content = true
 
uint32_t height
 
bool initialized = false
 
bool loaded [MAX_TEXTURES]
 
bool preloaded = false
 
uint32_t textures [MAX_TEXTURES]
 
texture_type types [MAX_TEXTURES]
 
uint32_t width
 

Additional Inherited Members

- Protected Member Functions inherited from librealsense::gl::gpu_processing_object
rs2::visualizer_2dget_texture_visualizer ()
 
void initialize ()
 
template<class T , class S >
void perform_gl_action (T action, S fallback)
 
- Protected Member Functions inherited from librealsense::gl::gpu_object
bool glsl_enabled () const
 
 gpu_object ()=default
 
void need_cleanup ()
 
void use_glsl (bool val)
 

Detailed Description

Definition at line 344 of file synthetic-stream-gl.h.

Constructor & Destructor Documentation

librealsense::gl::gpu_section::gpu_section ( )

Definition at line 208 of file synthetic-stream-gl.cpp.

librealsense::gl::gpu_section::~gpu_section ( )

Definition at line 187 of file synthetic-stream-gl.cpp.

Member Function Documentation

void librealsense::gl::gpu_section::cleanup_gpu_resources ( )
overridevirtual

Implements librealsense::gl::gpu_object.

Definition at line 170 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::create_gpu_resources ( )
overridevirtual

Implements librealsense::gl::gpu_object.

Definition at line 195 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::ensure_init ( )
private

Definition at line 50 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::fetch_frame ( void to)

Definition at line 277 of file synthetic-stream-gl.cpp.

int librealsense::gl::gpu_section::get_frame_size ( ) const

Definition at line 266 of file synthetic-stream-gl.cpp.

bool librealsense::gl::gpu_section::input_texture ( int  id,
uint32_t tex 
)

Definition at line 256 of file synthetic-stream-gl.cpp.

bool librealsense::gl::gpu_section::on_gpu ( ) const
inline

Definition at line 364 of file synthetic-stream-gl.h.

void librealsense::gl::gpu_section::on_publish ( )

Definition at line 218 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::on_unpublish ( )

Definition at line 227 of file synthetic-stream-gl.cpp.

librealsense::gl::gpu_section::operator bool ( )

Definition at line 200 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::output_texture ( int  id,
uint32_t tex,
texture_type  type 
)

Definition at line 235 of file synthetic-stream-gl.cpp.

void librealsense::gl::gpu_section::set_size ( uint32_t  width,
uint32_t  height,
bool  preloaded = false 
)

Definition at line 251 of file synthetic-stream-gl.cpp.

Member Data Documentation

std::unique_ptr<uint8_t[]> librealsense::gl::gpu_section::backup
private

Definition at line 376 of file synthetic-stream-gl.h.

bool librealsense::gl::gpu_section::backup_content = true
private

Definition at line 373 of file synthetic-stream-gl.h.

uint32_t librealsense::gl::gpu_section::height
private

Definition at line 372 of file synthetic-stream-gl.h.

bool librealsense::gl::gpu_section::initialized = false
private

Definition at line 375 of file synthetic-stream-gl.h.

bool librealsense::gl::gpu_section::loaded[MAX_TEXTURES]
private

Definition at line 371 of file synthetic-stream-gl.h.

bool librealsense::gl::gpu_section::preloaded = false
private

Definition at line 374 of file synthetic-stream-gl.h.

uint32_t librealsense::gl::gpu_section::textures[MAX_TEXTURES]
private

Definition at line 369 of file synthetic-stream-gl.h.

texture_type librealsense::gl::gpu_section::types[MAX_TEXTURES]
private

Definition at line 370 of file synthetic-stream-gl.h.

uint32_t librealsense::gl::gpu_section::width
private

Definition at line 372 of file synthetic-stream-gl.h.


The documentation for this class was generated from the following files:


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