瀏覽代碼

Remove scRGB alpha tiff warning for vips 8.15+

DarthSim 1 年之前
父節點
當前提交
f79946905d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      vips/vips.c

+ 4 - 4
vips/vips.c

@@ -153,16 +153,16 @@ vips_black_go(VipsImage **out, int width, int height, int bands)
   return res;
 }
 
-/* Vips loads linear alpha in the 0.0-1.0 range but uses the 0.0-255.0 range.
- * https://github.com/libvips/libvips/pull/3627 fixes this behavior
- */
 int
 vips_fix_scRGB_alpha_tiff(VipsImage *in, VipsImage **out)
 {
 #if VIPS_SCRGB_ALPHA_FIXED
-#warning Revise vips_fix_scRGB_tiff
+  /* Vips 8.15+ uses 0.0-1.0 range for linear alpha, so we don't need a fix.
+   */
   return vips_copy(in, out, NULL);
 #else
+  /* Vips prior to 8.14 loads linear alpha in the 0.0-1.0 range but uses the 0.0-255.0 range.
+   */
   VipsImage *base = vips_image_new();
   VipsImage **t = (VipsImage **) vips_object_local_array(VIPS_OBJECT(base), 4);