ser

package
v0.0.0-...-5b84a0d Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ColorID_MONO       ColorID = 0
	ColorID_BAYER_RGGB ColorID = 8
	ColorID_BAYER_GRBG ColorID = 9
	ColorID_BAYER_GBRG ColorID = 10
	ColorID_BAYER_BGGR ColorID = 11
	ColorID_BAYER_CYYM ColorID = 16
	ColorID_BAYER_YCMY ColorID = 17
	ColorID_BAYER_YMCY ColorID = 18
	ColorID_BAYER_MYYC ColorID = 19
	ColorID_RGB        ColorID = 100
	ColorID_BGR        ColorID = 101

	BigEndian    Endianness = 0
	LittleEndian Endianness = 1
)

Variables

View Source
var FileSignature [14]byte

Functions

func FixedStringToString

func FixedStringToString(fixed [40]byte) string

func TimeFromDateTime

func TimeFromDateTime(dateTime DateTime) time.Time

Types

type ColorID

type ColorID int32

func (ColorID) String

func (c ColorID) String() string

type DateTime

type DateTime uint64

func DateTimeNow

func DateTimeNow() DateTime

type Endianness

type Endianness int32
type Header struct {
	FileID             [14]byte // File Signature
	LuID               int32    // Lumenera camera series ID (unused)
	ColorID            ColorID
	Endianness         Endianness
	ImageWidth         int32
	ImageHeight        int32
	PixelDepthPerPlane int32
	FrameCount         int32
	Observer           [40]byte // Name of observer
	Instrument         [40]byte // Name of camera
	Telescope          [40]byte // Name of telescope
	DateTime           DateTime // Local time
	DateTimeUTC        DateTime // Time (UTC)
}

func LoadHeader

func LoadHeader(filename string) (header Header, err error)

type SER

type SER struct {
	Header Header
	// contains filtered or unexported fields
}

func New

func New(filename string, imageWidth int32, imageHeight int32) *SER

func Open

func Open(filename string) (ser *SER, err error)

Jump to

Keyboard shortcuts

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