Pulnix TMC-7DSP Manual de usuario Pagina 25

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 32
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 24
24
if(!memcpy(start_of_pr, hpAcquireBuf,
bytes_to_copy))
{
GlobalUnlock(hpAcquireBuf);
GlobalFree(hAcquireBuf);
OlFgDestroyFrame( CurDevInfo.DevId,
FrameId);
(void)
OlImgCloseDevice(CurDevInfo.DevId);
mexErrMsgTxt("Cannot copy.\n");
}
GlobalUnlock(hpAcquireBuf);
GlobalFree(hAcquireBuf);
OlFgDestroyFrame( CurDevInfo.DevId, FrameId);
}
}
//free allocated memory
BOOL freeMemory()
{
GlobalUnlock(hpAcquireBuf);
GlobalFree(hAcquireBuf);
OlFgDestroyFrame( CurDevInfo.DevId, FrameId);
(void) OlImgCloseDevice(CurDevInfo.DevId);
mexPrintf("Camera closed.\n");
}
BOOL SelectDevice(int index)
{
int iCount = 0;
OLT_APISTATUS Status = OLC_STS_NORMAL;
HGLOBAL hDevInfoList = NULL;
LPOLT_IMGDEVINFO lpDevInfoList = NULL;
int i = 0;
/* How many aliases do we have */
if ( (Status = OlImgGetDeviceCount(&iCount)) != OLC_STS_NORMAL )
{
FILE *file_out;
file_out = fopen ("ERROR4.txt", "w");
fprintf(file_out, "OlImgGetDeviceCount failed (status =
%#08lx).", Status);
return FALSE;
}
/* Anything? */
if ( !iCount )
return TRUE;
Vista de pagina 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 31 32

Comentarios a estos manuales

Sin comentarios