STRUCT S5P_JPEG_FMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

struct s5p_jpeg_fmt β€” bestie, this is the driver's own internal lil' dossier on a color format πŸŽ€ like it's the receipts the s5p-jpeg driver keeps on every pixel layout it fucks with.

This page lives in the Kernel API Manual, section 9 (iykyk, that's the kernel-API girlies) ✨


🌸 SYNOPSIS

struct s5p_jpeg_fmt {
    u32 fourcc;
    int depth;
    int colplanes;
    int memplanes;
    int h_align;
    int v_align;
    int subsampling;
    u32 flags;
 };

That's the whole vibe, no cap β€” eight fields, one iconic little struct 🫢


πŸ’– MEMBERS

okay so let's go through the whole cast, one by one, main character energy only:

  • fourcc β€” the fourcc code, fr fr. And if it's 0? That means it's not applicable, so don't come for it πŸ’€
  • depth β€” how many bits per pixel. literally just the bit count, that's the whole thing 🌈
  • colplanes β€” the number of color planes. packed formats? that's 1, periodt πŸ’…
  • memplanes β€” the number of memory planes. also 1 for the packed formats, she's consistent ✨
  • h_align β€” horizontal alignment order. so you align to 2^h_align, okay? the exponent is doing the work here, not the raw number πŸ‘‘
  • v_align β€” vertical alignment order, same situation: you align to 2^v_align. twin to h_align but vertical, we love a matched set πŸ¦‹
  • subsampling β€” the subsampling of a raw format or a JPEG. yes it does both, she contains multitudes 🌸
  • flags β€” the flags that describe the format's applicability. ie: what this format is actually good for πŸŽ€

πŸ”₯ SEE ALSO

go read the kernel file itself, bestie, it's all right there:

./drivers/media/platform/samsung/s5p-jpeg/jpeg-core.h

and the whole friend group of structs:

  • struct s5p_jpeg(9)
  • struct s5p_jpeg_marker(9)
  • struct s5p_jpeg_q_data(9)
  • struct s5p_jpeg_ctx(9)
  • struct s5p_jpeg_buffer(9)
  • struct s5p_jpeg_addr(9)

lowkey a whole squad, ngl. go read 'em all, they're short 🫢

okay that's the page!! sourced straight from ./drivers/media/platform/samsung/s5p-jpeg/jpeg-core.h, dated October 2026, and yes the footer was giving struct s5p_jpeg_fmt(9) πŸ’œ mwah, go forth and encode ✨🧚

πŸ“¦ where this page comes from