basic provision for feeding external pictures to the cameras

This commit is contained in:
Arisotura
2022-04-17 14:53:57 +02:00
parent 34f0c2e6ed
commit 1b7bdd82ac
5 changed files with 49 additions and 1 deletions

View File

@ -421,6 +421,9 @@ void EmuThread::run()
char melontitle[100];
QImage testimg("test.jpg");
QImage testimg_conv = testimg.convertToFormat(QImage::Format_RGB32);
while (EmuRunning != 0)
{
Input::Process();
@ -501,6 +504,9 @@ void EmuThread::run()
OSD::AddMessage(0, lid ? "Lid closed" : "Lid opened");
}
// camera input test
NDS::CamInputFrame(0, (u32*)testimg_conv.bits(), testimg_conv.width(), testimg_conv.height());
// microphone input
micProcess();
@ -1807,7 +1813,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
if (event->isAutoRepeat()) return;
// TODO!! REMOVE ME IN RELEASE BUILDS!!
//if (event->key() == Qt::Key_F11) NDS::debug(0);
if (event->key() == Qt::Key_F11) NDS::debug(0);
Input::KeyPress(event);
}