STRUCT V4L2_ISP_BLOCK_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct v4l2_isp_block_header(9) β€” like, the V4L2 extensible block header, bestie

okay so this is from the Linux Kernel API Manual (the 9 section, kernel stuff, iykyk) and it's genuinely not scary, i promise 🫢


✨ NAME ✨

struct v4l2_isp_block_header β€” the V4L2 extensible block header. that's it, that's the vibe. it's the little header that every ISP block wears like a cute accessory πŸŽ€


🌸 SYNOPSIS 🌸

struct v4l2_isp_block_header {
    __u16 type;
    __u16 flags;
    __u32 size;
 };

look at her. three fields. absolute main character energy πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • type β€” the parameters-or-statistics block type. and like, it's driver-specific, so don't come for me asking what the values are, the driver decides πŸ’β€β™€οΈ
  • flags β€” a bitmask of block flags. also driver-specific, bestie. bitmasks are literally just feral little numbers wearing a trenchcoat ✨
  • size β€” the size, in bytes, of the block β€” and yes, that includes this very header. she counts herself. self-aware icon πŸ’…

πŸ’– Description πŸ’–

so this structure is the common part β€” the shared DNA, the group-chat-of-record β€” of all the ISP configuration or statistic blocks. every single block shall embed an instance of this structure type as its first member, followed by the block-specific configuration or statistic data. no cap, it goes first, always, that's the rule 🫢

the type field is an ISP driver-specific value that identifies the block type. simple. iconic. the size field specifies the size of the block, including this header. (yes, again. she really wants you to know she's included. respect.)

the flags field is a bitmask of per-block flags:

  • if a block is used for configuration parameters, this field can be a combination of V4L2_ISP_PARAMS_FL_* and driver-specific flags πŸ“
  • if a block is used for statistics, this field is used to report optional driver-specific flags, if any
ngl the split between "params" and "stats" using the same field is very much a "same hat" moment and i am obsessed 😭 keep both behaviours straight in your head or the driver will simply not respect you.

πŸ”₯ SEE ALSO πŸ”₯

go read those, they're all in the same friend group 🌈


⭐ and that's the page!! sign-off time: this beauty lives at ./include/uapi/linux/media, dated October 2026, and she answers to struct v4l2_...block_header(9). mwah. periodt πŸ’œπŸ§š

πŸ“¦ where this page comes from