You'd need to compile the code into your app and call it with JNI.

On Sat, Aug 22, 2009 at 11:48 PM, RaulHK <[email protected]> wrote:

>
> Hello,
>
> I would appreciate to hear from you what would be the available
> options in Android to perform a lossless jpeg rotation of a jpeg image
> -> Rearranging the image data  from landscape to portrait by rotation
> without ever fully decoding the image.
>
> My problem is that my device's camera always take the images in
> landscape mode and sometimes I would need to rotate the image to
> portrait to be used in my application. This takes time and memory if I
> need to do it in the standard way (decode the image, apply rotation
> operation to the pixels and encode again). Doing it without decoding
> the image would bring a significant improvement in performance.
>
> I have seen that in Android platform (Cupcake) jpegtran.c (which
> performs this operation beautifully) is available under /external/jpeg
> but this functionality is not available (a.f.a.k) on the application
> framework. How can I use this function? I guess I need to use JNI to
> be able to access this functionality, right? Other ways?
>
> Could you give me any hint on how I could do this or if there is
> another easier and quicker way to do it?
>
> Thank you in advance for any reply.
>
> R.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to