Monado OpenXR Runtime
gst_sink.c File Reference

An xrt_frame_sink that does gst things. More...

#include "util/u_trace_marker.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_format.h"
#include "gstreamer/gst_sink.h"
#include "gstreamer/gst_pipeline.h"
#include "gstreamer/gst_internal.h"
#include "gst/video/video-format.h"
#include "gst/video/gstvideometa.h"
#include "gst/app/gstappsink.h"
#include "gst/app/gstappsrc.h"
#include <assert.h>
Include dependency graph for gst_sink.c:

Functions

static void wrapped_buffer_destroy (gpointer data)
 
static GstVideoFormat gst_fmt_from_xf_format (enum xrt_format format_in)
 
static void complain_if_wrong_image_size (struct xrt_frame *xf)
 
static void push_frame (struct xrt_frame_sink *xfs, struct xrt_frame *xf)
 
static void enough_data (GstElement *appsrc, gpointer udata)
 
static void break_apart (struct xrt_frame_node *node)
 
static void destroy (struct xrt_frame_node *node)
 
void gstreamer_sink_send_eos (struct gstreamer_sink *gs)
 
uint64_t gstreamer_sink_get_timestamp_offset (struct gstreamer_sink *gs)
 
void gstreamer_sink_create_with_pipeline (struct gstreamer_pipeline *gp, uint32_t width, uint32_t height, enum xrt_format format, const char *appsrc_name, struct gstreamer_sink **out_gs, struct xrt_frame_sink **out_xfs)
 

Detailed Description

Function Documentation

◆ push_frame()

static void push_frame ( struct xrt_frame_sink xfs,
struct xrt_frame xf 
)
static

Get the timestampe from the frame.

Referenced by gui_ogl_sink_create().