STRUCT V4L2_JPEG_REFERENCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct v4l2_jpeg_reference(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's a little struct from the v4l2-jpeg header and honestly? she's small but she matters. iykyk 🌸


✨ NAME ✨

struct v4l2_jpeg_reference β€” literally just a reference into the JPEG buffer πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct v4l2_jpeg_reference {
    u8 *start;
    size_t length;
};

like, that's the whole thing. two fields. she's compact. she's iconic. πŸ’…


πŸ‘― MEMBERS πŸ‘―

  • start β€” pointer to the start of the referenced segment or table ✨
  • length β€” size of the referenced segment or table. yes, the size. of the thing. 🫢

πŸ’– DESCRIPTION πŸ’–

okay so when you're referencing marker segments, here's the vibe check you cannot fail: start points right after the marker code, and length is the size of the segment parameters β€” excluding the marker code. fr fr, don't count the marker code, that's the whole trick 😭

ngl this is the kind of off-by-a-few-bytes situation that will absolutely ruin your day, so like… read it twice. πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./include/media/v4l2-jpeg.h
  • struct v4l2_jpeg_frame_component_spec(9)
  • struct v4l2_jpeg_frame_header(9)
  • struct v4l2_jpeg_scan_component_spec(9)
  • struct v4l2_jpeg_scan_header(9)
  • enum v4l2_jpeg_app14_tf(9)
  • struct v4l2_jpeg_header(9)

like, go read the whole friend group, they all slay together πŸ§šβ€β™€οΈ


okay that's the page!! mwah πŸ’‹ this one came straight out of ./include/media, dated October 2026, and she goes by struct v4l2_jpeg_reference(9) β€” stan a tiny struct with big main character energy πŸ‘‘β­

πŸ“¦ where this page comes from