Lines Matching full:device1
277 int device1 = 0; //this could be any deviceID that shows up in listDevices
286 VI.setupDevice(device1); //setup the first device with the default settings
287 //VI.setupDevice(device1, VI_COMPOSITE); //or setup device with specific connection type
288 //VI.setupDevice(device1, 320, 240); //or setup device with specified video size
289 //VI.setupDevice(device1, 320, 240, VI_COMPOSITE); //or setup device with video size and connection type
291 //VI.setFormat(device1, VI_NTSC_M); //if your card doesn't remember what format it should be
301 int width = VI.getWidth(device1);
302 int height = VI.getHeight(device1);
303 int size = VI.getSize(device1);
309 if(VI.isFrameNew(device1)){
310 VI.getPixels(device1, yourBuffer1, false, false); //fills pixels as a BGR (for openCV) unsigned char array - no flipping
311 VI.getPixels(device1, yourBuffer2, true, true); //fills pixels as a RGB (for openGL) unsigned char array - flipping!
317 VI.showSettingsWindow(device1);
321 VI.stopDevice(device1);