Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f8a3dfa authored by Jason Sams's avatar Jason Sams Committed by Android (Google) Code Review
Browse files

Merge "Add comment block matching the type defines added by RS."

parents d2affae1 94153318
Loading
Loading
Loading
Loading
+26 −2
Original line number Diff line number Diff line
/*
// block of defines matching what RS will insert at runtime.
struct Params_s{
    int inHeight;
    int inWidth;
    int outHeight;
    int outWidth;
    float threshold;
};
struct Params_s * Params;
struct InPixel_s{
    char a;
    char b;
    char g;
    char r;
};
struct InPixel_s * InPixel;
struct OutPixel_s{
    char a;
    char b;
    char g;
    char r;
};
struct OutPixel_s * OutPixel;
*/

struct color_s {
    char b;
    char g;
@@ -15,8 +41,6 @@ void main() {
    int i;
    float threshold = (Params->threshold * 255.f);

    //testFnc(count, threshold, in, out);

    for (i = 0; i < count; i++) {
        float luminance = 0.2125f * in->r +
                          0.7154f * in->g +