Lines Matching refs:pixelDepth
86 u32 pixelDepth; member
104 static void UnencodeTgaImage( u8* riPtr, u8* dstPtr, u32 width, u32 height, u32 pixelDepth );
105 static void OrientUncompressedTgaData( u8* srcBuff, u32 width, u32 height, u32 pixelDepth, u32 imag…
142 tga.pixelDepth = (u32)( *((u8* )( rawBits + 0x10 )) ); // bits in ReadTgaFile()
189 switch(tga.pixelDepth) in ReadTgaFile()
195 tga.pixelDepth >>= 3; in ReadTgaFile()
199 tga.pixelDepth = 2; in ReadTgaFile()
236 if( (tga.width == 0) || (tga.height == 0) || (tga.pixelDepth == 0) ) in ReadTgaFile()
244 tgaImageSize = tga.width * tga.height * tga.pixelDepth; in ReadTgaFile()
281 tga.pixelDepth, imageDesc ); in ReadTgaFile()
364 switch(tga->pixelDepth) in CreateTgaColorLayer()
380 switch(tga->pixelDepth) in CreateTgaColorLayer()
409 switch(tga->pixelDepth) in CreateTgaColorLayer()
452 pixelPtr += tga->pixelDepth; in CreateTgaColorLayer()
482 if( (tga->pixelDepth != 2) && (tga->pixelDepth != 4) ) in CreateTgaAlphaLayer()
511 switch(tga->pixelDepth) in CreateTgaAlphaLayer()
535 switch(tga->pixelDepth) in CreateTgaAlphaLayer()
575 pixelPtr += tga->pixelDepth; in CreateTgaAlphaLayer()
704 size = tga->width * tga->height * tga->pixelDepth; in UncompressTgaImage()
707 UnencodeTgaImage( rawImage, tmpBuff, tga->width, tga->height, tga->pixelDepth ); in UncompressTgaImage()
716 size = tga->width * tga->height * tga->pixelDepth; in UncompressTgaImage()
755 static void UnencodeTgaImage( u8* riPtr, u8* dstPtr, u32 width, u32 height, u32 pixelDepth ) in UnencodeTgaImage() argument
786 for(j=0; j<pixelDepth; j++) in UnencodeTgaImage()
793 riOffset += pixelDepth; in UnencodeTgaImage()
802 for(j=0; j<pixelDepth; j++) in UnencodeTgaImage()
820 static void OrientUncompressedTgaData( u8* srcBuff, u32 width, u32 height, u32 pixelDepth, u32 imag… in OrientUncompressedTgaData() argument
829 size = width * height * pixelDepth; in OrientUncompressedTgaData()
849 dstPtr = (u8*)(dstBuff + (width * pixelDepth * (height - 1))); in OrientUncompressedTgaData()
850 dstXstep = pixelDepth; in OrientUncompressedTgaData()
851 dstYstep = -1 * (width * pixelDepth) * 2; in OrientUncompressedTgaData()
856 dstPtr = (u8*)(dstBuff + (width * pixelDepth * height) - pixelDepth); in OrientUncompressedTgaData()
857 dstXstep = -(s32)pixelDepth; in OrientUncompressedTgaData()
874 dstPtr = (u8*)(dstBuff + (width * pixelDepth) - pixelDepth); in OrientUncompressedTgaData()
875 dstXstep = -(s32)pixelDepth; in OrientUncompressedTgaData()
876 dstYstep = ( width * pixelDepth ) * 2; in OrientUncompressedTgaData()
890 for(k=0; k<pixelDepth; k++) in OrientUncompressedTgaData()
905 size = width * height * pixelDepth; in OrientUncompressedTgaData()
945 if( (tga->pixelDepth != 1) && (tga->pixelDepth != 2) ) in AdjustTgaForPaletteOffset()
959 if(tga->pixelDepth == 1) in AdjustTgaForPaletteOffset()
965 else if(tga->pixelDepth == 2) in AdjustTgaForPaletteOffset()