Monado OpenXR Runtime
u_sink_quirk.c File Reference

An xrt_frame_sink that quirks frames. More...

#include "util/u_misc.h"
#include "util/u_sink.h"
Include dependency graph for u_sink_quirk.c:

Data Structures

struct  u_sink_quirk
 An xrt_frame_sink that quirks frames. More...
 

Functions

static void quirk_frame (struct xrt_frame_sink *xfs, struct xrt_frame *xf)
 
static void break_apart (struct xrt_frame_node *node)
 
static void destroy (struct xrt_frame_node *node)
 
void u_sink_quirk_create (struct xrt_frame_context *xfctx, struct xrt_frame_sink *downstream, struct u_sink_quirk_params *params, struct xrt_frame_sink **out_xfs)
 

Detailed Description

An xrt_frame_sink that quirks frames.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ quirk_frame()

static void quirk_frame ( struct xrt_frame_sink xfs,
struct xrt_frame xf 
)
static
Todo:
this is not thread safe, but right no other thing has access to the frame (or should).

References XRT_STEREO_FORMAT_INTERLEAVED, and XRT_STEREO_FORMAT_SBS.

Referenced by xrt_frame_sink::u_sink_quirk_create().