Monado OpenXR Runtime
vf_interface.h
Go to the documentation of this file.
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Header
6 * @author Christoph Haag <christoph.haag@collabora.com>
7 * @ingroup drv_vf
8 */
9
10#pragma once
11
12#include "xrt/xrt_frameserver.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*!
20 * @defgroup drv_vf Video Fileframeserver driver
21 * @ingroup drv
22 *
23 * @brief Frameserver using a video file.
24 */
25
26/*!
27 * Create a vf frameserver by opening a video file.
28 *
29 * @ingroup drv_vf
30 */
31struct xrt_fs *
32vf_fs_open_file(struct xrt_frame_context *xfctx, const char *path);
33
34/*!
35 * Create a vf frameserver that uses the videotestsource.
36 *
37 * @ingroup drv_vf
38 */
39struct xrt_fs *
40vf_fs_videotestsource(struct xrt_frame_context *xfctx, uint32_t width, uint32_t height);
41
42
43#ifdef __cplusplus
44}
45#endif
struct xrt_fs * vf_fs_videotestsource(struct xrt_frame_context *xfctx, uint32_t width, uint32_t height)
Create a vf frameserver that uses the videotestsource.
Definition: vf_driver.c:521
struct xrt_fs * vf_fs_open_file(struct xrt_frame_context *xfctx, const char *path)
Create a vf frameserver by opening a video file.
Definition: vf_driver.c:541
Object used to track all sinks and frame producers in a graph.
Definition: xrt_frame.h:108
Frameserver that generates frames.
Definition: xrt_frameserver.h:70
Frameserver interface for video drivers.