STRUCT C3_ISP_PARAMS_PST_GAMMA(9)
π 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
- 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