Monado OpenXR Runtime
Functions
u_frame.h File Reference

xrt_frame helpers. More...

#include "xrt/xrt_frame.h"
Include dependency graph for u_frame.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void u_frame_create_one_off (enum xrt_format f, uint32_t width, uint32_t height, struct xrt_frame **out_frame)
 Creates a single non-pooled frame, when the reference reaches zero it is freed. More...
 

Detailed Description

xrt_frame helpers.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ u_frame_create_one_off()

void u_frame_create_one_off ( enum xrt_format  f,
uint32_t  width,
uint32_t  height,
struct xrt_frame **  out_frame 
)

Creates a single non-pooled frame, when the reference reaches zero it is freed.

References xrt_frame::destroy, xrt_frame::format, xrt_frame::height, u_format_is_blocks(), U_TYPED_CALLOC, and xrt_frame::width.

Referenced by HelperDebugSink::refresh().