Android Question Bitmap Brightness

Panagitois Lazos

Member
Licensed User
Longtime User
I did Try but without success . I believe that the problem is that that the rs file is not in the same directory as the java file during the compilation so the rs is not reflected
to ScriptC it is described in
http://developer.android.com/guide/topics/renderscript/compute.html#writing-an-rs-kernel
A RenderScript kernel typically resides in a .rs file in the <project_root>/src/ directory
So is there any way to do that ?

P.S.
All the information needed are here
http://developer.android.com/guide/topics/renderscript/compute.html
 
Upvote 0

Panagitois Lazos

Member
Licensed User
Longtime User
The scripts work this way:
  • ScriptC: These are the user-defined scripts as described in Writing a RenderScript Kernel above. Every script has a Java class reflected by the RenderScript compiler in order to make it easy to access the script from Java code; this class will have the name ScriptC_filename. For example, if the kernel above was located in invert.rs and a RenderScript context was already located in mRS, the Java code to instantiate the script would be:
    ScriptC_invert invert =newScriptC_invert(mRenderScript);

So im not sure in witch way they are compiled .
 
Upvote 0
Top