C
Qt Quick Ultralite imagedecoder Example
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
#pragma once
#include "stm32_mcu_specific.h"
/* RGB Color format definition for JPEG encoding/Decoding : Should not be modified*/
#define JPEG_ARGB8888 0 /* ARGB8888 Color Format */
#define JPEG_RGB888 1 /* RGB888 Color Format */
#define JPEG_RGB565 2 /* RGB565 Color Format */
#if QUL_COLOR_DEPTH == 8
#define JPEG_RGB_FORMAT JPEG_RBG565 /* Select RGB format: ARGB8888, RGB888, RBG565 */
#define JPEG_SWAP_RB 0 /* Change color order to BGR */
#elif QUL_COLOR_DEPTH == 16
#define JPEG_RGB_FORMAT JPEG_RBG565 /* Select RGB format: ARGB8888, RGB888, RBG565 */
#define JPEG_SWAP_RB 0 /* Change color order to BGR */
#elif QUL_COLOR_DEPTH == 24
#define JPEG_RGB_FORMAT JPEG_RGB888 /* Select RGB format: ARGB8888, RGB888, RBG565 */
#define JPEG_SWAP_RB 0 /* Change color order to BGR */
#else
#define JPEG_RGB_FORMAT JPEG_ARGB8888 /* Select RGB format: ARGB8888, RGB888, RBG565 */
#define JPEG_SWAP_RB 0 /* Change color order to BGR */
#endif