STRUCT V4L2_JPEG_SCAN_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct v4l2_jpeg_scan_header β€” JPEG scan header

Okay bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct v4l2_jpeg_scan_header, which is literally just the JPEG scan header. That's it, that's the vibe. Short page, iconic energy πŸŽ€


✨ SYNOPSIS ✨

struct v4l2_jpeg_scan_header {
    u8 num_components;
    struct v4l2_jpeg_scan_component_spec
component[V4L2_JPEG_MAX_COMPONENTS];
 };

No cap, that's the whole struct 🫢 β€” two members, one of them's an array, and yes the V4L2_JPEG_MAX_COMPONENTS is capitalized because it's a macro and it knows it πŸ‘‘


🌸 Members 🌸

  • num_components β€” Ns 😭 that's the whole description, I'm not gonna lie to you bestie, that's literally what the page says. So: Ns. Make of that what you will πŸ’€
  • component β€” the component-specification, see v4l2_jpeg_scan_component_spec πŸ¦‹. It's an array of those, sized V4L2_JPEG_MAX_COMPONENTS, so you get one spec per component, standard procedure ✨
Fr fr if you're confused by num_components saying Ns, same bestie, same. The manual says what the manual says and I am not out here inventing facts πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/media/v4l2-jpeg.h β€” go read it, it's giving source of truth πŸ’–

  • struct v4l2_jpeg_reference(9)
  • struct v4l2_jpeg_frame_component_spec(9)
  • struct v4l2_jpeg_frame_header(9)
  • struct v4l2_jpeg_scan_component_spec(9)
  • enum v4l2_jpeg_app14_tf(9)
  • struct v4l2_jpeg_header(9)

Like honestly? That whole little family of JPEG structs is the friend group and this one's the scan-header one 🧚 collect them all, iykyk 🌈


And that's the page, periodt πŸ’… Big slay to ./include/media for hosting it, dated October 2026, filed under the struct v4l2_..._scan_header(9) name in the Kernel API Manual β€” mwah, go write some JPEG parsers bestie πŸ“β­

πŸ“¦ where this page comes from