mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-29 23:43:47 +08:00
Disable Screen Recorder
This commit is contained in:
@@ -57,6 +57,8 @@ sunnypilot - 0.9.7.0 (2024-05-xx)
|
||||
* NEW❗: Metrics is now being displayed below the chevron instead of above
|
||||
* NEW❗: Display both Distance and Speed simultaneously
|
||||
* NEW❗: View sunnylink connectivity status on the left sidebar!
|
||||
* REMOVED: Screen Recorder
|
||||
* A better/equivalent version of Screen Recorder will be supported in the near future. Stay tuned!
|
||||
|
||||
sunnypilot - 0.9.6.1 (2024-02-27)
|
||||
========================
|
||||
|
||||
@@ -10,7 +10,7 @@ if arch == 'larch64':
|
||||
base_libs.append('EGL')
|
||||
|
||||
maps = arch in ['larch64', 'aarch64', 'x86_64']
|
||||
screenrecorder = arch in ['larch64']
|
||||
screenrecorder = False # arch in ['larch64']
|
||||
|
||||
if arch == "Darwin":
|
||||
del base_libs[base_libs.index('OpenCL')]
|
||||
|
||||
@@ -13,12 +13,14 @@ DisplayPanel::DisplayPanel(QWidget *parent) : ListWidget(parent, false) {
|
||||
.arg(tr("Enabled: Wake the brightness of the screen to display all events."))
|
||||
.arg(tr("Disabled: Wake the brightness of the screen to display critical events.")),
|
||||
"../assets/offroad/icon_blank.png",
|
||||
#ifdef ENABLE_DASHCAM
|
||||
},
|
||||
{
|
||||
"ScreenRecorder",
|
||||
tr("Enable Screen Recorder"),
|
||||
tr("Enable this will display a button on the onroad screen to toggle on or off real-time screen recording with UI elements."),
|
||||
"../assets/offroad/icon_blank.png"
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
#include <OMX_Component.h>
|
||||
#include <OMX_IndexExt.h>
|
||||
#include <OMX_QCOMExtns.h>
|
||||
@@ -18,6 +20,7 @@
|
||||
#include "msm_media_info.h"
|
||||
#include "common/swaglog.h"
|
||||
#include "common/util.h"
|
||||
#include "common/watchdog.h"
|
||||
|
||||
|
||||
using namespace libyuv;
|
||||
@@ -327,8 +330,19 @@ OmxEncoder::OmxEncoder(const char* path, int width, int height, int fps, int bit
|
||||
int err = OMX_GetHandle(&this->handle, component, this, &omx_callbacks);
|
||||
if (err != OMX_ErrorNone) {
|
||||
LOGE("error getting codec: %x", err);
|
||||
// TODO: We force quit Qt UI, and trigger fast restart for now
|
||||
qApp->exit(18);
|
||||
watchdog_kick(0);
|
||||
}
|
||||
assert(err == OMX_ErrorNone);
|
||||
// TODO: Investigate the insufficient memory issue in prebuilts, we force quit Qt UI, and trigger fast restart for now
|
||||
/*
|
||||
if (err == OMX_ErrorInsufficientResources) {
|
||||
qApp->exit(18);
|
||||
watchdog_kick(0);
|
||||
} else {
|
||||
assert(err == OMX_ErrorNone);
|
||||
}
|
||||
*/
|
||||
// printf("handle: %p\n", this->handle);
|
||||
|
||||
// setup input port
|
||||
|
||||
Reference in New Issue
Block a user