Thanks for the input. My goal is to create a 'ChromaKey' application. 
Basically, removes greencolor from background and replaces it with a custom 
image, in real time and records it. Relatively simple to do on iOS.

On Monday, October 29, 2012 3:02:45 PM UTC-4, Harri Smått wrote:
>
> Hi, 
>
> I'm not exactly sure if I understood your goal correctly but take a look 
> on; 
>
> http://developer.android.com/reference/android/graphics/SurfaceTexture.html 
>
> http://developer.android.com/reference/android/hardware/Camera.html#setPreviewTexture(android.graphics.SurfaceTexture)
>  
>
> They provide you means to use preview view directly as a texture at least. 
>
> -- 
> H 
>
> On Oct 29, 2012, at 8:39 PM, James Hess <jhes...@gmail.com <javascript:>> 
> wrote: 
>
> > Hi, 
> > I looked around yesterday for an answer to this but couldn't find a 
> proper way to do this. All of the answer were 'hacks' sort of, results in 
> huge loss in fps doing this. 
> > I am wondering if there's an 'official' way to get camera buffer to GPU? 
> What I mean by that is: 
> > 
> > a) Avoid converting from YUB to RGB (takes a lot of CPU cycles, drops 
> fps) 
> > b) Not copying the buffers (sort of like in iOS, where you can bind the 
> texture, and avoid expensive memcpy) 
> > c) Save the buffers to a video file 
> > 
> > It doesn't matter if I need to use the latest device and/or Android OS. 
> Just want to know the proper way of doing this or if it's still yet not 
> possible. 
> > 
> > Thanks! 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to