示例#1
0
func init() {
	datastore.Register(NewType())

	// Need to register types that will be used to fulfill interfaces.
	gob.Register(&Type{})
	gob.Register(&Data{})
}
示例#2
0
文件: rgba8.go 项目: hanslovsky/dvid
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)
}
示例#3
0
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{})
}
示例#4
0
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)
}
示例#5
0
文件: uint8.go 项目: hanslovsky/dvid
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)
}
示例#6
0
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{})
}
示例#7
0
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{})
}