Developer World
Spresense SDK Library v1.4.2-3df2e9d
v4l2_buffer Struct Reference

Parameter of ioctl(VIDIOC_QBUF) and ioctl(VIDIOC_DQBUF).
Currently, support only index, type, bytesused, memory, m.userptr, and length. More...

#include <video.h>

Collaboration diagram for v4l2_buffer:

Public Attributes

uint16_t index
 
uint16_t type
 
uint32_t bytesused
 
uint16_t flags
 
uint16_t field
 
struct v4l2_timecode timecode
 
uint16_t sequence
 
uint16_t memory
 
union {
   uint32_t   offset
 
   unsigned long   userptr
 
   struct v4l2_plane *   planes
 
   int   fd
 
m
 
uint32_t length
 

Detailed Description

Parameter of ioctl(VIDIOC_QBUF) and ioctl(VIDIOC_DQBUF).
Currently, support only index, type, bytesused, memory, m.userptr, and length.

Member Data Documentation

◆ index

uint16_t index

buffer id

◆ type

uint16_t type

◆ bytesused

uint32_t bytesused

Driver sets the image size

◆ flags

uint16_t flags

buffer flags. V4L2_BUF_FLAG_ERROR is set in error case.

◆ field

uint16_t field

the field order of the image

◆ timecode

struct v4l2_timecode timecode

frame timecode

◆ sequence

uint16_t sequence

frame sequence number

◆ memory

uint16_t memory

◆ userptr

unsigned long userptr

address of buffer

◆ length

uint32_t length

user set the buffer size


The documentation for this struct was generated from the following file: