int Ov51xSetDefaultParams(PDRVCONTEXT pDrv) { int i; struct ov511_frame frame[OV511_NUMFRAMES]; /* Set default sizes in case IOCTL (VIDIOCMCAPTURE) is not used * (using read() instead). */ for (i = 0; i < OV511_NUMFRAMES; i++) { frame.width = 320;//-----------------------------------请问是修改这里么? frame.height = 240; frame.bytes_read = 0; //frame.format = VIDEO_PALETTE_YUV420; frame.depth = 24; } WriteRegvals(pDrv);
/* Initialize to max width/height, YUV420 or RGB24 (if supported) */ if (!Ov511ModeInitRegs(pDrv, 320, 240, 0)) { return 0; }
|