データのサイズが4800で制限されているようだったので、 /uvchost/uvc/uvc.cpp内の int uvc::get_jpeg(const char* path) const int size = 9600; に変更。
Fork of uvchost by
uvcctl.cpp
00001 #include "mbed.h" 00002 #include "uvc.h" 00003 #define __DEBUG 00004 #include "mydbg.h" 00005 00006 UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size) 00007 { 00008 UsbErr rc; 00009 if (req == SET_CUR) { 00010 rc = m_pDev->controlSend( 00011 USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 00012 req, cs<<8, index, buf, size); 00013 return rc; 00014 } 00015 rc = m_pDev->controlReceive( 00016 USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 00017 req, cs<<8, index, buf, size); 00018 return rc; 00019 }
Generated on Wed Jul 13 2022 01:34:55 by
1.7.2
