STRUCT FDP1_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct fdp1_fmt(9) β€” the inside scoop

okay so bestie, welcome to struct fdp1_fmt(9)</kbd></pink> β€” no wait, it's just struct fdp1_fmt(9)`, the manual page for The FDP1 internal format data. yes that's the whole vibe: it's a C struct that holds the tea on how the FDP1 hardware wants its formats laid out. internal format data, main character energy only πŸŽ€


✨ NAME ✨

struct fdp1_fmt β€” the FDP1 internal format data πŸ¦‹

like, the format struct. the one that knows things. iykyk.


🌸 SYNOPSIS 🌸

here's the whole struct, character for character, do not touch:

struct fdp1_fmt {
    u32 fourcc;
    u8 bpp[3];
    u8 num_planes;
    u8 hsub;
    u8 vsub;
    u8 fmt;
    bool swap_yc;
    bool swap_uv;
    u8 swap;
    u8 types;
 };

look at her. ten fields. iconic. πŸ‘‘


🧚 Members 🧚

okay so let's go through every single one because we do NOT skip members in this house:

  • fourcc β€” the fourcc code, and its whole job is to match the V4L2 API. like it's the ID that lets V4L2 recognise her πŸ’–
  • bpp β€” bits per pixel per plane. yes, per plane, so it's an array of 3. maths girlie πŸ“
  • num_planes β€” number of planes. how many planes we're dealing with, fr fr.
  • hsub β€” horizontal subsampling factor. the horizontal situation ✨
  • vsub β€” vertical subsampling factor. and the vertical one. balanced, as all things should be 🌈
  • fmt β€” a 7-bit format code for the fdp1 hardware. seven bits. not eight. seven. don't come for me, that's just what it is πŸ’€
  • swap_yc β€” the Y and C components are swapped, aka Y comes before C. order matters bestie 🫢
  • swap_uv β€” the U and V components are swapped, aka V comes before U. same energy, different letters 😭
  • swap β€” swap register control. that's it, that's the description, she's mysterious like that πŸ™ˆ
  • types β€” types of queue this format is applicable to. plural types. queue applicability. very demure 🌸

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/media/platform/renesas/rcar_fdp1.c β€” go read the source, that's where she lives πŸ’œ

lowkey reminder: every field above is doing real work in the FDP1 driver, so if you're poking at this struct, keep the names and types exactly as written. no cap. πŸ”₯

and that's the page!! πŸŽ€ this lil manual comes from ./drivers/media/platform/renesas, dated October 2026, and it's page struct fdp1_fmt(9) of the Kernel API Manual β€” mwah, slay, bye bestie πŸ’…βœ¨

πŸ“¦ where this page comes from