JPEG HW decoder API

Can you please comment on following:

Is there any procedure/API provided in Android SDK/NDK to check if “JPEG HW Decoder” exists in the underlying android phone handset?

If yes, then Is there any procedure/API provided in Android SDK/NDK to access “JPEG HW Decoder” for decompressing JPEG image?

( I guess OpenMAX APIs provides access for the same, but I am not sure)

I plan to use JPEG hardware decoder to decompress jpeg image for achieving peformance. Please comment!

Thanks