Jetson Linux API Reference

32.7.3 Release
V4L2 over IPC

Detailed Description

NVIDIA V4L2 IPC Description and Extensions.

Data Structures

struct  _v4l2_chroma_subsampling_params
 Holds Chroma Subsampling parameters. More...
 
struct  _v4l2_map_plane
 Holds parameters for a hardware buffer. More...
 
struct  v4l2_map_buffer
 

Macros

#define V4L2_IPC_MAP_BUFFER   _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct v4l2_map_buffer)
 
#define V4L2_IPC_UNMAP_BUFFER   _IOWR('V', BASE_VIDIOC_PRIVATE + 2, struct v4l2_map_buffer)
 

Typedefs

typedef struct _v4l2_chroma_subsampling_params v4l2_chroma_subsampling_params
 Holds Chroma Subsampling parameters. More...
 
typedef struct _v4l2_map_plane v4l2_map_plane
 Holds parameters for a hardware buffer. More...
 

Enumerations

enum  v4l2_color_format {
  V4L2_COLORFORMAT_YUV420,
  V4L2_COLORFORMAT_YVU420,
  V4L2_COLORFORMAT_YUV422,
  V4L2_COLORFORMAT_YUV420_ER,
  V4L2_COLORFORMAT_YVU420_ER,
  V4L2_COLORFORMAT_NV12,
  V4L2_COLORFORMAT_NV12_ER,
  V4L2_COLORFORMAT_NV21,
  V4L2_COLORFORMAT_NV21_ER,
  V4L2_COLORFORMAT_UYVY,
  V4L2_COLORFORMAT_UYVY_ER,
  V4L2_COLORFORMAT_VYUY,
  V4L2_COLORFORMAT_VYUY_ER,
  V4L2_COLORFORMAT_YUYV,
  V4L2_COLORFORMAT_YUYV_ER,
  V4L2_COLORFORMAT_YVYU,
  V4L2_COLORFORMAT_YVYU_ER,
  V4L2_COLORFORMAT_ABGR32,
  V4L2_COLORFORMAT_XRGB32,
  V4L2_COLORFORMAT_ARGB32,
  V4L2_COLORFORMAT_NV12_10LE,
  V4L2_COLORFORMAT_NV12_10LE_709,
  V4L2_COLORFORMAT_NV12_10LE_709_ER,
  V4L2_COLORFORMAT_NV12_10LE_2020,
  V4L2_COLORFORMAT_NV21_10LE,
  V4L2_COLORFORMAT_NV12_12LE,
  V4L2_COLORFORMAT_NV12_12LE_2020,
  V4L2_COLORFORMAT_NV21_12LE,
  V4L2_COLORFORMAT_YUV420_709,
  V4L2_COLORFORMAT_YUV420_709_ER,
  V4L2_COLORFORMAT_NV12_709,
  V4L2_COLORFORMAT_NV12_709_ER,
  V4L2_COLORFORMAT_YUV420_2020,
  V4L2_COLORFORMAT_NV12_2020,
  V4L2_COLORFORMAT_YUV444,
  V4L2_COLORFORMAT_SignedR16G16,
  V4L2_COLORFORMAT_A32,
  V4L2_COLORFORMAT_GRAY8,
  V4L2_COLORFORMAT_NV16,
  V4L2_COLORFORMAT_NV16_10LE,
  V4L2_COLORFORMAT_NV24,
  V4L2_COLORFORMAT_NV24_10LE,
  V4L2_COLORFORMAT_NV16_ER,
  V4L2_COLORFORMAT_NV24_ER,
  V4L2_COLORFORMAT_NV16_709,
  V4L2_COLORFORMAT_NV24_709,
  V4L2_COLORFORMAT_NV16_709_ER,
  V4L2_COLORFORMAT_NV24_709_ER,
  V4L2_COLORFORMAT_NV24_10LE_709,
  V4L2_COLORFORMAT_NV24_10LE_709_ER,
  V4L2_COLORFORMAT_NV24_10LE_2020,
  V4L2_COLORFORMAT_NV24_12LE_2020,
  V4L2_COLORFORMAT_RGBA_10_10_10_2_709,
  V4L2_COLORFORMAT_RGBA_10_10_10_2_2020,
  V4L2_COLORFORMAT_BGRA_10_10_10_2_709,
  V4L2_COLORFORMAT_BGRA_10_10_10_2_2020,
  V4L2_COLORFORMAT_Invalid
}
 
