STRUCT S5P_JPEG_CTX(9)
π struct s5p_jpeg_ctx(9) β the device context data π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil struct page and honestly it's giving backstage-pass energy: it's literally the device context data for the s5p JPEG thing, like the little purse where the driver keeps all its stuff π
β¨ SYNOPSIS β¨
struct s5p_jpeg_ctx {
struct s5p_jpeg *jpeg;
unsigned int mode;
unsigned short compr_quality;
unsigned short restart_interval;
unsigned short subsampling;
struct s5p_jpeg_q_data out_q;
struct s5p_jpeg_q_data cap_q;
unsigned int scale_factor;
struct v4l2_rect crop_rect;
struct v4l2_fh fh;
bool hdr_parsed;
bool crop_altered;
struct v4l2_ctrl_handler ctrl_handler;
enum s5p_jpeg_ctx_state state;
};
like look at her. fourteen fields. main character struct fr fr π
πΈ Members πΈ
bestie these are the fields one by one, no skipping, we're doing the whole roster because every single one matters π
jpegβ the JPEG IP device for this context π¦modeβ compression (encode) operation or decompression (decode) β so like, which direction we're going, iykykcompr_qualityβ destination image quality in compression (encode) mode β¨restart_intervalβ JPEG restart interval for JPEG encoding βsubsamplingβ subsampling of a raw format or a JPEG πout_qβ source (output) queue information πcap_qβ destination (capture) queue queue information πscale_factorβ scale factor for JPEG decoding π₯crop_rectβ a rectangle representing crop area of the output buffer π«Άfhβ V4L2 file handle πhdr_parsedβ set if header has been parsed during decompression πcrop_alteredβ set if crop rectangle has been altered by the user space πctrl_handlerβ controls handler πstateβ state of the context πΈ
ngl the twoboolflags (hdr_parsedandcrop_altered) are literally just "did this happen yet" checkboxes and honestly? relatable. we love a simple yes/no queen π
π§ SEE ALSO π§
okay so if you wanna keep reading (and you SHOULD, bestie, this is the good stuff), go check out the kernel file ./drivers/media/platform/samsung/s5p-jpeg/jpeg-core.h and these lil sibling structs:
struct s5p_jpeg(9)struct s5p_jpeg_fmt(9)struct s5p_jpeg_marker(9)struct s5p_jpeg_q_data(9)struct s5p_jpeg_buffer(9)struct s5p_jpeg_addr(9)
and that's the whole page, periodt π
this lil icon came to you from ./drivers/media/platform/samsu..., dated October 2026, filed under struct s5p_jpeg_ctx(9) β go be iconic with it, mwah π«Άβ¨
π¦ 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