Lines Matching defs:trans_alpha
5048 png_bytep trans_alpha;
5083 trans_alpha = 0;
5085 if ((png_get_tRNS(pp, pi, &trans_alpha, &num, 0) & PNG_INFO_tRNS) != 0 &&
5086 (trans_alpha != NULL || num != 1/*returns 1 for a transparent color*/) &&
5088 * far as 1.5.4) does not remove the trans_alpha pointer, only num_trans,
5092 !(trans_alpha != NULL && num == 0)) /* TODO: fix this in libpng. */
5102 if (trans_alpha == NULL || num <= 0 || num > 256 || num > *npalette)
5106 palette[i].alpha = trans_alpha[i];