Skip to content

Commit df51556

Browse files
authored
Merge pull request labgrid-project#1827 from leinher/master
driver/usbvideodriver: add support for Anivia W8 Webcam
2 parents 5f9e621 + da0233f commit df51556

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

labgrid/driver/usbvideodriver.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ def get_qualities(self):
8181
("mid", "image/jpeg,width=1920,height=1080,pixel-aspect-ratio=1/1,framerate=30/1"),
8282
("high", "image/jpeg,width=3840,height=2160,pixel-aspect-ratio=1/1,framerate=18/1"),
8383
])
84+
elif match == (0x0c45, 0x6366): # Anivia W8 - Sonix Technology Co. Ltd.
85+
return ("mid", [
86+
("low", "video/x-raw,format=YUY2,width=640,height=400,pixel-aspect-ratio=1/1,framerate=30/1"),
87+
("mid", "video/x-raw,format=YUY2,width=800,height=600,pixel-aspect-ratio=1/1,framerate=20/1"),
88+
("high", "video/x-raw,format=YUY2,width=1920,height=1080,pixel-aspect-ratio=1/1,framerate=5/1"),
89+
])
8490
self.logger.warning(
8591
"Unknown USB video device {:04x}:{:04x}, using fallback pipeline."
8692
.format(*match))

0 commit comments

Comments
 (0)