Monado OpenXR Runtime
v4l2_driver.h File Reference

V4L2 frameserver common definitions. More...

#include "util/u_logging.h"
#include "util/u_sink.h"
#include "xrt/xrt_frameserver.h"
#include <linux/videodev2.h>
Include dependency graph for v4l2_driver.h:

Go to the source code of this file.

Data Structures

struct  v4l2_frame
 
struct  v4l2_state_want
 
struct  v4l2_control_state
 
struct  v4l2_fs
 A single open v4l2 capture device, starts its own thread and waits on it. More...
 

Macros

#define V4L2_TRACE(d, ...)   U_LOG_IFL_T(d->log_level, __VA_ARGS__)
 
#define V4L2_DEBUG(d, ...)   U_LOG_IFL_D(d->log_level, __VA_ARGS__)
 
#define V4L2_INFO(d, ...)   U_LOG_IFL_I(d->log_level, __VA_ARGS__)
 
#define V4L2_WARN(d, ...)   U_LOG_IFL_W(d->log_level, __VA_ARGS__)
 
#define V4L2_ERROR(d, ...)   U_LOG_IFL_E(d->log_level, __VA_ARGS__)
 
#define NUM_V4L2_BUFFERS   32
 

Functions

static struct v4l2_fsv4l2_fs (struct xrt_fs *xfs)
 Cast to derived type. More...
 

Detailed Description

V4L2 frameserver common definitions.

Author
Pete Black pblac.nosp@m.k@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ v4l2_fs()

static struct v4l2_fs * v4l2_fs ( struct xrt_fs xfs)
inlinestatic

Cast to derived type.