util

package
v0.0.0-...-77e6ff9 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package util contains utility code for demosntration of go-libjpeg.

Index

Constants

This section is empty.

Variables

View Source
var SubsampledImages = []string{
	"checkerboard_444.jpg",
	"checkerboard_440.jpg",
	"checkerboard_422.jpg",
	"checkerboard_420.jpg",
}

SubsampledImages contains example images which have subsampling colors.

Functions

func CreateFile

func CreateFile(name string) (f *os.File)

CreateFile opens specified example file

func GetExFilePath

func GetExFilePath(name string) string

GetExFilePath returns the path of specified example file.

func GetOutFilePath

func GetOutFilePath(name string) string

GetOutFilePath returns the path of specified out file.

func OpenFile

func OpenFile(name string) (io io.Reader)

OpenFile opens specified example file

func ReadFile

func ReadFile(name string) (data []byte)

ReadFile reads and returns data bytes of specified example file.

func WritePNG

func WritePNG(img image.Image, name string)

WritePNG encodes and writes image into PNG file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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