func init() { datastore.Register(NewType()) // Need to register types that will be used to fulfill interfaces. gob.Register(&Type{}) gob.Register(&Data{}) }
func init() { rgba8EncodeFormat = dvid.DataValues{ { T: dvid.T_uint8, Label: "red", }, { T: dvid.T_uint8, Label: "green", }, { T: dvid.T_uint8, Label: "blue", }, { T: dvid.T_uint8, Label: "alpha", }, } interpolable := true rgba := NewType(rgba8EncodeFormat, interpolable) rgba.Type.Name = "rgba8blk" rgba.Type.URL = "github.com/janelia-flyem/dvid/datatype/imageblk/rgba8.go" rgba.Type.Version = "0.2" datastore.Register(&rgba) }
func init() { interpolable := true dtype := NewType(compositeValues, interpolable) // See doc for package on why channels are segregated instead of interleaved. // Data types must be registered with the datastore to be used. typeService = &dtype datastore.Register(&dtype) // Need to register types that will be used to fulfill interfaces. gob.Register(&Type{}) gob.Register(&Data{}) }
func init() { float32EncodeFormat = dvid.DataValues{ { T: dvid.T_float32, Label: "float32", }, } interpolable := true floatimg := NewType(float32EncodeFormat, interpolable) floatimg.Type.Name = "float32blk" floatimg.Type.URL = "github.com/janelia-flyem/dvid/datatype/imageblk/float32.go" floatimg.Type.Version = "0.1" datastore.Register(&floatimg) }
func init() { uint8EncodeFormat = dvid.DataValues{ { T: dvid.T_uint8, Label: "uint8", }, } interpolable := true grayscale := NewType(uint8EncodeFormat, interpolable) grayscale.Type.Name = "uint8blk" grayscale.Type.URL = "github.com/janelia-flyem/dvid/datatype/imageblk/uint8.go" grayscale.Type.Version = "0.2" datastore.Register(&grayscale) }
func init() { dtype = new(Type) dtype.Type = datastore.Type{ Name: TypeName, URL: RepoURL, Version: Version, Requirements: &storage.Requirements{ Batcher: true, }, } // See doc for package on why channels are segregated instead of interleaved. // Data types must be registered with the datastore to be used. datastore.Register(dtype) // Need to register types that will be used to fulfill interfaces. gob.Register(&Type{}) gob.Register(&Data{}) }
func init() { encodeFormat = dvid.DataValues{ { T: dvid.T_uint64, Label: TypeName, }, } interpolable := false dtype = Type{imageblk.NewType(encodeFormat, interpolable)} dtype.Type.Name = TypeName dtype.Type.URL = RepoURL dtype.Type.Version = Version // See doc for package on why channels are segregated instead of interleaved. // Data types must be registered with the datastore to be used. datastore.Register(&dtype) // Need to register types that will be used to fulfill interfaces. gob.Register(&Type{}) gob.Register(&Data{}) }