pal_to_rgb can have internal linkage.