C
Qt Quick Ultralite imagedecoder Example
/****************************************************************************** ** ** 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" static uint8_t MCU_Data_OutBuffer[NB_OUTPUT_DATA_BUFFERS][CHUNK_SIZE_OUT]; static uint8_t JPEG_Data_InBuffer0[CHUNK_SIZE_IN]; static uint8_t JPEG_Data_InBuffer1[CHUNK_SIZE_IN]; JPEG_Data_BufferTypeDef Jpeg_OUT_BufferTab[NB_OUTPUT_DATA_BUFFERS]; JPEG_Data_BufferTypeDef Jpeg_IN_BufferTab[NB_INPUT_DATA_BUFFERS] = {{JPEG_BUFFER_EMPTY, JPEG_Data_InBuffer0, 0}, {JPEG_BUFFER_EMPTY, JPEG_Data_InBuffer1, 0}}; void initJpegOutputBuffers(void) { for (uint16_t i = 0; i < NB_OUTPUT_DATA_BUFFERS; i++) { Jpeg_OUT_BufferTab[i].State = JPEG_BUFFER_EMPTY; Jpeg_OUT_BufferTab[i].DataBuffer = MCU_Data_OutBuffer[i]; Jpeg_OUT_BufferTab[i].DataBufferSize = 0; } }