MityDSP Documentation Index
tcDspCameraLink

Introduction

The tcDspCameraLink class is used to provide a MityDSP interface to camera imaging hardware utilizing the LVDS Camera Link protocol.

Typically, a specific camera handler class (e.g., a hamamatsu camera) is derived fromthe tcDspCameraLink in order to provide any custom configuration protocol using the Camera Link asynchronous serial interface for setting up the camera framerate, size, etc.

See also:
MityDSP::tcDspCameraLink Class Reference

Example

This is a simple example of tcDspCameraLink interfacing to a QVGA monochrome camera:

{
tcDspCameraLink <em>mpCameraLink;
short</em> mpBuffer[240*320];
MBX_Handle mhLinkMbox = MBX_create(sizeof(tcDspCameraLink::tsFrameDataNotify),10,NULL);
tcDspCameraLink::tsFrameDataNotify lsFrameData;
// create tcDspTouchScreen instance
mpCameraLink = new tcCameraLink((void *)0xB0000280);
mpCameraLink->SetImageSize(240,320);
mpCameraLink->SetPack(true);
// Ask for a frame of data
printf("Capturing 1 frame of data\n");
mpCameraLink->CaptureFrames(mpBuffer,
240*320*sizeof(short),
mhLinkMbox,
1,
1);
int RV = MBX_pend(mhLinkMbox,&lsFrameData,SYS_FOREVER);
if (RV)
{
short* lpFrameData = lsFrameData.mpStart; // should be the same as mpBuffer in this example
// process the frame data....
}
}

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.