|
|
@@ -100,6 +100,8 @@ pipi_image_t *pipi_autocontrast(pipi_image_t *src) |
|
|
|
= (srcdata[4 * (y * w + x) + 1] - min) * t; |
|
|
|
dstdata[4 * (y * w + x) + 2] |
|
|
|
= (srcdata[4 * (y * w + x) + 2] - min) * t; |
|
|
|
dstdata[4 * (y * w + x) + 3] |
|
|
|
= srcdata[4 * (y * w + x) + 3]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|