Esempio n. 1
0
        protected override void EncodeBlock(ARGBPixel *sPtr, VoidPtr blockAddr, int width)
        {
            I8Pixel *dPtr = (I8Pixel *)blockAddr;

            for (int y = 0; y < BlockHeight; y++, sPtr += width)
            {
                for (int x = 0; x < BlockWidth;)
                {
                    *dPtr++ = (I8Pixel)sPtr[x++];
                }
            }
        }
Esempio n. 2
0
        protected override void DecodeBlock(VoidPtr blockAddr, ARGBPixel *dPtr, int width)
        {
            I8Pixel *sPtr = (I8Pixel *)blockAddr;

            //RGBPixel* dPtr = (RGBPixel*)destAddr;
            for (int y = 0; y < BlockHeight; y++, dPtr += width)
            {
                for (int x = 0; x < BlockWidth;)
                {
                    dPtr[x++] = (ARGBPixel)(*sPtr++);
                }
            }
        }