Monado OpenXR Runtime
gst_sink.h
Go to the documentation of this file.
1// Copyright 2019-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief @ref xrt_frame_sink that does gst things.
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
15extern "C" {
16#endif
17
18struct gstreamer_sink;
20
21
22void
23gstreamer_sink_send_eos(struct gstreamer_sink *gs);
24
25uint64_t
26gstreamer_sink_get_timestamp_offset(struct gstreamer_sink *gs);
27
28void
29gstreamer_sink_create_with_pipeline(struct gstreamer_pipeline *gp,
30 uint32_t width,
31 uint32_t height,
32 enum xrt_format format,
33 const char *appsrc_name,
34 struct gstreamer_sink **out_gs,
35 struct xrt_frame_sink **out_xfs);
36
37
38#ifdef __cplusplus
39}
40#endif
A pipeline from which you can create one or more gstreamer_sink from.
Definition: gst_internal.h:34
An xrt_frame_sink that uses appsrc.
Definition: gst_internal.h:56
A object that is sent frames.
Definition: xrt_frame.h:58
xrt_format
Common formats, use u_format_* functions to reason about them.
Definition: xrt_defines.h:176
Data frame header.