データのサイズが4800で制限されているようだったので、 /uvchost/uvc/uvc.cpp内の int uvc::get_jpeg(const char* path) const int size = 9600; に変更。

Dependents:   WebCamera_SD

Fork of uvchost by Norimasa Okamoto

uvc/uvcctl.cpp

Committer:
Dromar
Date:
2013-02-10
Revision:
4:97438d526ad3
Parent:
0:b0f04c137829

File content as of revision 4:97438d526ad3:

#include "mbed.h"
#include "uvc.h"
#define __DEBUG
#include "mydbg.h"

UsbErr uvc::Control(int req, int cs, int index, uint8_t* buf, int size)
{
    UsbErr rc;
    if (req == SET_CUR) {    
        rc = m_pDev->controlSend(
                    USB_HOST_TO_DEVICE | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 
                    req, cs<<8, index, buf, size);
        return rc;
    }
    rc = m_pDev->controlReceive(
                USB_DEVICE_TO_HOST | USB_REQUEST_TYPE_CLASS | USB_RECIPIENT_INTERFACE, 
                req, cs<<8, index, buf, size);
    return rc;
}