inspirit / CaptureDevice

Adobe Air Native Extension for video capturing from cameras
GNU Lesser General Public License v2.1
99 stars 22 forks source link

CaptureDevice + Starling #4

Open napcat opened 11 years ago

napcat commented 11 years ago

Is it possible to combine Starling framework with this native extension?

I'm asking this because you use your own implementation of Stage3D to draw the webcam texture (GPUImage). Is there a simple way to implement this with Starling?

Thank you.

CaptainN commented 11 years ago

CaptureDevice just gives you a stream of ByteArray data that can be fed to a texture. I'm not sure how to wire that into Starling, but it certainly should be possible.

CaptainN commented 11 years ago

Looks like in Starling there is a Texture object, and that object has a uploadFromByteArray method on it:

http://forum.starling-framework.org/topic/upload-from-bytearray

Edit: Er, that may not be implemented yet... I'm not sure how you'd do that in Starling then (I don't use Starling, and just assumed there'd be a way to do it).