utils

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package utils contains helper functions for the sensor implementations. Warning: The code in this package might be transient. Stability is not guaranteed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName(sensors []string, index int) (string, error)

GetName returns the name of the sensor based on its index in the sensor array.

func GetPNGImage

func GetPNGImage(ctx context.Context, cam camera.Camera) ([]byte, func(), error)

GetPNGImage first attempts to get a lazy PNG image. If the image is not a lazy PNG, the function expects it to be an YCBCR image. If it is neither a lazy PNG nor an YCBCR, the function errors out. The returned function is a release function that must be called once the caller of GetPNGImage is done using the image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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