Move options to file

This commit is contained in:
Milan Nikolic
2019-10-06 03:14:07 +02:00
parent 2628bbefbf
commit 3844a46486
5 changed files with 9 additions and 32 deletions

View File

@@ -14,14 +14,6 @@ import (
im "github.com/gen2brain/cam2ip/image"
)
// Options.
type Options struct {
Index int
Rotate int
Width float64
Height float64
}
// Camera represents camera.
type Camera struct {
opts Options