Monado OpenXR Runtime
auxiliary
util
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
24
u_frame_create_one_off
(
enum
xrt_format
f,
25
uint32_t width,
26
uint32_t height,
27
struct
xrt_frame
**out_frame);
28
29
30
#ifdef __cplusplus
31
}
32
#endif
xrt_frame
Basic frame data structure - holds a pointer to buffer.
Definition:
xrt_frame.h:24
xrt_frame.h
Data frame header.
xrt_format
xrt_format
Common formats, use u_format_* functions to reason about them.
Definition:
xrt_defines.h:60
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.
Definition:
u_frame.c:26
Generated by
1.8.13