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$ ** ******************************************************************************/
#include "buffer_config.h" uint8_t MCU_Data_OutBuffer0[CHUNK_SIZE_OUT]; uint8_t MCU_Data_OutBuffer1[CHUNK_SIZE_OUT]; uint8_t MCU_Data_OutBuffer3[CHUNK_SIZE_OUT]; uint8_t MCU_Data_OutBuffer4[CHUNK_SIZE_OUT]; uint8_t JPEG_Data_InBuffer0[CHUNK_SIZE_IN]; uint8_t JPEG_Data_InBuffer1[CHUNK_SIZE_IN]; JPEG_Data_BufferTypeDef Jpeg_OUT_BufferTab[NB_OUTPUT_DATA_BUFFERS] = {{JPEG_BUFFER_EMPTY, MCU_Data_OutBuffer0, 0}, {JPEG_BUFFER_EMPTY, MCU_Data_OutBuffer1, 0}, {JPEG_BUFFER_EMPTY, MCU_Data_OutBuffer3, 0}, {JPEG_BUFFER_EMPTY, MCU_Data_OutBuffer4, 0}}; JPEG_Data_BufferTypeDef Jpeg_IN_BufferTab[NB_INPUT_DATA_BUFFERS] = {{JPEG_BUFFER_EMPTY, JPEG_Data_InBuffer0, 0}, {JPEG_BUFFER_EMPTY, JPEG_Data_InBuffer1, 0}};