mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-16 04:18:39 +00:00
Add support for native V4L implementation on Linux/RPi
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestCamera(t *testing.T) {
|
||||
camera, err := New(1)
|
||||
camera, err := New(Options{0, 0, 640, 480})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -25,18 +25,6 @@ func TestCamera(t *testing.T) {
|
||||
|
||||
defer os.RemoveAll(tmpdir)
|
||||
|
||||
var width, height float64 = 640, 480
|
||||
camera.SetProperty(PropFrameWidth, width)
|
||||
camera.SetProperty(PropFrameHeight, height)
|
||||
|
||||
if camera.GetProperty(PropFrameWidth) != width {
|
||||
t.Error("FrameWidth not correct")
|
||||
}
|
||||
|
||||
if camera.GetProperty(PropFrameHeight) != height {
|
||||
t.Error("FrameHeight not correct")
|
||||
}
|
||||
|
||||
var i int
|
||||
var n int = 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user