Skip to content

Commit 87cc175

Browse files
jluebbeEmantor
authored andcommitted
driver/usbvideodriver: add support for LogiLink UA0379 / Microdia camera
Signed-off-by: Jan Luebbe <[email protected]>
1 parent 70525a3 commit 87cc175

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

labgrid/driver/usbvideodriver.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def get_qualities(self):
6363
("mid", "video/x-h264,width=1280,height=720,framerate=25/1"),
6464
("high", "video/x-h264,width=1920,height=1080,framerate=25/1"),
6565
])
66+
elif match == (0x0c45, 0x636b): # LogiLink UA0379 / Microdia
67+
return ("mid", [
68+
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
69+
("mid", "image/jpeg,width=1280,height=720,pixel-aspect-ratio=1/1,framerate=30/1"),
70+
("high", "image/jpeg,width=1920,height=1080,pixel-aspect-ratio=1/1,framerate=30/1"),
71+
])
6672
elif match == (0x0c45, 0x636d): # AUKEY PC-LM1E
6773
return ("mid", [
6874
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
@@ -108,6 +114,9 @@ def get_pipeline(self, path, caps, controls=None):
108114
elif match == (0x1d6c, 0x0103):
109115
controls = controls or "focus_auto=1"
110116
inner = "h264parse"
117+
elif match == (0x0c54, 0x636b):
118+
controls = controls or "focus_auto=1"
119+
inner = None # just forward the jpeg frames
111120
elif match == (0x0c54, 0x636d):
112121
controls = controls or "focus_auto=1"
113122
inner = None # just forward the jpeg frames

0 commit comments

Comments
 (0)