STRUCT MXC_JPEG_SOS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, gather round, because this is struct mxc_jpeg_sos β€” the struct that holds all the JPEG Start Of Scan marker fields. no cap, that's literally its whole job. it's giving "small but essential" energy and we respect it. ✨

(this whole thing lives in the Kernel API Manual, section 9, and yes we're getting into kernel struct lore today πŸŽ€)


🌸 SYNOPSIS 🌸

here's the glow-up itself, and you're gonna copy it exactly, ok? character for character, no freestyling:

struct mxc_jpeg_sos {
    u16 length;
    u8 components_no;
    struct mxc_jpeg_sos_comp comp[MXC_JPEG_MAX_COMPONENTS];
    u8 ignorable_bytes[3];
 };

look at that little guy. four fields. immaculate vibes. πŸ’–


🧚 Members 🧚

okay let's meet the cast, one by one, main character energy for all of them:

  • length β€” the Start of Frame length. yes fr, that's what the docs say, and we're reporting it faithfully, bestie. it's a u16, it's here, it's doing its thing. πŸ™ˆ
  • components_no β€” the number of color components. a u8. it literally tells you how many color components we're dealing with. lowkey important. πŸ”₯
  • comp β€” the SOS component fields for each color component! it's an array of struct mxc_jpeg_sos_comp, sized MXC_JPEG_MAX_COMPONENTS, so every color component gets its own little slot. obsessed. πŸ¦‹
  • ignorable_bytes β€” ignorable bytes. that's it, that's the description, they're bytes and you can ignore them πŸ’€ it's a u8 array of [3], and honestly? iconic for being that upfront about it. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, i'm literally begging you, the lore is deep:

  • Kernel file ./drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h
  • struct mxc_jpeg_fmt(9)
  • struct mxc_jpeg_sof_comp(9)
  • struct mxc_jpeg_sof(9)
  • struct mxc_jpeg_sos_comp(9)

like, read the whole friend group, not just one of them. iykyk. 🌈


ngl the synopsis is the part people actually copy, so keep those field names and types exactly as written β€” u16 length, u8 components_no, struct mxc_jpeg_sos_comp comp[MXC_JPEG_MAX_COMPONENTS], u8 ignorable_bytes[3]. no renaming, no merging, no "improving". periodt. πŸ’…

and that's the page!! πŸŽ€ it comes to you from source ./drivers/media/platform/nxp/i... (yes it's truncated in the footer, that's just how it is, don't come for me 😭) and it's dated October 2026 β€” so go forth, cite struct mxc_jpeg_sos(9) correctly, and slay your kernel reading era. bye bestie, drink water, read your headers πŸ“β­πŸ’œ

πŸ“¦ where this page comes from