// Package device abstracts the Lian Li Galahad II LCD hardware. The streamer // depends only on the Device interface, so tests can substitute a fake and // future hardware can be supported by adding new implementations. package device import ( "context" "errors" ) // Device sends H.264 frames to a display. Implementations must be safe for // sequential use by a single goroutine. type Device interface { // WriteFrame transmits one encoded access unit to the display. WriteFrame(ctx context.Context, frame []byte) error // Close releases all hardware resources. Close() error } // ErrNotFound is returned when no matching USB device is present. var ErrNotFound = errors.New("device not found")