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.
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 )
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.
ErrInvalidImageCount indicates that incorrect number of images were found during the anaglyph conversion process.
ErrNoImages indicates that no images were found in the specified file.
Decode reads a MPO image from r and returns it as an image.Image.
DecodeConfig returns the color model and dimensions of an MPO image without decoding the entire image.
TODO Optimize this - possibly just faling back to jpeg.DecodeConfig
MPO represents the likely multiple images stored in a MPO file.
DecodeAll reads an MPO image from r and returns the sequential frames
ConvertToAnaglyph converts an MPO to the anaglyph format specified by ct colorType constant
ConvertToStereo converts an MPO to a StereoScopic image