max_fixed16
downscale_w = max_fixed16(fp_w_ratio, u32_to_fixed16(1));
downscale_h = max_fixed16(fp_h_ratio, u32_to_fixed16(1));
downscale_w = max_fixed16(fp_w_ratio, u32_to_fixed16(1));
downscale_h = max_fixed16(fp_h_ratio, u32_to_fixed16(1));
max_downscale = max_fixed16(plane_downscale, max_downscale);
selected_result = max_fixed16(method2, wp->y_tile_minimum);