title: Decode H.264(AVC) bitstream on Android?
body: <p>I am writting an app which needs to decode H.264(AVC) bitstream. I find there are AVC codec sources exist in /frameworks/base/media/libstagefright/codecs/avc, does anyone know how can one get access to those codecs in an Android app? I guess it's through JNI, but not clear about how this can be done. </p>
  
  <p>After some investigation I think one approach is to create my own classes and JNI interfaces in the Android source to enable using the CODECS in an Android App. 
  Another way which does not require any changes in Android source is to include CODECS as shared library in my application, use NDK. Any thoughts on these? Which way is better(if feasible)? </p>
  
  <p>I didn't find much information about Stagefright, it would be great if anyone can point out some? I am developing on Android 2.3.3.</p>
  
  <p>Any comments are highly appreciated.Thanks!</p>