Now I am trying to get YUV2 buffer from formal USB camera, but it doesn’t easy on Windows system. MS designed most of USB video devices need to use Direct media layer, but it occurs many different problems while using OpenGL or hardware accelerated surface at same instance of Windows application.
So I made it from starting understand UVC and common library of libuvc.
And I understood it depends on libusb that is well known libraray for multiple platforms except Windows. So I have to make it building ways as like Makefile on MSYS and for MinGW-W64, then it comes to Josh Blake’s libusbx to customized for build in MinGW-W64 and MSYS easily.
But it still has many problems, exactly same failure for -12 ( UNSUPPORTED ).
It belongs to failure of libusb_open() returns -12 through libuvc error result. Testing open USB HD Camera with libusb or libusbx always same.
It must be study for what different Windows USB drivers, and why UVC not able to open with formal libusb, further need to understand libusb-win32 or libusbk.
So I reached same position again, Windows is not my option, really.