diff --git a/common/app/app.c b/common/app/app.c index f2eba65..243938f 100644 --- a/common/app/app.c +++ b/common/app/app.c @@ -3,7 +3,7 @@ #include "system.h" #include "pixy.h" #include - +#include bool pixy_connected = false; @@ -113,10 +113,10 @@ int pixy_frame_test() { &videodata, // pointer to mem address for returned frame END_IN_ARGS); - if(return_value==0) { return_value = renderBA81(renderflags,xwidth,ywidth,size,videodata); } + return return_value; } @@ -171,24 +171,41 @@ int renderBA81(uint8_t renderFlags, uint16_t width, uint16_t height, uint32_t fr // don't render top and bottom rows, and left and rightmost columns because of color // interpolation //uint32_t decodedimage[(width-2)*(height-2)]; - uint16_t decodedimage[(width-2)*(height-2)]; - - uint16_t* line = decodedimage; - for (y=1; y