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

Commit a78f0af2 authored by Dan Albert's avatar Dan Albert Committed by Arne Coucheron
Browse files

Add missing includes.

These files all use malloc/free but never include it. It looks like
the NDK headers leak stdlib.h through something that was being
included, but the updated headers don't have that mess.

Test: mma
Change-Id: Ia34a2d74f382f88476708e31da819ea18ab0aa4f
parent 8dfa3a7c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14,8 +14,10 @@
 * limitations under the License.
 */

#include "filters.h"
#include <stdio.h>
#include <stdlib.h>

#include "filters.h"

static __inline__ void flipVertical(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight){
    //Vertical
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */

#include <math.h>
#include <stdlib.h>

#include "filters.h"

void JNIFUNCF(ImageFilterHighlights, nativeApplyFilter, jobject bitmap,
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */

#include <math.h>
#include <stdlib.h>

#include "filters.h"

int value(int r, int g, int b) {
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */

#include <math.h>
#include <stdlib.h>

#include "filters.h"

void JNIFUNCF(ImageFilterShadows, nativeApplyFilter, jobject bitmap, jint width, jint height, float scale){
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@
 * limitations under the License.
 */

#include <stdlib.h>

#include "filters.h"

void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){