STRUCT MALI_C55_AWB_AVERAGE_RATIOS(9)
π
struct mali_c55_awb_average_ratios β Kernel API Manual β¨
okay bestie, so this is a page from the Kernel API Manual, and it's literally all about the Auto White Balance colour ratios struct. tiny struct, big main character energy. let's go π
πΈ NAME πΈ
struct mali_c55_awb_average_ratios β Auto White Balance colour ratios π¦
β¨ SYNOPSIS β¨
struct mali_c55_awb_average_ratios {
__u16 avg_rg_gr;
__u16 avg_bg_br;
__u32 num_pixels;
};
like, that's the whole thing. three fields. no cap. π
π«Ά Members π«Ά
avg_rg_grβ the Average R/G or G/R ratio, in Q4.8 format. yes bestie, Q4.8, we'll get to it πavg_bg_brβ the Average B/G or B/R ratio, also in Q4.8 format. same vibes, different channels πnum_pixelsβ the number of pixels used in the AWB calculation. count 'em, queen π
π Description π
so the ISP (iconic hardware behavior tbh) calculates and collects average colour ratios for each zone in an image, and stores them in Q4.8 format. and what does Q4.8 mean? the lowest 8 bits are fractional, with bits [11:8] representing the integer. literally that's it, that's the format π§
the exact ratios collected β either R/G, B/G or G/R, B/R β are configurable through the parameters buffer. so you get to choose, yay you β¨
π heads up bestie: the value of the 4 high bits is undefined. so like, don't read into them, don't make plans with them, they are not your friend. undefined means undefined fr fr π
π₯ SEE ALSO π₯
Kernel file ./include/uapi/linux/media/arm/mali-c55-config.h
struct mali_c55_ae_1024bin_hist(9)struct mali_c55_ae_5bin_hist(9)struct mali_c55_af_statistics(9)struct mali_c55_stats_buffer(9)enum mali_c55_param_block_type(9)struct mali_c55_params_sensor_off_preshading(9)enum mali_c55_aexp_hist_tap_points(9)enum mali_c55_aexp_skip_x(9)enum mali_c55_aexp_skip_y(9)enum mali_c55_aexp_row_column_offset(9)enum mali_c55_aexp_hist_plane_mode(9)struct mali_c55_params_aexp_hist(9)struct mali_c55_params_aexp_weights(9)struct mali_c55_params_digital_gain(9)enum mali_c55_awb_stats_mode(9)struct mali_c55_params_awb_gains(9)enum mali_c55_params_awb_tap_points(9)struct mali_c55_params_awb_config(9)struct mali_c55_params_mesh_shading_config(9)struct mali_c55_params_mesh_shading_selection(9)struct mali_c55_params_ccm(9)struct mali_c55_params_gamma(9)MALI_C55_PARAMS_MAX_SIZE(9)
that's the whole page bestie, go read the other structs too, they're all connected, iykyk π
π source/version: ./include/uapi/linux/media/arm β dated October 2026. mwah, thanks for reading, love u, bye π«Άπ
π¦ 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