1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma rs java_package_name(com.android.rs.image) #define MAX_RADIUS 25 typedef struct { rs_allocation ain; float *gaussian; //[MAX_RADIUS * 2 + 1]; rs_matrix3x3 colorMat; int height; int width; int radius; } FilterStruct;