diff options
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz.h | 1 | ||||
-rw-r--r-- | fitz/res_pixmap.c | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index f192daa4..265f6dbe 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -604,7 +604,6 @@ fz_pixmap *fz_keeppixmap(fz_pixmap *pix); void fz_droppixmap(fz_pixmap *pix); void fz_clearpixmap(fz_pixmap *pix); void fz_clearpixmapwithcolor(fz_pixmap *pix, int value); -void fz_gammapixmap(fz_pixmap *pix, float gamma); fz_pixmap *fz_alphafromgray(fz_pixmap *gray, int luminosity); fz_bbox fz_boundpixmap(fz_pixmap *pix); diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index 8d207073..86828c0c 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -107,22 +107,6 @@ fz_boundpixmap(fz_pixmap *pix) return bbox; } -void -fz_gammapixmap(fz_pixmap *pix, float gamma) -{ - unsigned char table[256]; - int n = pix->w * pix->h * pix->n; - unsigned char *p = pix->samples; - int i; - for (i = 0; i < 256; i++) - table[i] = CLAMP(powf(i / 255.0f, gamma) * 255, 0, 255); - while (n--) - { - *p = table[*p]; - p++; - } -} - fz_pixmap * fz_alphafromgray(fz_pixmap *gray, int luminosity) { |