Documentation ¶
Index ¶
- Constants
- type HeaderInfo
- func (h *HeaderInfo) Brand() string
- func (h *HeaderInfo) CameraSerial() int
- func (h *HeaderInfo) FPS() int
- func (h *HeaderInfo) Firmware() string
- func (h *HeaderInfo) FrameSize() int
- func (h *HeaderInfo) MarshalJSON() ([]byte, error)
- func (h *HeaderInfo) Model() string
- func (h *HeaderInfo) ResX() int
- func (h *HeaderInfo) ResY() int
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) CameraSerial ¶ added in v0.5.2
func (h *HeaderInfo) CameraSerial() int
Camera module unique serial#
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)
Click to show internal directories.
Click to hide internal directories.