addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupsimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1outlookpersonJoin Group on CardStartprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [londroid] Android NDK & Image processing

From: Paul de la W.
Sent on: Monday, March 19, 2012 6:24 PM
Hi Neil,

The NDK is one way of doing it. Qualcomm has an library ( ). I haven't used it extensively, but there must be something to change the colour space, do some changes, and then change it back.

Another way would be to use OpenGL ( is my favourite here, pure java also) specifically OpenGL 2.0 to use shaders, this would only be applicable if your interested in rendering as there isn't a fast way to read data back from the GPU to the CPU.

I hope those give you a couple of options, if you need any more help I feel free to message me back directly, good luck buddy!


On Mon, Mar 19, 2012 at 6:16 PM, Neil Glenister <[address removed]> wrote:
Hi all,

I've been pulling my hair out over some problems with an image processing app and wondered if any of you would be able to help/give advice...

The app essentially takes the live camera feed and applies a simple filter to it (e.g. yellow tint). The problem is that it runs far too slow. The app MUST run without any lag at all for it to be usable.

I've been told that the only viable option is to use the NDK (based on info from tight lipped companies who have achieved this) which I have tried and so far I haven't managed to get it to work. What I'm currently trying to do is push the two intensive parts through the NDK:

1/ Converting the camera image format from YUV to RGB
2/ Applying the filters

The filters and YUV>RGB is readily available in Java so it's "simply" a case of porting it to the NDK. I've tried but it doesn't work and I can't get a hold of the developer.

I guess my questions are:

a) Has anyone ever used the NDK with image processing?
b) Is there another way that's been tested and proven?

Thanks a lot in advance for any feedback!


Neil Glenister
Technical Creative & MD
        Studios Ltd
Viral Media | Games | Apps | Interactive

118 Cavendish Road, London, SW12 0DE
M:[masked] | T:[masked]
Follow us: @232studios


Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Neil Glenister ([address removed]) from The London Android Group - Londroid.
To learn more about Neil Glenister, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Novoda

    Organising speakers, dates, attendees and advocating attendance.

  • SkillsMatter

    Offers use of their meeting areas and recording facilities

  • Microsoft

    Sponsoring the food, drinks & ping pong at the event on the 26th April

  • Google

    Offering Pizza & Beer to attendees at key events.

  • Badoo

    Sponsoring the food and drinks at the event on the 18th October

  • Monzo


People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy