jni - Android: Passing Java surface to native -
i working on hardware decoder displays decoded frames on native window using libstagefright.so. when tried create jni interface native functions passing surface(from surfaceview) using "javac" command, next error
\custom_decoder.java:3: error: bundle android.view not exist import android.view.surface; error: cannot find symbol symbol: class surface
what should avoid error?
update :
as per suggestion of alex barker tried next same result
d:\android_workspace\2014\6june\ofi_vc_omx_codec_test\src>javac -cp d:\android_datas\android-sdk_r20.0.3-windows\android-sdk-windows ofi\ofi_vc_omx_codec_test\custom_decoder.java :3: error: bundle android.view not exist import android.view.surface; ^ ofi\ofi_vc_omx_codec_test\custom_decoder.java:15 : error: cannot find symbol private native int set_display_surface(surface disp_surface); ^ symbol: class surface location: class custom_decoder
based on info provided, have simple classpath issue. add together -cp flag javac command , pass sdk location.
android jni surfaceview
No comments:
Post a Comment