STRUCT C3_ISP_PARAMS_PST_GAMMA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct c3_isp_params_pst_gamma β€” the kernel API manual, bestie edition πŸŽ€

okay so you're here for struct c3_isp_params_pst_gamma, and honestly? iconic of you. this is the Post gamma configuration struct, and it lives in the kernel API manual (section 9, kernel docs energy). let's get into it ✨


🌸 NAME 🌸

struct c3_isp_params_pst_gamma β€” Post gamma configuration πŸ’…


✨ SYNOPSIS ✨

struct c3_isp_params_pst_gamma {
    struct c3_isp_params_block_header header;
    __u16 lut[129];
    __u16 reserved[3];
 };

that's the whole vibe right there. three members, no notes 🫢


πŸ¦‹ Members πŸ¦‹

  • header β€” the C3 ISP parameters block header, literally the main character energy of this struct πŸŽ€
  • lut β€” the lookup table for P-Stitch gamma, values [0..1023] 🌈
  • reserved β€” applications must zero this array. no cap, zero it. πŸ™ˆ

πŸ’– Description πŸ’–

so this struct is what lets you configure the lookup table for post gamma. the gamma curve is made of 129 points, which is exactly why you need to set lut[129] β€” all 129 of them, not 128, not 130, do not come for me πŸ”₯

and listen, header.type should be set to C3_ISP_PARAMS_BLOCK_PST_GAMMA, which comes from c3_isp_params_block_type. iykyk πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./include/uapi/linux/media/amlogic/c3-isp-config.h β€” go read it, it's giving lore 🧚

and while you're in the neighborhood, say hi to the whole friend group:

  • struct c3_isp_awb_zone_stats(9)
  • struct c3_isp_awb_stats(9)
  • struct c3_isp_ae_zone_stats(9)
  • struct c3_isp_ae_stats(9)
  • struct c3_isp_af_zone_stats(9)
  • struct c3_isp_af_stats(9)
  • struct c3_isp_stats_info(9)
  • enum c3_isp_params_buffer_version(9)
  • enum c3_isp_params_block_type(9)
  • c3_isp_params_block_header(9)
  • struct c3_isp_params_awb_gains(9)
  • enum c3_isp_params_awb_tap_points(9)
  • struct c3_isp_params_awb_config(9)
  • enum c3_isp_params_ae_tap_points(9)
  • struct c3_isp_params_ae_config(9)
  • enum c3_isp_params_af_tap_points(9)
  • struct c3_isp_params_af_config(9)
  • struct c3_isp_params_ccm(9)
  • struct c3_isp_params_csc(9)
  • struct c3_isp_params_blc(9)
  • C3_ISP_PARAMS_MAX_SIZE(9)
  • struct c3_isp_params_cfg(9)

okay that's the whole page, bestie!! you ate that πŸ’…βœ¨ source file: ./include/uapi/linux/media/aml... and the version date is October 2026 β€” mwah, see you in the kernel docs πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from