Searched refs:pixelComponentCount (Results 1 – 1 of 1) sorted by relevance
76 size_t pixelComponentCount = header.colorDepth / CHAR_BIT; in LoadTGAImageFromFile() local77 std::vector<unsigned char> buffer(header.width * header.height * pixelComponentCount); in LoadTGAImageFromFile()84 …der.descriptor & INVERTED_BIT) ? (header.height - 1 - y) : y) * header.width * pixelComponentCount; in LoadTGAImageFromFile()87 size_t pixelIdx = rowIdx + x * pixelComponentCount; in LoadTGAImageFromFile()90 pixel[0] = (pixelComponentCount > 2) ? buffer[pixelIdx + 2] : 0; in LoadTGAImageFromFile()91 pixel[2] = (pixelComponentCount > 0) ? buffer[pixelIdx + 0] : 0; in LoadTGAImageFromFile()92 pixel[1] = (pixelComponentCount > 1) ? buffer[pixelIdx + 1] : 0; in LoadTGAImageFromFile()93 pixel[3] = (pixelComponentCount > 3) ? buffer[pixelIdx + 3] : 255; in LoadTGAImageFromFile()