buffer: stop doing nearest neighbor for scaled cmyk blits

parent 3d24aec5
...@@ -2091,18 +2091,10 @@ _gegl_buffer_get_unlocked (GeglBuffer *buffer, ...@@ -2091,18 +2091,10 @@ _gegl_buffer_get_unlocked (GeglBuffer *buffer,
gint interpolation = (flags & GEGL_BUFFER_FILTER_ALL); gint interpolation = (flags & GEGL_BUFFER_FILTER_ALL);
gint factor = 1; gint factor = 1;
/* XXX: temporary, force nearest neighbor filter for blit saling of
CMYK based buffers
*/
const Babl *bfmt = gegl_buffer_get_format (buffer); const Babl *bfmt = gegl_buffer_get_format (buffer);
const Babl *model = babl_format_get_model (bfmt); const Babl *model = babl_format_get_model (bfmt);
BablModelFlag model_flags = babl_model_get_flags (model); BablModelFlag model_flags = babl_model_get_flags (model);
if (model_flags & BABL_MODEL_FLAG_CMYK)
{
interpolation = GEGL_BUFFER_FILTER_NEAREST;
}
while (scale <= 0.5) while (scale <= 0.5)
{ {
x1 = 0 < x1 ? x1 / 2 : (x1 - 1) / 2; x1 = 0 < x1 ? x1 / 2 : (x1 - 1) / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment