예제 #1
0
파일: GIFRegUV.cs 프로젝트: tsiru/pcsx2
 public static GIFReg Unpack(GIFTag tag, byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
 {
     GIFRegUV uv = new GIFRegUV(addr, LowData, HighData, PackedFormat);
     uv.Descriptor = (GIFRegDescriptor)addr;
     if (PackedFormat)
     {
         uv.U = GetBit(LowData, 0, 14) / 16d;
         uv.V = GetBit(LowData, 32, 14) / 16d;
     }
     else
     {
         uv.U = GetBit(LowData, 0, 14) / 16d;
         uv.V = GetBit(LowData, 16, 14) / 16d;
     }
     return uv;
 }
        static public GIFReg Unpack(GIFTag tag, byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
        {
            GIFRegUV uv = new GIFRegUV(addr, LowData, HighData, PackedFormat);

            uv.Descriptor = (GIFRegDescriptor)addr;
            if (PackedFormat)
            {
                uv.U = GetBit(LowData, 0, 14) / 16d;
                uv.V = GetBit(LowData, 32, 14) / 16d;
            }
            else
            {
                uv.U = GetBit(LowData, 0, 14) / 16d;
                uv.V = GetBit(LowData, 16, 14) / 16d;
            }
            return(uv);
        }