Monado OpenXR Runtime
gui_ogl_sink.c File Reference

OpenGL sink functions. More...

#include "xrt/xrt_frame.h"
#include "util/u_misc.h"
#include "util/u_logging.h"
#include "ogl/ogl_api.h"
#include "gui_common.h"
#include <pthread.h>
#include <limits.h>
Include dependency graph for gui_ogl_sink.c:

Data Structures

struct  gui_ogl_sink
 An xrt_frame_sink that shows sunk frames in the GUI. More...
 

Functions

static void push_frame (struct xrt_frame_sink *xs, struct xrt_frame *xf)
 
static void break_apart (struct xrt_frame_node *node)
 
static void destroy (struct xrt_frame_node *node)
 
static void update_r8g8b8x8 (struct gui_ogl_sink *s, GLint w, GLint h, GLint stride, uint8_t *data)
 
static void update_r8g8b8 (struct gui_ogl_sink *s, GLint w, GLint h, GLint stride, uint8_t *data)
 
static void update_l8 (struct gui_ogl_sink *s, GLint w, GLint h, GLint stride, uint8_t *data)
 
void gui_ogl_sink_update (struct gui_ogl_texture *tex)
 
struct gui_ogl_texturegui_ogl_sink_create (const char *name, struct xrt_frame_context *xfctx, struct xrt_frame_sink **out_sink)
 

Detailed Description