Logo

The Linux Kernel

6.16.0-rc1

Quick search

Contents

  • Development process
  • Submitting patches
  • Code of conduct
  • Maintainer handbook
  • All development-process docs
  • Core API
  • Driver APIs
  • Subsystems
  • Locking
  • Licensing rules
  • Writing documentation
  • Development tools
  • Testing guide
  • Hacking guide
  • Tracing
  • Fault injection
  • Livepatching
  • Rust
  • Administration
  • Build system
  • Reporting issues
  • Userspace tools
  • Userspace API
    • System calls
    • Security-related interfaces
    • Devices and I/O
      • OpenCAPI (Open Coherent Accelerator Processor Interface)
      • Allocating dma-buf using heaps
      • Exchanging pixel buffers
      • Firmware Control (FWCTL) Userspace API
      • GPIO
      • IOMMUFD
      • Linux Media Infrastructure userspace API
      • Dell Systems Management Base Driver
      • VDUSE - “vDPA Device in Userspace”
      • ISA Plug & Play support
    • Everything else
  • Firmware
  • Firmware and Devicetree
  • CPU architectures
  • Unsorted documentation
  • Translations

This Page

  • Show Source

2. Image Formats¶

The V4L2 API was primarily designed for devices exchanging image data with applications. The struct v4l2_pix_format and struct v4l2_pix_format_mplane structures define the format and layout of an image in memory. The former is used with the single-planar API, while the latter is used with the multi-planar version (see Single- and multi-planar APIs). Image formats are negotiated with the VIDIOC_S_FMT ioctl. (The explanations here focus on video capturing and output, for overlay frame buffer formats see also VIDIOC_G_FBUF.)

  • 2.1. Single-planar format structure
  • 2.2. Multi-planar format structures
  • 2.3. Standard Image Formats
  • 2.4. Indexed Format
  • 2.5. RGB Formats
  • 2.6. Raw Bayer Formats
  • 2.7. V4L2_PIX_FMT_RAW_8 (‘RAW8’), V4L2_PIX_FMT_RAW_CSI2_10 (‘RACA’), V4L2_PIX_FMT_RAW_CSI2_12 (‘RACC’), V4L2_PIX_FMT_RAW_CSI2_14 (‘RACE’), V4L2_PIX_FMT_RAW_16 (‘RAWG’), V4L2_PIX_FMT_RAW_CSI2_20 (‘RACK’), V4L2_PIX_FMT_RAW_24 (‘RAWO’), V4L2_PIX_FMT_RAW_CSI2_28 (‘RACS’)
  • 2.8. YUV Formats
  • 2.9. HSV Formats
  • 2.10. Depth Formats
  • 2.11. Compressed Formats
  • 2.12. SDR Formats
  • 2.13. Touch Formats
  • 2.14. Metadata Formats
  • 2.15. Reserved Format Identifiers
  • 2.16. Colorspaces
  • 2.17. Defining Colorspaces in V4L2
  • 2.18. Detailed Colorspace Descriptions
  • 2.19. Detailed Transfer Function Descriptions
©The kernel development community. | Powered by Sphinx 5.3.0 & Alabaster 0.7.12 | Page source