Skip to content

Commit

Permalink
Merge pull request #46 from theantihero/revert-45-visiond_pc_ver
Browse files Browse the repository at this point in the history
Revert "Visiond pc ver"
  • Loading branch information
theantihero authored Mar 3, 2019
2 parents 71134cc + ce3bf98 commit b96ebef
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 861 deletions.
Binary file added phonelibs/json11/json11.o
Binary file not shown.
38 changes: 18 additions & 20 deletions selfdrive/visiond/build_from_src.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,34 @@ ifeq ($(UNAME_S),Darwin)
$(PHONELIBS)/zmq/mac/lib/libzmq.a

OPENCL_LIBS = -framework OpenCL

PLATFORM_OBJS = camera_fake.o \
../common/visionbuf_cl.o
else
# assuem x86_64 linux
LIBYUV_FLAGS = -I$(PHONELIBS)/libyuv/x64/include
LIBYUV_LIBS = $(PHONELIBS)/libyuv/x64/lib/libyuv.a

ZMQ_FLAGS = -I$(PHONELIBS)/zmq/aarch64/include
ZMQ_LIBS = -l:libczmq.a -l:libzmq.a -luuid
ZMQ_FLAGS = -I$(EXTERNAL)/zmq/include
ZMQ_LIBS = -L$(EXTERNAL)/zmq/lib \
-l:libczmq.a -l:libzmq.a

OPENCL_LIBS = -lOpenCL

SNPE_FLAGS = -I$(SNPE_ROOT)/include/zdl
SNPE_LIBS = -L$(SNPE_ROOT)/lib/x86_64-linux-clang/ \
-lSNPE -lsymphony-cpu

CXXFLAGS += -I../common

PLATFORM_OBJS = camera_eon_stream.o
endif

CURL_FLAGS = -I/usr/include/curl
CURL_LIBS = -lcurl -lz

SSL_FLAGS = -I/usr/include/openssl/
SSL_LIBS = -lssl -lcrypto

OTHER_LIBS = -lz -lm -lpthread -lavcodec -lavutil
OPENCV_FLAGS =
OPENCV_LIBS = -lopencv_video \
-lopencv_imgproc \
-lopencv_core
OTHER_LIBS = -lz -lm -lpthread

PLATFORM_OBJS = camera_fake.o \
../common/visionbuf_cl.o

CFLAGS += -D_GNU_SOURCE \
-DCLU_NO_CACHE
OBJS = visiond_pc.o
else
# assume phone

Expand Down Expand Up @@ -103,15 +102,13 @@ else
OTHER_LIBS = -lz -lcutils -lm -llog -lui -ladreno_utils

PLATFORM_OBJS = camera_qcom.o \
../common/visionbuf_ion.o \
../common/visionimg.o

../common/visionbuf_ion.o

CFLAGS += -DQCOM
CXXFLAGS += -DQCOM
OBJS = visiond.o
endif

OBJS = visiond.o
OUTPUT = visiond

.PHONY: all
Expand All @@ -123,6 +120,7 @@ OBJS += $(PLATFORM_OBJS) \
../common/swaglog.o \
../common/ipc.o \
../common/visionipc.o \
../common/visionimg.o \
../common/util.o \
../common/params.o \
../common/efd.o \
Expand Down
228 changes: 0 additions & 228 deletions selfdrive/visiond/camera_eon_stream.cc

This file was deleted.

60 changes: 0 additions & 60 deletions selfdrive/visiond/camera_eon_stream.h

This file was deleted.

5 changes: 0 additions & 5 deletions selfdrive/visiond/model.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
#include "common/timing.h"
#include "model.h"

Expand Down Expand Up @@ -96,6 +92,5 @@ ModelData model_eval_frame(ModelState* s, cl_command_queue q,
void model_free(ModelState* s) {
model_input_free(&s->in);
delete s->m;
free(s->output);
}

1 change: 0 additions & 1 deletion selfdrive/visiond/monitoring.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <string.h>
#include "monitoring.h"
#include "common/mat.h"

Expand Down
Loading

0 comments on commit b96ebef

Please sign in to comment.