C
Qt Quick Ultralite imagedecoder Example
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
#include "board_config.h"
#include "rh850imagedecoder.h"
#include "rh850_jpeg.h"
#include <qul/application.h>
#include "r_jcua_api.h"
void ConfigureBoard()
{
static Rh850ImageDecoder imagedecoder;
r_jcua_Error_t ret = jpegDecode_Init();
if (ret != R_JCUA_ERR_OK) {
Qul::PlatformInterface::log("JPEG decoder initialization failed\r\n");
return;
}
Qul::Application::addImageDecoder(&imagedecoder);
}