LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read video data directly into an image or pixmap

I am writing an interface (API) for our own video hardware.  I am using a wrapper DLL to interface into a lower-level DLL.  This wrapper DLL is called from LabVIEW using CLFN.  I have the basic stuff working, but now I need to do some *serious* image data I/O.  This not strictly for real-time apps,  but time is critical so minimizing data copies is a high priority.

 

I need to be able to perform the following:

1. Transfer raw video data directly from the card into a LabVIEW Image or Pixmap (I will need a pointer to the image data for my DMA memory transfer).

2. Display the LabVIEW Image or Pixmap.

3. Convert the LabVIEW Image or Pixmap into an AVI file.

4. Transfer data directly from a LabView Image or Pixmap into the card (I will need a pointer to the image data for my DMA memory transfer).

 

Optional but desired:

1. Load a BMP file into a LabVIEW Image or Pixmap. 

2. Save to BMP file from a LabVIEW Image or Pixmap.

 

I've been looking at the LabVIEW image and picture functions, and the answer is not "jumping and biting me in the butt" yet.  I sure could use some direction.  What's the best way to approach this?  I can put some (or most) of the code into my wrapper DLL. 

 

I would greatly appreciate your ideas!

 

I should add the the data from our card is 32-bit unsigned pixels.  I can do transformations in the wrapper DLL, but since time is critical, avoiding that is a priority as well.

 

 

0 Kudos
Message 1 of 3
(2,979 Views)

Well, I'm replying to my own question! Smiley Surprised

 

I solved the problem by reading the data from my card, then using Flatten Pixmap to create a pixmap from my data array, then using Draw Flattened Pixmap to create a picture to send to a 2D Picture.  This works fine.

 

Now, how can I change the Pixmap into Image so I can save to an AVI?

0 Kudos
Message 2 of 3
(2,951 Views)
I guess you dont have VDM. check whether this will help
0 Kudos
Message 3 of 3
(2,940 Views)