decodejpeg

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 6 Imported by: 0

README

#Compilation This packages uses a static library from Independent JPEG Group (IJG) http://www.ijg.org/, compiled from release 9d.

Describes how to compile libjpeg for 12-bit color depth. Get the source from http://www.ijg.org/files/jpegsrc.v9d.tar.gz

We use linux as out main development platform. All binaries are compiled on linux (cross compilation) GOPATH=${GOPATH:=${HOME}/go} DESTINATION=${GOPATH}/src/github.com/innosat-mats/rac-extract-payload/internal/decodejpeg tar xf jpegsrc.v9d.tar.gz cd jpeg-9d

Linux

./configure --prefix=${DESTINATION}/linux patch -p1 <12-bitpatch make make install

Windows

To crosscompile for windows mingw32

CC=x86_64-w64-mingw32-gcc ./configure --prefix=${DESTINATION}/windows

MacOSX

CC=o64-clang ./configure --prefix=${GOPATH}/src/github.com/innosat-mats/rac-extract-payload/internal/decodejpeg/darwin --host=x86_64-apple-darwin19 patch -p1 <12-bit_patch make make install

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JpegImageData

func JpegImageData(jpegData []byte) (rawData []uint16, height int, width int, err error)

JpegImageData converts a grayscale image encoded in 12-bit jpeg to raw data

Types

This section is empty.

Jump to

Keyboard shortcuts

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