pub(crate) fn bilinear_interpolation( tl: u32, tr: u32, bl: u32, br: u32, distx: u32, disty: u32, ) -> u32