Alacron FAST-UXGA Technical Product Manual Download Page 18

18 of 28 

the control, this method can not be used across processes. The Update API is canned by the 
Create API and is typically not used by a user. The Create API builds an image surface in 
memory that matches the input image and then passes it to the Update method. 

 

id(10) Move(long X, long Y); 

This method moves the display window around on the image surface. The X and Y parameters 
are in display window space, X being the display pixel (column) and Y being the display line 
(row) of the image. The display window will move so X,Y is in the center of the display area. 

id(11) ClientToImage(long X, long Y, long* iX, long* iY); 

The method will take a point on the display surface of the image, and return its image 
coordinates.  

id(12) ImageToClient(long X, long Y, long* cX, long* cY); 

This method will take a point on the image and return its coordinates on the display surface. 
Note the returned values are not clipped, and could be out side the display area of the OCX. 

id(13) UpdateROI(long* Image, long X, long Y, long sX, long sY,short Shift); 

This method allows you to update a portion of an image. As big images can take a long time to 
be processed into the control. This API allows a smaller are of an image to be updated. It can 
be used to combine images on the same display surface. It uses the copy raster op to update 
the image surface, the pixels of the ROI that are on the display surface are replaced with those 
in the input image. 

id(15) ClearROI(long X, long Y, long sX, long sY, long value); 

This method updates an ROI to black, or all zero. 

id(16) MoveI(long x, long y); 

This method moves the display window so that the point (x,y) in the image is in the center of 
the display window. X and y are in image coordinates. 

id(17) SwapColors (long a, long b); 

This method allows the user to swap the display planes of the image. The parameters are the 
plane indexes (0=R,1=G,2=B etc.) to swap.  It supports three cases (which are all there are): 

Swap 0 with 1 

Swap 0 with 2 

Swap 1 with 2 

id(DISPID_ABOUTBOX) void AboutBox(); 

This method will display the about box. 

T

HE 

I

MAGE 

S

TRUCTURE

 

The (long *) used in the methods above point to a structure called an image structure which is 
used in Alacron’s OIL library and most other places in the Alacron software. It has the following 
definition: 

 

typedef

 

struct

 image_struct { 

 

int

 nr; 

 

int

 nc; 

 

int

 st;

 

 itype_t 

itype;

 

 

int

 bpp;

 

 

void

 *data;

 

 

void

 (*pfree) (

struct

 image_struct *pi); 

 

void

 *extension;

 

Summary of Contents for FAST-UXGA

Page 1: ...FAST UXGA PCI EXPRESS TECHNICAL PRODUCT DESCRIPTION 30002 00192...

Page 2: ...2 of 28...

Page 3: ...to this manual at any time without notice Document Name Fast X Technical Product Description Document Number 30002 00192 Revision History 1 0 October 25 2006 2 0 February 26 2007 2 1 May 10 2007 Trad...

Page 4: ...4 of 28...

Page 5: ...ts 20 Using the control 20 ALACRON S STRETCH NEXPERIA OCX 21 Interfaces 21 IStretchBoard 21 Properties 23 BOOL Valid 23 BOOL ReadyState 23 Int PID id 1 23 Int rval id 2 23 BOOL ResetOnRelease id 3 23...

Page 6: ...6 of 28 CONTACTING TECHNICAL SUPPORT 25 RETURNING PRODUCTS FOR REPAIR OR REPLACEMENT 27 REPORTING BUGS 27...

Page 7: ...w if they did not come in your FastSeries shipment 30002 00148 ALFAST Runtime Software Programmer s Guide Reference 30002 00150 FastSeries Library User s Manual 30002 00169 ALRT Runtime Software Progr...

Page 8: ...bandwidth monochrome video to a host PC Figure 1 Fast UXGA PCI X Board The Fast X UXGA option attaches to a Fast Xe PCI Express card It provides the interface to the high bandwidth analog video sourc...

Page 9: ...ard Mezzanine expansion card with 152 pin VHDCI connector Plugging in a Video I O Extender daughter card replaces standard video connections with a variety of analog and digital video formats Performa...

Page 10: ...of analog video with the green channel carrying a composite sync Single channel of monochrome analog composite video The video inputs are terminated to ground with 75 ohms and capacitive coupled into...

Page 11: ...X Fast Xe board I2 C INTERFACE The I2 C interface exposes 32 registers to control the operation of the AD9888Bs Each AD9888Bs has a separate slave address Channel 1 Mux 0 and 1 are addressed at 0x98 w...

Page 12: ...ng their glue circuits the data sheet for the AD9888 provides the software model via the definition and use of the internal registers of the AD9888 The data passed back to the front end FPGA of the Fa...

Page 13: ...rage Note this limits the average video pixel rate to 200 mega pixels per second for each video interface Video packets are generated as 32 byte data payload with four bytes of address The packets are...

Page 14: ...need to reprogram the interface while it is operating except to switch the input multiplexers in the AD9888s Please see the Fast Motion Library manual for the details of the data flow as well as the A...

Page 15: ...d to describe it This OCX uses the MFC class library to leverage the predefined classes in MFC It can not claim to be a light weight control but rather a multipurpose control ALPICTURE TYPE LIBRARY ID...

Page 16: ...ods id DISPID_READYSTATECHANGE void ReadyStateChange id DISPID_MOUSEMOVE void MouseMove short Button short Shift OLE_XPOS_PIXELS x OLE_YPOS_PIXELS y id DISPID_MOUSEUP void MouseUp short Button short S...

Page 17: ...non RGB formats for example YUV 4 4 4 this refers to the U part of the image All images are converted from their native format to RGB when input to the control Typically no color space conversion is...

Page 18: ...ges can take a long time to be processed into the control This API allows a smaller are of an image to be updated It can be used to combine images on the same display surface It uses the copy raster o...

Page 19: ...ly this is local memory ncomp reflects the number of additional image structures linked on the next field For planer images each plane is a separate image linked in a list on the next field id is an a...

Page 20: ...short Button short Shift OLE_XPOS_PIXELS x OLE_YPOS_PIXELS y This event is triggered if the mouse is double clicked within the OCX display window USING THE CONTROL Be sure you have the file alpicture...

Page 21: ...antiated into a host program in a standard control site in an application The StretchBoard OCX is implemented with Microsoft ATL One possible drawback of the OCX is it does not use standard events to...

Page 22: ...ProbeVersion out retval CHAR pVer propget id 7 helpstring property MMIO HRESULT MMIO in ULONG reg out retval ULONG pVal propput id 7 helpstring property MMIO HRESULT MMIO in ULONG reg in ULONG newVal...

Page 23: ...is only valid in the current process CHAR PCIPROBEVERSION ID 6 This attribute is obsolete and returns not implemented ULONG MMIO REG ID 7 This attribute is not implemented in the control and returns n...

Page 24: ...in LONG type in LONG Length in BYTE Msg The type parameter is dual purpose The upper 8 bits of the value is the processor number aka pid The remaining 24 bits indicate the reason for the call A type...

Page 25: ...isolate the problem Turning off any operations not directly related may help isolate the problem _____ Finally first save your original work Then remove any extraneous code that doesn t directly cont...

Page 26: ...version of the host operating system i e Windows XP _____ Note the types and numbers of all your software revisions daughter card libraries the application library and the compiler _____ The piece of...

Page 27: ...information ready _____ Serial numbers and descriptions of product s being shipped back _____ A listing including revision numbers for all software libraries applications daughter cards etc _____ A c...

Page 28: ...run the module to track down the anomaly you ve found If you do not have Internet access or if it is inconvenient for you to get to access copy the code to a disk describe the error and mail the disk...

Reviews: