Monado OpenXR Runtime
Loading...
Searching...
No Matches
b_frame_source.h
Go to the documentation of this file.
1// Copyright 2026, NVIDIA CORPORATION.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Base frame source.
6 * @author Jakob Bornecrantz <tbornecrantz@nvidia.com>
7 * @ingroup base
8 */
9
10#pragma once
11
12#include "xrt/xrt_frame.h"
14#include "xrt/xrt_results.h"
15
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/*!
22 * Creates a @ref xrt_frame_source, frames pushed to @p out_sink are pushed to
23 * all sinks added to @p out_source.
24 *
25 * @ingroup base
26 */
29 struct xrt_frame_sink **out_sink,
30 struct xrt_frame_source **out_source);
31
32#ifdef __cplusplus
33}
34#endif
xrt_result_t b_frame_source_create(struct xrt_frame_context *xfctx, struct xrt_frame_sink **out_sink, struct xrt_frame_source **out_source)
Creates a xrt_frame_source, frames pushed to out_sink are pushed to all sinks added to out_source.
Definition b_frame_source.c:152
enum xrt_result xrt_result_t
Result type used across Monado.
Object used to track all sinks and frame producers in a graph.
Definition xrt_frame.h:108
A object that is sent frames.
Definition xrt_frame.h:58
Something that produces frames, and pushes them to all sinks added to it.
Definition xrt_frame_source.h:37
Data frame header.
Frame source interface, frame sinks can be added and removed at runtime.
Internal result type for XRT.