C

Qt Quick Ultralite 图像解码示例

/****************************************************************************** ** ** Copyright (C) 2023 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite module. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/
#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