iisu Developer Forum

HomeHomeiisu™ 3.xiisu™ 3.xFlash BridgeFlash BridgeRGB Data frame - add to stageRGB Data frame - add to stage
Previous
 
Next
New Post
2/17/2012 4:25 PM
 

Hi,
I can't add the video's result (rbg frame) in my stage. 
I would like to see the camera's video.

Here my function to get the rgb frame:
-----------------------------------------------------------------------------------

m_IisuClient.addEventListener(CIisuEventDeviceDataFrame.DEVICE_DataFrame, onRender)

private function onRender(evt:CIisuEventDeviceDataFrame):void {

var iisuDataFrame:CIisuByteArray = evt.Data;

var frameData:BitmapData = new BitmapData(640, 480);
frameData.setPixels(new Rectangle(0, 0, frameData.width, frameData.height), iisuDataFrame );

var frame:Bitmap = new Bitmap(frameData);
}
------------------------------------------------------------------------------------ 

The byteArray in "CIisuEventDeviceDataFrame" can't being converted to a BitmapData, I need a BitmapData of the DataFrame. I have this error: "End of file was encountered."

thank you


 
New Post
3/13/2012 11:06 AM
 

Please have a look here being this argument discussed :

 

http://www.softkinetic.com/Support/Fo...

 

 

It is  under Unity3D section, but data conversion is the same. :-)

 

 

 

 
Previous
 
Next
HomeHomeiisu™ 3.xiisu™ 3.xFlash BridgeFlash BridgeRGB Data frame - add to stageRGB Data frame - add to stage