UI: Screen Recorder (#22)

* UI: screen recorder ;)

* oops

* try out new look

* dep

* Try this

* bruh

* Hmm

* and this

* or this?

* how's this?

* this is fine

* move it move it

* finalize

* small

* bigger

* smaller

* pinpoint this

* Missed this

* and this

* gone?

* press down state

* no sound for now
This commit is contained in:
Jason Wen
2023-02-07 03:34:59 -05:00
committed by GitHub
parent a93c936e4b
commit 9b5b61551c
23 changed files with 10449 additions and 1 deletions
+9
View File
@@ -10,6 +10,7 @@ if arch == 'larch64':
base_libs.append('EGL')
maps = arch in ['larch64', 'x86_64']
screenrecorder = arch in ['larch64']
if maps and arch == 'x86_64':
rpath = [Dir(f"#third_party/mapbox-gl-native-qt/{arch}").srcnode().abspath]
@@ -62,6 +63,14 @@ qt_src = ["main.cc", "qt/sidebar.cc", "qt/onroad.cc", "qt/body.cc",
"qt/window.cc", "qt/home.cc", "qt/offroad/settings.cc",
"qt/offroad/software_settings.cc", "qt/offroad/onboarding.cc",
"qt/offroad/driverview.cc", "qt/offroad/experimental_mode.cc"]
# include dashcam / screenrecorder
if screenrecorder:
qt_src += ["qt/screenrecorder/screenrecorder.cc", "qt/screenrecorder/omx_encoder.cc"]
qt_env['CPPPATH'] += ["qt/screenrecorder/openmax/include/"]
qt_libs += ['OmxCore', 'gsl', 'CB', 'avformat', 'avcodec', 'swscale', 'avutil', 'yuv', 'pthread']
qt_env['CPPDEFINES'] += ["ENABLE_DASHCAM"]
qt_env.Program("_ui", qt_src + [asset_obj], LIBS=qt_libs)
if GetOption('test'):
qt_src.remove("main.cc") # replaced by test_runner