Lines Matching refs:ncolors

941 bool CGarminTyp::decodeBppAndBytes(int ncolors, int w, int flags, int& bpp, int& bytes)  in decodeBppAndBytes()  argument
947 if(ncolors < 3) in decodeBppAndBytes()
949 bpp = ncolors; in decodeBppAndBytes()
951 else if(ncolors == 3) in decodeBppAndBytes()
955 else if(ncolors < 16) in decodeBppAndBytes()
959 else if(ncolors < 256) in decodeBppAndBytes()
972 if(ncolors == 0) in decodeBppAndBytes()
976 else if(ncolors < 3) in decodeBppAndBytes()
980 else if(ncolors < 15) in decodeBppAndBytes()
984 else if(ncolors < 256) in decodeBppAndBytes()
997 if(ncolors == 0) in decodeBppAndBytes()
1001 else if(ncolors < 3) in decodeBppAndBytes()
1003 bpp = ncolors; in decodeBppAndBytes()
1005 else if(ncolors < 4) in decodeBppAndBytes()
1009 else if(ncolors < 16) in decodeBppAndBytes()
1013 else if(ncolors < 256) in decodeBppAndBytes()
1038 bool CGarminTyp::decodeColorTable(QDataStream& in, QImage& img, int ncolors, int maxcolor, bool has… in decodeColorTable() argument
1040 img.setColorCount(ncolors); in decodeColorTable()
1050 for (i = 0; i < ncolors; i++) in decodeColorTable()
1075 for(i = 0; i < ncolors; ++i) in decodeColorTable()
1195 quint8 w, h, ncolors, ctyp; in parsePoint() local
1196 in >> t8_1 >> w >> h >> ncolors >> ctyp; in parsePoint()
1205 if(!decodeBppAndBytes(ncolors, w, ctyp, bpp, wbytes)) in parsePoint()
1211 …qDebug() << " " << dec << "w" << w << "h" << h << "ncolors" << ncolors << "bpp" << bpp <<… in parsePoint()
1216 if((ncolors == 0) && (bpp >= 16)) in parsePoint()
1218 ncolors = w * h; in parsePoint()
1226 if(!decodeColorTable(in, imgDay, ncolors, 1 << bpp, ctyp == 0x20)) in parsePoint()
1243 in >> ncolors >> ctyp; in parsePoint()
1244 if(!decodeBppAndBytes(ncolors, w, ctyp, bpp, wbytes)) in parsePoint()
1248 if(!decodeColorTable(in, imgNight, ncolors, 1 << bpp, ctyp == 0x20)) in parsePoint()
1257 in >> ncolors >> ctyp; in parsePoint()
1258 if(!decodeBppAndBytes(ncolors, w, ctyp, bpp, wbytes)) in parsePoint()
1262 if(!decodeColorTable(in, imgDay, ncolors, 1 << bpp, ctyp == 0x20)) in parsePoint()