pupil-labs / libuvc

a cross-platform library for USB video devices
https://int80k.com/libuvc/
Other
51 stars 30 forks source link

unable to receive uncompressed image frames directly from camera #20

Closed camcse closed 6 years ago

camcse commented 6 years ago

Hi - Is it possible to receive uncompressed (YUYV) image frames directly from cameras without having to decode?

I am passing UVC_FRAME_FORMAT_YUYV in uvc_get_stream_ctrl_format_size like this status = uvc_get_stream_ctrl_format_size ( devh, &ctrl, UVC_FRAME_FORMAT_YUYV, 640, 480, 30)

In the received uvc_frame, frame_format(uvc_frame_format) is UVC_FRAME_FORMAT_YUYV which is correct but the frame dump shows it is still an mjpeg frame. Please tell me what am I missing here.

OS - Windows 10, Cameras - USB cameras in Pupil ET addon for Oculus DK2 Camera Device Configuration file attached camera_configuration.txt

mkassner commented 6 years ago

This should work when using libuvc without pyuvc. We did not alter the code here in regards to the origin.