enum  v4l2_displayscan_format {
  V4L2_DISPLAY_SCAN_FORMAT_PROGRESSIVE = 0,
  V4L2_DISPLAY_SCAN_FORMAT_INTERLACED
}
 
enum  v4l2_buffer_payload_type {
  V4L2_PAYLOAD_TYPE_SURFARRAY,
  V4L2_PAYLOAD_TYPE_MEMHANDLE
}
 Defines Payload types for buffer. More...
 

Macro Definition Documentation

◆ V4L2_IPC_MAP_BUFFER

#define V4L2_IPC_MAP_BUFFER   _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct v4l2_map_buffer)

Definition at line 2675 of file v4l2_nv_extensions.h.

◆ V4L2_IPC_UNMAP_BUFFER

#define V4L2_IPC_UNMAP_BUFFER   _IOWR('V', BASE_VIDIOC_PRIVATE + 2, struct v4l2_map_buffer)

Definition at line 2676 of file v4l2_nv_extensions.h.

Typedef Documentation

◆ v4l2_chroma_subsampling_params

Holds Chroma Subsampling parameters.

◆ v4l2_map_plane

Holds parameters for a hardware buffer.

Enumeration Type Documentation

◆ v4l2_buffer_payload_type

Defines Payload types for buffer.

Enumerator
V4L2_PAYLOAD_TYPE_SURFARRAY 

buffer payload with hardware memory handle for set of planes.

V4L2_PAYLOAD_TYPE_MEMHANDLE 

buffer payload with hardware memory handle for specific memory size.

Definition at line 2598 of file v4l2_nv_extensions.h.

◆ v4l2_color_format

Enumerator
V4L2_COLORFORMAT_YUV420 

BT.601 colorspace - YUV420 multi-planar.

V4L2_COLORFORMAT_YVU420 

BT.601 colorspace - YUV420 multi-planar.

V4L2_COLORFORMAT_YUV422 

BT.601 colorspace - YUV422 multi-planar.

V4L2_COLORFORMAT_YUV420_ER 

BT.601 colorspace - YUV420 ER multi-planar.

V4L2_COLORFORMAT_YVU420_ER 

BT.601 colorspace - YVU420 ER multi-planar.

V4L2_COLORFORMAT_NV12 

BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.

V4L2_COLORFORMAT_NV12_ER 

BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.

V4L2_COLORFORMAT_NV21 

BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.

V4L2_COLORFORMAT_NV21_ER 

BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.

V4L2_COLORFORMAT_UYVY 

BT.601 colorspace - YUV 4:2:2 planar.

V4L2_COLORFORMAT_UYVY_ER 

BT.601 colorspace - YUV ER 4:2:2 planar.

V4L2_COLORFORMAT_VYUY 

BT.601 colorspace - YUV 4:2:2 planar.

V4L2_COLORFORMAT_VYUY_ER 

BT.601 colorspace - YUV ER 4:2:2 planar.

V4L2_COLORFORMAT_YUYV 

BT.601 colorspace - YUV 4:2:2 planar.

V4L2_COLORFORMAT_YUYV_ER 

BT.601 colorspace - YUV ER 4:2:2 planar.

V4L2_COLORFORMAT_YVYU 

BT.601 colorspace - YUV 4:2:2 planar.

V4L2_COLORFORMAT_YVYU_ER 

BT.601 colorspace - YUV ER 4:2:2 planar.

V4L2_COLORFORMAT_ABGR32 

LegacyRGBA colorspace - BGRA-8-8-8-8 planar.

V4L2_COLORFORMAT_XRGB32 

LegacyRGBA colorspace - XRGB-8-8-8-8 planar.

V4L2_COLORFORMAT_ARGB32 

LegacyRGBA colorspace - ARGB-8-8-8-8 planar.

V4L2_COLORFORMAT_NV12_10LE 

BT.601 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.

V4L2_COLORFORMAT_NV12_10LE_709 

BT.709 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.

V4L2_COLORFORMAT_NV12_10LE_709_ER 

