STRUCT V4L2_JPEG_REFERENCE(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms