EdgeAI TIOVX Apps Guide
v4l2_capture_module.c File Reference
Include dependency graph for v4l2_capture_module.c:

Data Structures

struct  v4l2CaptureHandle
 

Macros

#define V4L2_CAPTURE_DEFAULT_WIDTH   1920
 
#define V4L2_CAPTURE_DEFAULT_HEIGHT   1080
 
#define V4L2_CAPTURE_DEFAULT_PIX_FMT   V4L2_PIX_FMT_SRGGB8
 
#define V4L2_CAPTURE_DEFAULT_DEVICE   "/dev/video-imx219-cam0"
 
#define V4L2_CAPTURE_DEFAULT_BUFQ_DEPTH   4
 
#define V4L2_CAPTURE_MAX_BUFQ_DEPTH   8
 
#define V4L2_CAPTURE_MAX_RETRIES   10
 
#define V4L2_CAPTURE_STREAMON_DELAY   2
 

Functions

void v4l2_capture_init_cfg (v4l2CaptureCfg *cfg)
 
static int xioctl (int fh, int request, void *arg)
 
int v4l2_capture_check_caps (v4l2CaptureHandle *handle)
 
int v4l2_capture_set_fmt (v4l2CaptureHandle *handle)
 
int v4l2_capture_request_buffers (v4l2CaptureHandle *handle)
 
v4l2CaptureHandle * v4l2_capture_create_handle (v4l2CaptureCfg *cfg)
 
int v4l2_capture_start (v4l2CaptureHandle *handle)
 
int v4l2_capture_enqueue_buf (v4l2CaptureHandle *handle, Buf *tiovx_buffer)
 
Buf * v4l2_capture_dqueue_buf (v4l2CaptureHandle *handle)
 
int v4l2_capture_stop (v4l2CaptureHandle *handle)
 
int v4l2_capture_delete_handle (v4l2CaptureHandle *handle)
 

Macro Definition Documentation

◆ V4L2_CAPTURE_DEFAULT_WIDTH

#define V4L2_CAPTURE_DEFAULT_WIDTH   1920

◆ V4L2_CAPTURE_DEFAULT_HEIGHT

#define V4L2_CAPTURE_DEFAULT_HEIGHT   1080

◆ V4L2_CAPTURE_DEFAULT_PIX_FMT

#define V4L2_CAPTURE_DEFAULT_PIX_FMT   V4L2_PIX_FMT_SRGGB8

◆ V4L2_CAPTURE_DEFAULT_DEVICE

#define V4L2_CAPTURE_DEFAULT_DEVICE   "/dev/video-imx219-cam0"

◆ V4L2_CAPTURE_DEFAULT_BUFQ_DEPTH

#define V4L2_CAPTURE_DEFAULT_BUFQ_DEPTH   4

◆ V4L2_CAPTURE_MAX_BUFQ_DEPTH

#define V4L2_CAPTURE_MAX_BUFQ_DEPTH   8

◆ V4L2_CAPTURE_MAX_RETRIES

#define V4L2_CAPTURE_MAX_RETRIES   10

◆ V4L2_CAPTURE_STREAMON_DELAY

#define V4L2_CAPTURE_STREAMON_DELAY   2

Function Documentation

◆ v4l2_capture_init_cfg()

void v4l2_capture_init_cfg ( v4l2CaptureCfg cfg)

◆ xioctl()

static int xioctl ( int  fh,
int  request,
void *  arg 
)
static

◆ v4l2_capture_check_caps()

int v4l2_capture_check_caps ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_set_fmt()

int v4l2_capture_set_fmt ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_request_buffers()

int v4l2_capture_request_buffers ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_create_handle()

v4l2CaptureHandle* v4l2_capture_create_handle ( v4l2CaptureCfg cfg)

◆ v4l2_capture_start()

int v4l2_capture_start ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_enqueue_buf()

int v4l2_capture_enqueue_buf ( v4l2CaptureHandle *  handle,
Buf *  tiovx_buffer 
)

◆ v4l2_capture_dqueue_buf()

Buf* v4l2_capture_dqueue_buf ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_stop()

int v4l2_capture_stop ( v4l2CaptureHandle *  handle)

◆ v4l2_capture_delete_handle()

int v4l2_capture_delete_handle ( v4l2CaptureHandle *  handle)