mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 17:43:54 +08:00
remove unused visionimg
This commit is contained in:
@@ -19,7 +19,6 @@ _common = fxn('common', common_libs, LIBS="json11")
|
||||
|
||||
files = [
|
||||
'clutil.cc',
|
||||
'visionimg.cc',
|
||||
]
|
||||
|
||||
_gpucommon = fxn('gpucommon', files)
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#include "common/visionimg.h"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
EGLImageTexture::EGLImageTexture(const VisionBuf *buf) {
|
||||
glGenTextures(1, &frame_tex);
|
||||
glBindTexture(GL_TEXTURE_2D, frame_tex);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, buf->width, buf->height, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr);
|
||||
glGenerateMipmap(GL_TEXTURE_2D);
|
||||
}
|
||||
|
||||
EGLImageTexture::~EGLImageTexture() {
|
||||
glDeleteTextures(1, &frame_tex);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "cereal/visionipc/visionbuf.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenGL/gl3.h>
|
||||
#else
|
||||
#include <GLES3/gl3.h>
|
||||
#endif
|
||||
|
||||
class EGLImageTexture {
|
||||
public:
|
||||
EGLImageTexture(const VisionBuf *buf);
|
||||
~EGLImageTexture();
|
||||
GLuint frame_tex = 0;
|
||||
};
|
||||
@@ -146,15 +146,11 @@ common/modeldata.h
|
||||
common/mat.h
|
||||
common/timing.h
|
||||
|
||||
common/visionimg.cc
|
||||
common/visionimg.h
|
||||
|
||||
common/gpio.cc
|
||||
common/gpio.h
|
||||
common/i2c.cc
|
||||
common/i2c.h
|
||||
|
||||
|
||||
selfdrive/controls/__init__.py
|
||||
selfdrive/controls/controlsd.py
|
||||
selfdrive/controls/plannerd.py
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "common/mat.h"
|
||||
#include "common/queue.h"
|
||||
#include "common/swaglog.h"
|
||||
#include "common/visionimg.h"
|
||||
#include "selfdrive/hardware/hw.h"
|
||||
|
||||
#define CAMERA_ID_IMX298 0
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import os
|
||||
Import('qt_env', 'arch', 'common', 'messaging', 'gpucommon', 'visionipc',
|
||||
Import('qt_env', 'arch', 'common', 'messaging', 'visionipc',
|
||||
'cereal', 'transformations')
|
||||
|
||||
base_libs = [gpucommon, common, messaging, cereal, visionipc, transformations, 'zmq',
|
||||
base_libs = [common, messaging, cereal, visionipc, transformations, 'zmq',
|
||||
'capnp', 'kj', 'm', 'OpenCL', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"]
|
||||
|
||||
maps = arch in ['larch64', 'x86_64']
|
||||
|
||||
Reference in New Issue
Block a user