STRUCT CAMIF_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct camif_fmt(9) β€” from the Kernel API Manual, bestie

okay so picture this: you're deep in the kernel, you open the Kernel API Manual, and there it is β€” struct camif_fmt(9). it's giving "small struct, big responsibilities." let's get into it 🫢


✨ NAME ✨

struct camif_fmt β€” literally just a pixel format description. that's it. that's the whole vibe. no cap. πŸŽ€


🌸 SYNOPSIS 🌸

struct camif_fmt {
    u32 fourcc;
    u32 color;
    u16 colplanes;
    u16 flags;
    u8 depth;
    u8 ybpp;
 };

look at her. six fields. perfectly balanced. main character energy fr fr πŸ’œ


πŸ‘‘ Members πŸ‘‘

time to meet the cast, one field at a time πŸ’–

  • fourcc β€” the fourcc code for this format. and if it's not applicable? it's 0. zero. nothing. a void. we respect that πŸ™ˆ
  • color β€” a corresponding enum img_fmt. that's the whole job. slay ✨
  • colplanes β€” the number of physically contiguous data planes. physically contiguous, like your besties at lunch πŸ“
  • flags β€” these bad boys indicate for which SoCs revisions this format is valid. iykyk β€” not every SoC gets an invite to the party πŸ’…
  • depth β€” bits per pixel (total). the whole thing. the full picture. no crumbs 🌈
  • ybpp β€” the number of luminance bytes per pixel. yes, specifically luminance. she's specific and we love that ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

lowkey the reading list is long but it's all connected, bestie β€” follow the lore πŸ”₯
  • Kernel file ./drivers/media/platform/samsung/s3c-camif/camif-core.h
  • struct camif_dma_offset(9)
  • struct camif_frame(9)
  • s3c_camif_variant(9)
  • struct camif_vp(9)
  • struct camif_dev(9)
  • struct camif_addr(9)
  • struct camif_buffer(9)

okay that's the whole page, you ate that πŸ’€πŸ‘‘

signed, sealed, delivered with love from the kernel source at ./drivers/media/platform/samsu... β€” October 2026 edition 🧚 and yes, the manpage footer still says struct camif_fmt(9) at the end because some things never change πŸ’œπŸ«Ά

πŸ“¦ where this page comes from