データのサイズが4800で制限されているようだったので、 /uvchost/uvc/uvc.cpp内の int uvc::get_jpeg(const char* path) const int size = 9600; に変更。
Fork of uvchost by
mydbg.h
00001 #ifndef _MYDBG_H_ 00002 #define _MYDBG_H_ 00003 #ifdef __DEBUG 00004 #include "Utils.h" 00005 #define DBG(...) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); 00006 #define DBG2(...) do{fprintf(stderr,"[%d] ",__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); 00007 #define DBG_BYTES(A,B,C) do{printf("[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);printfBytes(A,B,C);}while(0); 00008 #define DBG_HEX(A,B) do{printf("[%s@%d]\n",__PRETTY_FUNCTION__,__LINE__);printHex(A,B);}while(0); 00009 #define DBG_LED4(A) led4.write(A) 00010 #define DBG_PRINTF(...) do{fprintf(stderr,__VA_ARGS__);} while(0); 00011 #else //__DEBUG 00012 #define DBG(...) while(0); 00013 #define DBG2(...) while(0); 00014 #define DBG_BYTES(A,B,C) while(0); 00015 #define DBG_HEX(A,B) while(0); 00016 #define DBG_LED4(A) while(0); 00017 #define DBG_PRINTF(...) while(0); 00018 #endif //__DEBUG 00019 #ifdef __DEBUG3 00020 #define DBG3(...) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); 00021 00022 #else //__DEBUG3 00023 #define DBG3(...) while(0); 00024 #endif //__DEBUG3 00025 00026 #ifndef __NODEBUG 00027 #define DBG_ASSERT(A) while(!(A)){fprintf(stderr,"\n\n%s@%d %s ASSERT!\n\n",__PRETTY_FUNCTION__,__LINE__,#A);exit(1);}; 00028 #else 00029 #define DBG_ASSERT(A) while(0); 00030 #endif 00031 00032 #define VERBOSE(...) do{printf(__VA_ARGS__);} while(0); 00033 00034 #endif //_MYDBG_H_
Generated on Wed Jul 13 2022 01:34:55 by
1.7.2
