STRUCT S5P_JPEG_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, iykyk
  • compr_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 two bool flags (hdr_parsed and crop_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