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

/external/libpng/contrib/libtests/
H A Dmakepng.c14 * makepng [--sRGB|--linear|--1.8] [--tRNS] [--nofilters] \
43 * For color-mapped images a four channel color-map is used and if --tRNS is
44 * given the PNG file has a tRNS chunk, as follows:
54 * The palette always has 2^bit-depth entries and the tRNS chunk one fewer. The
57 * For formats other than color-mapped ones if --tRNS is specified a tRNS chunk
772 unsigned int filters, unsigned int *colors, int small, int tRNS)
897 if (tRNS)
906 else if (tRNS)
1685 int tRNS local
770 write_png(const char **name, FILE *fp, int color_type, int bit_depth, volatile png_fixed_point gamma, chunk_insert * volatile insert, unsigned int filters, unsigned int *colors, int small, int tRNS) argument
[all...]
H A Dpngvalid.c366 * indicating if a tRNS chunk was generated.
395 pos = safecat(buffer, bufsize, pos, "+tRNS");
453 unsigned int* palette_number, int low_depth_gray, int tRNS)
468 /* Add multiple palettes for colour type 3, one image with tRNS
474 if (((ct == 0/*GRAY*/ || ct/*RGB*/ == 2) && tRNS && pn < 2) ||
2061 unsigned int test_tRNS :1; /* Includes tRNS images */
3242 values[i][0] = 255; /* no transparency/tRNS chunk */
3268 * indicates whether or not to also set the tRNS chunk.
3299 png_byte tRNS[256]; local
3303 if ((tRNS[
452 next_format(png_bytep colour_type, png_bytep bit_depth, unsigned int* palette_number, int low_depth_gray, int tRNS) argument
3327 png_color_16 tRNS; local
[all...]
/external/libpng/
H A Dpngwrite.c216 /* Invert the alpha channel (in tRNS) */
1798 png_byte tRNS[256]; local
1800 memset(tRNS, 255, (sizeof tRNS));
1844 tRNS[i] = alphabyte;
1873 tRNS[i] = entry[afirst ? 0 : 3];
1874 if (tRNS[i] < 255)
1884 tRNS[i] = entry[1 ^ afirst];
1885 if (tRNS[i] < 255)
1910 png_set_tRNS(image->opaque->png_ptr, image->opaque->info_ptr, tRNS,
[all...]
/external/pdfium/third_party/lpng_v163/
H A Dpngwrite.c214 /* Invert the alpha channel (in tRNS) */
1898 png_byte tRNS[256]; local
1900 memset(tRNS, 255, (sizeof tRNS));
1944 tRNS[i] = alphabyte;
1973 tRNS[i] = entry[afirst ? 0 : 3];
1974 if (tRNS[i] < 255)
1984 tRNS[i] = entry[1 ^ afirst];
1985 if (tRNS[i] < 255)
2010 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...]

Completed in 278 milliseconds