Home
last modified time | relevance | path

Searched refs:numTrans (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/images/
DSkImageDecoder_libpng.cpp641 int numTrans; in decodePalette() local
649 png_get_tRNS(png_ptr, info_ptr, &trans, &numTrans, nullptr); in decodePalette()
650 *hasAlphap = (numTrans > 0); in decodePalette()
652 numTrans = 0; in decodePalette()
656 if (numTrans > numPalette) { in decodePalette()
657 numTrans = numPalette; in decodePalette()
671 for (; index < numTrans; index++) { in decodePalette()
957 int numTrans = pack_palette(ct, paletteColors, trans, hasAlpha); in doEncode() local
959 if (numTrans > 0) { in doEncode()
960 png_set_tRNS(png_ptr, info_ptr, trans, numTrans, nullptr); in doEncode()