main/formats: Add a get_linear_format_srgb helper