We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e17eae commit 680a429Copy full SHA for 680a429
virtual-programs/camera-usb.folk
@@ -349,7 +349,11 @@ When /someone/ wishes $::thisNode uses camera /cameraPath/ with /...options/ {
349
set camera [Camera::new $cameraPath $width $height $bufferCount]
350
351
# TODO: report actual width and height from v4l2
352
- Claim camera $cameraPath has width $width height $height
+ if {[info exists crop]} {
353
+ Claim camera $cameraPath has width [dict get $crop width] height [dict get $crop height]
354
+ } else {
355
+ Claim camera $cameraPath has width $width height $height
356
+ }
357
358
puts "camera-usb: $cameraPath ($options) (tid [getTid]) booted at [clock milliseconds]"
359
0 commit comments