I am working with some renderscripts, I created a samplescript.rs and I built the project but the .bc file is not being created. I can access the ScriptC_samplescript class, but I can't see the .bc file. What am I doing wrong?
Please help me I have been struggling with this issue for a week! I can't find any solutions on google.
I want to do some realtime image processing, but I can't get the scripts to work.
Here's what my script looks like:
#pragma version(1)
#pragma rs java_package_name(com.example.cameratesting)
float intensityValue;
rs_matrix4x4 colorMatrix;
void root(const uchar4 *v_in, uchar4 *v_out,const void *userData, uint32_t x, uint32_t y) {
float4 pixel = rsUnpackColor8888(*v_in);
float4 color = rsMatrixMultiply(&colorMatrix,pixel);
color = (intensityValue * color) + ((1.0f - intensityValue) * pixel);
color = clamp(color,0.0f,1.0f);
*v_out = rsPackColorTo8888(color);
}
void filter(rs_script script,rs_allocation inAllocation,rs_allocation outAllocation){
rsForEach(script, inAllocation, outAllocation, 0, 0);
}