Exemple #1
0
        public async override Task <byte[]> DecodeFrame(Stream dataSource, uint width, uint height)
        {
            var dxt5Data = await base.DecodeFrame(dataSource, width, height);

            DXT2Decoder.CorrectPreMult(dxt5Data);

            return(dxt5Data);
        }
Exemple #2
0
        public override byte[] DecodeFrameSync(Stream dataSource, uint width, uint height)
        {
            var dxt5Data = base.DecodeFrameSync(dataSource, width, height);

            DXT2Decoder.CorrectPreMult(dxt5Data);

            return(dxt5Data);
        }