MPO Decoder Library
Simple Go JPEG MPO (Multi Picture Object) Decoder
Install/Update Command Line Tool
go get -u github.com/donatj/mpo/cmd/mpo2img
mpo2img usage: mpo2img <mpofile> -format string Output format [stereo|red-cyan|cyan-red|red-green|green-red] (default "stereo") -help Displays this text -outfile string Output filename (default "output.jpg")
- Add Writer
- Add more control over stereo/anaglyph
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.
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.
MPO represents the likely multiple images stored in a MPO file.
DecodeAll reads an MPO image from r and returns the sequential frames
func (*MPO) ConvertToAnaglyph ¶
ConvertToAnaglyph converts an MPO to the anaglyph format specified by ct colorType constant