Documentation ¶
Overview ¶
Package mpo implements an MPO image decoder.
MPO is defined in CIPA DC-007: http://www.cipa.jp/std/documents/e/DC-007_E.pdf.
Index ¶
Constants ¶
View Source
const ( // RedCyan is Red on left eye, cyan on right RedCyan colorType = iota // CyanRed is Cyan on left eye, red on right CyanRed // RedGreen is Red on left eye, green on right RedGreen // GreenRed is Green on left eye, red on right GreenRed )
Variables ¶
View Source
var ErrInconsistentBounds = errors.New("anaglyph images must be the same size")
ErrInconsistentBounds indicates that not all images within the MPO file were found to be the same size, which is a requirement for the anaglyph conversion.
View Source
var ErrInvalidImageCount = errors.New("anaglph conversion only supports 2 image")
ErrInvalidImageCount indicates that incorrect number of images were found during the anaglyph conversion process.
View Source
var ErrNoImages = errors.New("no images found in mpo image")
ErrNoImages indicates that no images were found in the specified file.
Functions ¶
Types ¶
type MPO ¶
MPO represents the likely multiple images stored in a MPO file.
func (*MPO) ConvertToAnaglyph ¶
ConvertToAnaglyph converts an MPO to the anaglyph format specified by ct colorType constant
func (*MPO) ConvertToStereo ¶
ConvertToStereo converts an MPO to a StereoScopic image
Click to show internal directories.
Click to hide internal directories.