Home | History | Annotate | Download | only in lodepng

Lines Matching defs:tRNS

3592         /*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;
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, (unsigned char)(info->key_r / 256));
4971 ucvector_push_back(&tRNS, (unsigned char)(info->key_r % 256));
4972 ucvector_push_back(&tRNS, (unsigned char)(info->key_g / 256));
4973 ucvector_push_back(&tRNS, (unsigned char)(info->key_g % 256));
4974 ucvector_push_back(&tRNS, (unsigned char)(info->key_b / 256));
4975 ucvector_push_back(&tRNS, (unsigned char)(info->key_b % 256));
4979 error = addChunk(out, "tRNS", tRNS.data, tRNS.size);
4980 ucvector_cleanup(&tRNS);
5749 /*tRNS*/
5965 case 39: return "more palette alpha values given in tRNS chunk than there are colors in the palette";
5966 case 40: return "tRNS chunk has wrong size for greyscale image";
5967 case 41: return "tRNS chunk has wrong size for RGB image";
5968 case 42: return "tRNS chunk appeared while it was not allowed for this color type";