Skip to content

Commit

Permalink
driver/usbvideodriver: add support for LogiLink UA0379 / Microdia camera
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Luebbe <[email protected]>
  • Loading branch information
jluebbe committed Aug 26, 2024
1 parent 6b02373 commit e8d5b15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions labgrid/driver/usbvideodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ def get_qualities(self):
("mid", "video/x-h264,width=1280,height=720,framerate=25/1"),
("high", "video/x-h264,width=1920,height=1080,framerate=25/1"),
])
elif match == (0x0c45, 0x636b): # LogiLink UA0379 / Microdia
return ("mid", [
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
("mid", "image/jpeg,width=1280,height=720,pixel-aspect-ratio=1/1,framerate=30/1"),
("high", "image/jpeg,width=1920,height=1080,pixel-aspect-ratio=1/1,framerate=30/1"),
])
elif match == (0x0c45, 0x636d): # AUKEY PC-LM1E
return ("mid", [
("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"),
Expand Down Expand Up @@ -108,6 +114,9 @@ def get_pipeline(self, path, caps, controls=None):
elif match == (0x1d6c, 0x0103):
controls = controls or "focus_auto=1"
inner = "h264parse"
elif match == (0x0c54, 0x636b):
controls = controls or "focus_auto=1"
inner = None # just forward the jpeg frames
elif match == (0x0c54, 0x636d):
controls = controls or "focus_auto=1"
inner = None # just forward the jpeg frames
Expand Down

0 comments on commit e8d5b15

Please sign in to comment.