monado/src/xrt/auxiliary/gstreamer/gst_pipeline.h
Jakob Bornecrantz 30573fb90f a/gst: Add GStreamer helper code
Co-authored-by: Aaron Boxer <aaron.boxer@collabora.com>
2021-04-03 03:07:21 +01:00

41 lines
940 B
C

// Copyright 2019-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Functions for creating @ref gstreamer_pipeline objects.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup aux_util
*/
#pragma once
#include "xrt/xrt_frame.h"
#ifdef __cplusplus
extern "C" {
#endif
struct gstreamer_pipeline;
void
gstreamer_pipeline_create_from_string(struct xrt_frame_context *xfctx,
const char *pipeline_string,
struct gstreamer_pipeline **out_gp);
void
gstreamer_pipeline_create_autovideo_sink(struct xrt_frame_context *xfctx,
const char *appsrc_name,
struct gstreamer_pipeline **out_gp);
void
gstreamer_pipeline_play(struct gstreamer_pipeline *gp);
void
gstreamer_pipeline_stop(struct gstreamer_pipeline *gp);
#ifdef __cplusplus
}
#endif