Searched defs:tRNS (Results 1 - 3 of 3) sorted by relevance

/external/libpng/
H A Dpngwrite.c215 /* Invert the alpha channel (in tRNS) */
2005 png_byte tRNS[256]; local
2007 memset(tRNS, 255, (sizeof tRNS));
2051 tRNS[i] = alphabyte;
2080 tRNS[i] = entry[afirst ? 0 : 3];
2081 if (tRNS[i] < 255)
2091 tRNS[i] = entry[1 ^ afirst];
2092 if (tRNS[i] < 255)
2117 png_set_tRNS(image->opaque->png_ptr, image->opaque->info_ptr, tRNS,
[all...]
/external/zopfli/src/zopflipng/lodepng/
H A Dlodepng.cpp3592 /*only use color key if numpixels large enough to justify tRNS chunk size*/
4306 else return 42; /*error: tRNS chunk not allowed for other color models*/
4633 /*palette transparency chunk (tRNS)*/
4634 else if(lodepng_chunk_type_equals(chunk, "tRNS"))
4944 ucvector tRNS; local
4945 ucvector_init(&tRNS);
4956 for(i = 0; i < amount; i++) ucvector_push_back(&tRNS, info->palette[4 * i + 3]);
4962 ucvector_push_back(&tRNS, (unsigned char)(info->key_r / 256));
4963 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256));
4970 ucvector_push_back(&tRNS, (unsigne
[all...]
/external/libpng/contrib/libtests/
H A Dpngvalid.c3090 values[i][0] = 255; /* no transparency/tRNS chunk */
3116 * indicates whether or not to also set the tRNS chunk.
3147 png_byte tRNS[256]; local
3151 if ((tRNS[i] = ppal[i].alpha) < 255)
3156 tRNS[i] = 24;
3160 png_set_tRNS(pp, pi, tRNS, j, 0/*color*/);
3496 init_standard_palette(ps, pp, pi, 1U << bit_depth, 1/*do tRNS*/);
3733 init_standard_palette(ps, pp, pi, 1U << bit_depth, 0/*do tRNS*/);
4003 init_standard_palette(ps, pp, pi, 1U << bit_depth, 0/*do tRNS*/);
4388 /* Oops, if a palette tRNS get
[all...]

Completed in 1469 milliseconds