Monado OpenXR Runtime
Functions
u_frame.c File Reference

xrt_frame helpers. More...

#include "util/u_misc.h"
#include "util/u_frame.h"
#include "util/u_format.h"
#include <assert.h>
Include dependency graph for u_frame.c:

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().