STRUCT IPU3_UAPI_BNR_STATIC_CONFIG_GREEN_DISPARITY(9)
π struct ipu3_uapi_bnr_static_config_green_disparity(9) π
okay so this is from the kernel API manual (section 9, the driver-API girlies), and honestly? she's a whole vibe. sit down bestie, we're talking about green disparity correction β¨
πΈ NAME πΈ
struct ipu3_uapi_bnr_static_config_green_disparity β correct green disparity, no cap π«Ά
π SYNOPSIS π
like, literally the exact struct, mkay, don't touch a single bit:
struct ipu3_uapi_bnr_static_config_green_disparity {
__u32 gd_red:6;
__u32 reserved0:2;
__u32 gd_green:6;
__u32 reserved1:2;
__u32 gd_blue:6;
__u32 reserved2:10;
__u32 gd_black:14;
__u32 reserved3:2;
__u32 gd_shading:7;
__u32 reserved4:1;
__u32 gd_support:2;
__u32 reserved5:1;
__u32 gd_clip:1;
__u32 gd_central_weight:4;
};
π¦ Members π¦
bestie, meet the members. every single bit-field, every single default, i'm not skipping a crumb π
gd_redβ the shading gain coeff for gr disparity level in bright red region. precision u0.6, default4(0.0625). she's precise πreserved0β reserved. iconic, mysterious, does nothing. we respect her πgd_greenβ shading gain coeff for gr disparity level in bright green region. precision u0.6, default4(0.0625).reserved1β reserved. again. leave her alone πgd_blueβ shading gain coeff for gr disparity level in bright blue region. precision u0.6, default4(0.0625).reserved2β reserved, reserved-ing, as she should πgd_blackβ maximal green disparity level in dark region (and like, anything with a stronger disparity is assumed to be image detail, iykyk). precisionu14, default80.reserved3β reserved π«Άgd_shadingβ changes the maximal green disparity level according to square distance from image center. main character energy, honestly π¦reserved4β reserved β¨gd_supportβ lower bound for the number of second green color pixels in the current pixel neighborhood with less than threshold difference from it. whole lotta words, but she ate π½οΈreserved5β reserved πgd_clipβ turns green disparity clip on/off,[0, 1], default1. she's a literal on/off switch, slay.gd_central_weightβ central pixel weight in 9 pixels weighted sum. yes, nine. not eight, not ten.9π₯
π Description π
so the shading gain coeff of red, green, blue and black? they're all used to calculate the threshold given a pixel's color value and its coordinates in the image. that's the whole ~situation~, and it's giving very much "math but make it fashion" π
π SEE ALSO π
the whole friend group, fr fr. here's the kernel file first:
Kernel file ./drivers/staging/media/ipu3/include/uapi/intel-ipu3.h
and now the extended fam, in order, no cuts π:
struct ipu3_uapi_grid_config(9)struct ipu3_uapi_awb_set_item(9)struct ipu3_uapi_awb_raw_buffer(9)struct ipu3_uapi_awb_config_s(9)struct ipu3_uapi_awb_config(9)struct ipu3_uapi_ae_raw_buffer(9)struct ipu3_uapi_ae_raw_buffer_aligned(9)struct ipu3_uapi_ae_grid_config(9)struct ipu3_uapi_ae_weight_elem(9)struct ipu3_uapi_ae_ccm(9)struct ipu3_uapi_ae_config(9)struct ipu3_uapi_af_filter_config(9)struct ipu3_uapi_af_raw_buffer(9)struct ipu3_uapi_af_config_s(9)struct ipu3_uapi_awb_fr_raw_buffer(9)struct ipu3_uapi_awb_fr_config_s(9)struct ipu3_uapi_4a_config(9)struct ipu3_uapi_bubble_info(9)struct ipu3_uapi_ff_status(9)struct ipu3_uapi_stats_3a(9)struct ipu3_uapi_bnr_static_config_wb_gains_config(9)struct ipu3_uapi_bnr_static_config_wb_gains_thr_config(9)struct ipu3_uapi_bnr_static_config_thr_coeffs_config(9)struct ipu3_uapi_bnr_static_config_thr_ctrl_shd_config(9)struct ipu3_uapi_bnr_static_config_opt_center_config(9)struct ipu3_uapi_bnr_static_config_lut_config(9)struct ipu3_uapi_bnr_static_config_bp_ctrl_config(9)struct ipu3_uapi_bnr_static_config_dn_detect_ctrl_config(9)struct ipu3_uapi_bnr_static_config_opt_center_sqr_config(9)struct ipu3_uapi_bnr_static_config(9)struct ipu3_uapi_dm_config(9)struct ipu3_uapi_ccm_mat_config(9)struct ipu3_uapi_gamma_corr_ctrl(9)struct ipu3_uapi_gamma_corr_lut(9)struct ipu3_uapi_gamma_config(9)struct ipu3_uapi_csc_mat_config(9)struct ipu3_uapi_cds_params(9)struct ipu3_uapi_shd_grid_config(9)struct ipu3_uapi_shd_general_config(9)struct ipu3_uapi_shd_black_level_config(9)struct ipu3_uapi_shd_config_static(9)struct ipu3_uapi_shd_lut(9)struct ipu3_uapi_shd_config(9)struct ipu3_uapi_iefd_cux2(9)struct ipu3_uapi_iefd_cux6_ed(9)struct ipu3_uapi_iefd_cux2_1(9)struct ipu3_uapi_iefd_cux4(9)struct ipu3_uapi_iefd_cux6_rad(9)struct ipu3_uapi_yuvp1_iefd_cfg_units(9)struct ipu3_uapi_yuvp1_iefd_config_s(9)struct ipu3_uapi_yuvp1_iefd_control(9)struct ipu3_uapi_sharp_cfg(9)struct ipu3_uapi_far_w(9)struct ipu3_uapi_unsharp_cfg(9)struct ipu3_uapi_yuvp1_iefd_shrp_cfg(9)struct ipu3_uapi_unsharp_coef0(9)struct ipu3_uapi_unsharp_coef1(9)struct ipu3_uapi_yuvp1_iefd_unshrp_cfg(9)struct ipu3_uapi_radial_reset_xy(9)struct ipu3_uapi_radial_reset_x2(9)struct ipu3_uapi_radial_reset_y2(9)struct ipu3_uapi_radial_cfg(9)struct ipu3_uapi_rad_far_w(9)struct ipu3_uapi_cu_cfg0(9)struct ipu3_uapi_cu_cfg1(9)struct ipu3_uapi_yuvp1_iefd_rad_cfg(9)struct ipu3_uapi_vss_lut_x(9)struct ipu3_uapi_vss_lut_y(9)struct ipu3_uapi_yuvp1_iefd_vssnlm_cfg(9)struct ipu3_uapi_yuvp1_iefd_config(9)struct ipu3_uapi_yuvp1_yds_config(9)struct ipu3_uapi_yuvp1_chnr_enable_config(9)struct ipu3_uapi_yuvp1_chnr_coring_config(9)struct ipu3_uapi_yuvp1_chnr_sense_gain_config(9)struct ipu3_uapi_yuvp1_chnr_iir_fir_config(9)struct ipu3_uapi_yuvp1_chnr_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_lpf_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_sense_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_gain_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_clip_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_frng_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_diag_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_fc_coring_config(9)struct ipu3_uapi_yuvp1_y_ee_nr_config(9)struct ipu3_uapi_yuvp2_tcc_gen_control_static_config(9)struct ipu3_uapi_yuvp2_tcc_macc_elem_static_config(9)struct ipu3_uapi_yuvp2_tcc_macc_table_static_config(9)struct ipu3_uapi_yuvp2_tcc_inv_y_lut_static_config(9)struct ipu3_uapi_yuvp2_tcc_gain_pcwl_lut_static_config(9)struct ipu3_uapi_yuvp2_tcc_r_sqr_lut_static_config(9)struct ipu3_uapi_yuvp2_tcc_static_config(9)struct ipu3_uapi_anr_transform_config(9)struct ipu3_uapi_anr_stitch_pyramid(9)struct ipu3_uapi_anr_stitch_config(9)struct ipu3_uapi_anr_config(9)struct ipu3_uapi_acc_param(9)struct ipu3_uapi_isp_lin_vmem_params(9)struct ipu3_uapi_isp_tnr3_vmem_params(9)struct ipu3_uapi_isp_tnr3_params(9)struct ipu3_uapi_isp_xnr3_vmem_params(9)struct ipu3_uapi_xnr3_alpha_params(9)struct ipu3_uapi_xnr3_coring_params(9)struct ipu3_uapi_xnr3_blending_params(9)struct ipu3_uapi_isp_xnr3_params(9)struct ipu3_uapi_obgrid_param(9)struct ipu3_uapi_flags(9)struct ipu3_uapi_params(9)
bestie reminder:reserved0throughreserved5are, like, actually reserved. do not touch. do not write vibes into them. that's a warning, not a suggestion π
and that's the page!! mwah π sign-off time: this cutie came from ./drivers/staging/media/ipu3/i... and it's dated October 2026, filed under struct ipu3_...en_disparity(9). periodt. π
π¦ 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