TrySynthesizeLut() public static method

public static TrySynthesizeLut ( LookupTable &lut, string name, uint da ) : bool
lut LookupTable
name string
da uint
return bool
コード例 #1
0
        public static LookupTable CreateLookupTable(string name, uint address, Stream stream)
        {
            byte[] tba = new byte[32];
            stream.Read(tba, 0, 32);
            Blob          tb = new Blob(address, tba);
            LookupTable3D lut3d;

            if (LookupTable3D.TrySynthesizeLut3D(out lut3d, name, tb, address))
            {
                return(lut3d);
            }
            LookupTable2D lut2d;

            if (LookupTable2D.TrySynthesizeLut2D(out lut2d, name, tb, address))
            {
                return(lut2d);
            }
            LookupTable lut;

            if (LookupTable.TrySynthesizeLut(out lut, name, address))
            {
                return(lut);
            }
            throw new Exception("Bad lut address!!");
        }