STRUCT S5P_JPEG_FMT(9)
π 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's0? 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's1, periodt πmemplanesβ the number of memory planes. also1for the packed formats, she's consistent β¨h_alignβ horizontal alignment order. so you align to2^h_align, okay? the exponent is doing the work here, not the raw number πv_alignβ vertical alignment order, same situation: you align to2^v_align. twin toh_alignbut 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
- 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