STRUCT RPPX1_WBMEAS_PARAMS(9)
π struct rppx1_wbmeas_params(9) π
okay bestie, welcome to the Kernel API Manual β¨ (yes that's the manual name, we're fancy here) β this page is literally all about struct rppx1_wbmeas_params, aka your AWB measurement configuration. it's giving "sensor nerd main character energy" and honestly? obsessed. π
β¨ NAME β¨
struct rppx1_wbmeas_params β AWB measurement configuration π
π¦ SYNOPSIS π¦
struct rppx1_wbmeas_params {
struct v4l2_isp_params_block_header header;
struct rppx1_window wnd;
__u8 mode;
__u8 ymax_cmp;
__u8 frames;
__u8 reserved;
__u32 ref_cr_max_r;
__u32 ref_cb_max_b;
__u32 min_y_max_g;
__u32 max_y;
__u32 max_csum;
__u32 min_c;
__u16 ccor_coeff[3][3];
__u16 reserved2;
__u32 ccor_offs[3];
__u32 reserved3;
};
look at her. so structured. so iconic. π«Ά
π MEMBERS π
one field at a time, no skipping, fr fr:
headerβ the block header (and it's typeRPPX1_PARAMS_BLOCK_TYPE_WBMEAS_POST, periodt) πwndβ the measurement window, that's the little zone we're actually looking at β¨modeβ the measurement mode, straight fromenum rppx1_wbmeas_modeπymax_cmpβ turn on the Y_MAX compare that usesmax_yπframesβ how many frames go into the mean value calculation (0= 1 frame, cute how that works) π¦reservedβ padding, she's just vibing πΈref_cr_max_rβ reference Cr, or the max red value in RGB mode,24bits π₯ref_cb_max_bβ reference Cb, or the max blue value in RGB mode,24bits πmin_y_max_gβ luminance minimum value, or the max green value in RGB mode,24bits πmax_yβ luminance maximum value, but ngl it's only valid ifmodeis set to YCbCr andymax_cmpis set to enabled,24bits βmax_csumβ chrominance sum maximum value,24bits πmin_cβ chrominance minimum value,24bits πccor_coeffβ coefficients for the color conversion matrix, signed16bits Q4.6 πreserved2β padding again, padding queen π§ccor_offsβ R-G-B color conversion coefficients, signed25bits 2's complement πreserved3β yep, more padding, she said "one more for the road" π
πΈ DESCRIPTION πΈ
so the Auto-White Balance measurement module lives on the MAIN_POST pipe π it's got two measurement modes, and you pick which one with the mode field. the measurement window gets programmed through the wnd field. easy.
now for the β¨glow upβ¨ part: to support measurement in YCbCr mode, there's a color conversion matrix with a programmable offset chillin' in the ccor_coeff and ccor_offs fields. the color conversion matrix coefficients are represented as 16 bits signed Q4.12 numbers ranging from -8 to +7.99. and the per-color channel offsets are represented as 25 bits 2's complement integer numbers ranging from -16777216 to +16777215. big numbers. very demure, very mindful π
π SEE ALSO π
go read these next, bestie, they're all linked and they all ate:
- Kernel file
./include/uapi/linux/media/dreamchip/rppx1-config.hstruct rppx1_window(9),enum rppx1_meas_chan(9),enum rppx1_params_block_type(9),enum rppx1_wbmeas_mode(9),struct rppx1_awbg_params(9),enum rppx1_exm_mode(9),struct rppx1_exm_params(9),enum rppx1_hist_mode(9),struct rppx1_hist_params(9),struct rppx1_bls_fixed(9),enum rppx1_bls_mode(9),enum rppx1_bls_win_en(9),struct rppx1_bls_params(9),struct rppx1_ccor_params(9),struct rppx1_lsc_params(9),enum rppx1_ga_seg_mode(9),struct rppx1_ga_params(9),struct rppx1_lin_params(9),RPPX1_PARAMS_MAX_SIZE(9),enum rppx1_stats_block_type(9),struct rppx1_wbmeas_stats(9),struct rppx1_exm_stats(9),struct rppx1_hist_stats(9),RPPX1_STATS_MAX_SIZE(9)
ok that's the whole page, go configure your white balance, slay π
and that's a wrap!! this came from ./include/uapi/linux/media/dre... and it's dated October 2026 β big struct rppx1_wbmeas_params(9) energy, no cap π«Άβ¨ bye bestie!!
π¦ 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