Commit 42e65214 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

minor cleanup

parent f54ea81e
......@@ -20,7 +20,6 @@ LD=${COMPILER_DIR}/bin/mipsisa32r2el-axis-linux-gnu-ld
# Tell the compiler where to look for header files used in the auxilliary native methods for the camera classes
#CPPFLAGS+=-I${AXIS_PATH}/include -I${AXIS_PATH}/usr/include
CPPFLAGS+=-I${AXIS_PATH}/usr/include -I${COMPILER_DIR}/mipsisa32r2el-axis-linux-gnu/sys-include
CPPFLAGS+=-DINT_TYPE_SIZEOF_POINTER=int
CPPFLAGS+=-DFORMAT_FOR_SIZE_T=\"%u\"
AXIS_LIBCAP=-lcapture # This is needed for the native camera classes to fetch images
AXIS_LIBCAP_DEP=-ldbus-1 -lgobject-2.0 -ldbus-glib-1 -lgthread-2.0 -lglib-2.0 -lrapp -lpthread # Dependencies of libcapture
......
#include "camera.h"
#include <stdio.h>
#include <string.h> // for memcpy
#include <stdlib.h> // for abs
camera* camera_open(){
camera *cam = malloc(sizeof(camera));
......@@ -34,11 +32,7 @@ frame* camera_get_frame(camera* cam){
#endif
#ifdef DEBUG
#ifdef FAKE
printf("camera_get_frame: number=%d\n", cam->frame_nbr);
#else
printf("camera_get_frame: ts=%llu\n", get_frame_timestamp(f));
#endif
#endif
return f;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment