headers

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XResolution = "ResX"
	YResolution = "ResY"
	FPS         = "FPS"
	Model       = "Model"
	Brand       = "Brand"
	PixelBits   = "PixelBits"
	FrameSize   = "FrameSize"
	Firmware    = "Firmware"
	Serial      = "CameraSerial"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderInfo

type HeaderInfo struct {
	// contains filtered or unexported fields
}

HeaderInfo contains the camera description fields returned by a camera service.

func ReadHeaderInfo

func ReadHeaderInfo(reader *bufio.Reader) (*HeaderInfo, error)

func (*HeaderInfo) Brand

func (h *HeaderInfo) Brand() string

Brand returns the camera brand.

func (*HeaderInfo) CameraSerial added in v0.5.2

func (h *HeaderInfo) CameraSerial() int

Camera module unique serial#

func (*HeaderInfo) FPS

func (h *HeaderInfo) FPS() int

FPS implements cptvframe.CameraSpec.

func (*HeaderInfo) Firmware added in v0.5.2

func (h *HeaderInfo) Firmware() string

Camera module firmware revision i.e. 1.2.3

func (*HeaderInfo) FrameSize

func (h *HeaderInfo) FrameSize() int

FrameSize returns the number of bytes in each frame (include any telemetry bytes).

func (*HeaderInfo) MarshalJSON added in v0.5.0

func (h *HeaderInfo) MarshalJSON() ([]byte, error)

func (*HeaderInfo) Model

func (h *HeaderInfo) Model() string

Model returns the camera model.

func (*HeaderInfo) ResX

func (h *HeaderInfo) ResX() int

ResX implements cptvframe.CameraSpec.

func (*HeaderInfo) ResY

func (h *HeaderInfo) ResY() int

ResY implements cptvframe.CameraSpec.

Jump to

Keyboard shortcuts

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