Skip to content

Commit 746f857

Browse files
author
Comma Device
committed
working on device
1 parent 6578c19 commit 746f857

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cereal

selfdrive/loggerd/SConscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Import('env', 'arch', 'cereal', 'messaging', 'common', 'visionipc')
33
libs = [common, cereal, messaging, visionipc,
44
'zmq', 'capnp', 'kj', 'z',
55
'avformat', 'avcodec', 'swscale', 'avutil',
6-
'yuv', 'OpenCL', 'pthread']
6+
'yuv', 'OpenCL', 'EGL', 'pthread']
77

88
src = ['logger.cc', 'video_writer.cc', 'encoder/encoder.cc']
99
if arch == "larch64":

selfdrive/modeld/SConscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Import('env', 'arch', 'cereal', 'messaging', 'common', 'gpucommon', 'visionipc')
44
lenv = env.Clone()
55

66
libs = [cereal, messaging, common, visionipc, gpucommon,
7-
'OpenCL', 'SNPE', 'capnp', 'zmq', 'kj', 'yuv']
7+
'OpenCL', 'EGL', 'SNPE', 'capnp', 'zmq', 'kj', 'yuv']
88

99
def get_dlsym_offset():
1010
"""Returns the offset between dlopen and dlsym in libdl.so"""

selfdrive/ui/SConscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Import('qt_env', 'arch', 'common', 'messaging', 'gpucommon', 'visionipc',
33
'cereal', 'transformations')
44

55
base_libs = [gpucommon, common, messaging, cereal, visionipc, transformations, 'zmq',
6-
'capnp', 'kj', 'm', 'OpenCL', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"]
6+
'capnp', 'kj', 'm', 'OpenCL', 'EGL', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"]
77

88
maps = arch in ['larch64', 'x86_64']
99

selfdrive/ui/qt/widgets/cameraview.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const char frame_fragment_shader[] =
4646
"void main() {\n"
4747
" float y = texture(uTexture, vTexCoord).r;\n"
4848
" float u = texture(uTexture, vTexCoord).g - 0.5;\n"
49-
" float v = texture(uTexture, vTexCoord).g - 0.5;\n"
49+
" float v = texture(uTexture, vTexCoord).b - 0.5;\n"
5050
" float r = y + 1.402 * v;\n"
5151
" float g = y - 0.344 * u - 0.714 * v;\n"
5252
" float b = y + 1.772 * u;\n"
@@ -237,7 +237,7 @@ void CameraViewWidget::paintGL() {
237237

238238
glActiveTexture(GL_TEXTURE0);
239239
glBindTexture(GL_TEXTURE_2D, textures[0]);
240-
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, latest_frame->egl_image);
240+
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, frame->egl_image);
241241
assert(glGetError() == GL_NO_ERROR);
242242

243243
glUniformMatrix4fv(program->uniformLocation("uTransform"), 1, GL_TRUE, frame_mat.v);

0 commit comments

Comments
 (0)