impl jni for codec on 4.0