Monado OpenXR Runtime
u_frame.h
Go to the documentation of this file.
1 // Copyright 2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief @ref xrt_frame helpers.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup aux_util
8  */
9 
10 #pragma once
11 
12 #include "xrt/xrt_frame.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
19 /*!
20  * Creates a single non-pooled frame, when the reference reaches zero it is
21  * freed.
22  */
23 void
25  uint32_t width,
26  uint32_t height,
27  struct xrt_frame **out_frame);
28 
29 
30 #ifdef __cplusplus
31 }
32 #endif
uint32_t width
Definition: xrt_frame.h:30
Basic frame data structure - holds a pointer to buffer.
Definition: xrt_frame.h:24
Data frame header.
xrt_format
Common formats, use u_format_* functions to reason about them.
Definition: xrt_defines.h:61
uint32_t height
Definition: xrt_frame.h:31
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.
Definition: u_frame.c:26