usb webcam with ehci periodic scheduler

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
ehenkes
Member
Member
Posts: 124
Joined: Mon Mar 23, 2009 3:15 am
Location: Germany
Contact:

usb webcam with ehci periodic scheduler

Post by ehenkes »

I started with sourcecode for usb webcams (uncompressed format, YUV2) currently driven by the ehci periodic scheduler and the usb video class:
http://sourceforge.net/p/prettyos/code/ ... sb_video.c
http://sourceforge.net/p/prettyos/code/ ... hciQHqTD.c (cf. ehci_addToPeriodicScheduler)

It runs fine now, but I could not find tutorials, comparable code, discussions and hints at this forum, therefore I am interested to discuss the features of webcams and how to handle the different parameters, formats, etc.

I currently get best results with the Logitech C270, but want to use all kinds of webcams.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: usb webcam with ehci periodic scheduler

Post by SpyderTL »

Very cool. You need to add some information to the wiki. The USB page is pretty good, but it would be nice to have some details on the different usb device class interfaces.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

Re: usb webcam with ehci periodic scheduler

Post by DavidCooper »

The latest edition of Benjamin Lunt's book on USB (http://www.fysnet.net/the_universal_serial_bus.htm - written specifically for OS developers like us) has a section (part 5) on using USB video devices which may be helpful.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
Post Reply