BT.709_ER colorspace - Y/CbCr 4:2:0 10-bit multi-planar.

V4L2_COLORFORMAT_NV12_10LE_2020 

BT.2020 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.

V4L2_COLORFORMAT_NV21_10LE 

BT.601 colorspace - Y/CrCb 4:2:0 10-bit multi-planar.

V4L2_COLORFORMAT_NV12_12LE 

BT.601 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.

V4L2_COLORFORMAT_NV12_12LE_2020 

BT.2020 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.

V4L2_COLORFORMAT_NV21_12LE 

BT.601 colorspace - Y/CrCb 4:2:0 12-bit multi-planar.

V4L2_COLORFORMAT_YUV420_709 

BT.709 colorspace - YUV420 multi-planar.

V4L2_COLORFORMAT_YUV420_709_ER 

BT.709 colorspace - YUV420 ER multi-planar.

V4L2_COLORFORMAT_NV12_709 

BT.709 colorspace - Y/CbCr 4:2:0 multi-planar.

V4L2_COLORFORMAT_NV12_709_ER 

BT.709 colorspace - Y/CbCr ER 4:2:0 multi-planar.

V4L2_COLORFORMAT_YUV420_2020 

BT.2020 colorspace - YUV420 multi-planar.

V4L2_COLORFORMAT_NV12_2020 

BT.2020 colorspace - Y/CbCr 4:2:0 multi-planar.

V4L2_COLORFORMAT_YUV444 

BT.601 colorspace - YUV444 multi-planar.

V4L2_COLORFORMAT_SignedR16G16 

Optical flow.

V4L2_COLORFORMAT_A32 

Optical flow SAD calculation Buffer format.

V4L2_COLORFORMAT_GRAY8 

8-bit grayscale.

V4L2_COLORFORMAT_NV16 

BT.601 colorspace - Y/CbCr 4:2:2 multi-planar.

V4L2_COLORFORMAT_NV16_10LE 

BT.601 colorspace - Y/CbCr 4:2:2 10-bit semi-planar.

V4L2_COLORFORMAT_NV24 

BT.601 colorspace - Y/CbCr 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV24_10LE 

BT.601 colorspace - Y/CrCb 4:4:4 10-bit multi-planar.

V4L2_COLORFORMAT_NV16_ER 

BT.601_ER colorspace - Y/CbCr 4:2:2 multi-planar.

V4L2_COLORFORMAT_NV24_ER 

BT.601_ER colorspace - Y/CbCr 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV16_709 

BT.709 colorspace - Y/CbCr 4:2:2 multi-planar.

V4L2_COLORFORMAT_NV24_709 

BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV16_709_ER 

BT.709_ER colorspace - Y/CbCr 4:2:2 multi-planar.

V4L2_COLORFORMAT_NV24_709_ER 

BT.709_ER colorspace - Y/CbCr 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV24_10LE_709 

BT.709 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV24_10LE_709_ER 

BT.709 ER colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV24_10LE_2020 

BT.2020 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.

V4L2_COLORFORMAT_NV24_12LE_2020 

BT.2020 colorspace - Y/CbCr 12 bit 4:4:4 multi-planar.

V4L2_COLORFORMAT_RGBA_10_10_10_2_709 

Non-linear RGB BT.709 colorspace - RGBA-10-10-10-2 planar.

V4L2_COLORFORMAT_RGBA_10_10_10_2_2020 

Non-linear RGB BT.2020 colorspace - RGBA-10-10-10-2 planar.

V4L2_COLORFORMAT_BGRA_10_10_10_2_709 

Non-linear RGB BT.709 colorspace - BGRA-10-10-10-2 planar.

V4L2_COLORFORMAT_BGRA_10_10_10_2_2020 

Non-linear RGB BT.2020 colorspace - BGRA-10-10-10-2 planar.

V4L2_COLORFORMAT_Invalid 

Invalid color format.

Definition at line 2469 of file v4l2_nv_extensions.h.

◆ v4l2_displayscan_format

Enumerator
V4L2_DISPLAY_SCAN_FORMAT_PROGRESSIVE 

Progessive scan formats.

V4L2_DISPLAY_SCAN_FORMAT_INTERLACED 

Interlaced scan formats.

Definition at line 2587 of file v4l2_nv_extensions.h.