658
658
/* then make float be in linear space */
659
659
IMB_colormanagement_colorspace_to_scene_linear(rect_float, ibuf->x, ibuf->y, ibuf->channels,
662
662
/* byte buffer is straight alpha, float should always be premul */
663
663
IMB_premultiply_rect_float(rect_float, ibuf->channels, ibuf->x, ibuf->y);