native

package
v0.0.0-...-0345585 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDecode

func DefaultDecode(image *imageserver.Image, parameters imageserver.Parameters) (native_image.Image, error)

DefaultDecode is the default Decode function

Types

type NativeProcessor

type NativeProcessor struct {
	DecodeFunc func(*imageserver.Image, imageserver.Parameters) (native_image.Image, error)
	Processor
	EncodeFunc func(native_image.Image, imageserver.Parameters) (*imageserver.Image, error)
}

NativeProcessor is an Image Processor that uses the natives Go images

Steps:

- decode (from raw data to Go image)

- process (Go image)

- encode (from Go image to raw data)

func (*NativeProcessor) Process

func (processor *NativeProcessor) Process(image *imageserver.Image, parameters imageserver.Parameters) (*imageserver.Image, error)

Process processes an Image using natives Go images

type Processor

type Processor interface {
	Process(native_image.Image, imageserver.Parameters) (native_image.Image, error)
}

Processor represents a native Go image processor

Directories

Path Synopsis
encoder
png

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL