gramods
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gramods::gmGraphics::UvcTexture::Impl Struct Reference
Collaboration diagram for gramods::gmGraphics::UvcTexture::Impl:
Collaboration graph
[legend]

Public Member Functions

bool update_rgb_cache ()
 
bool initialize_context ()
 
bool locate_device (int vendor, int product, std::string serial)
 
bool open_device ()
 
bool negotiate_format ()
 
bool start_streaming ()
 
void uvc_frame_cb (uvc_frame_t *frame)
 
void startAll (int vendor, int product, std::string serial)
 
void closeAll ()
 
bool triggerStill (gmCore::size2 res)
 
void update ()
 
GLuint getGLTextureID ()
 

Static Public Member Functions

static uvc_frame_format formatFromString (std::string s)
 
static std::string formatToString (uvc_frame_format f)
 
static void uvc_frame_cb (uvc_frame_t *frame, void *ptr)
 

Public Attributes

uvc_context_t * context = nullptr
 
uvc_device_t * device = nullptr
 
uvc_device_handle_t * device_handle = nullptr
 
uvc_stream_ctrl_t stream_control
 
gmCore::size2 resolution = { 640, 480 }
 
int framerate = 30
 
uvc_frame_format format = formatFromString("any")
 
bool decode_to_rgb = true
 
uvc_frame_t * frm_cache = nullptr
 
uvc_frame_t * rgb_cache = nullptr
 
std::mutex data_lock
 
bool texture_up_to_date = false
 
GLuint texture_id = 0
 
bool started = false
 

The documentation for this struct was generated from the following file: