Browse Source

更新CPU工程下的QOI驱动
优化QOI超时等待时间,避免解码超时后引起肉眼可见的卡顿,同时去掉相应的调试信息。

helen 3 months ago
parent
commit
543fd1c72b

+ 1 - 3
amt630hv160-freertos-beta/ArkmicroFiles/libcpu-amt630hv160/source/qoi_dec.c

@@ -201,7 +201,7 @@ int qoi_dec(qoi_info_t *info)
 	xQueueReset(qoi->complete);
 	qoi_enable(qoi);
 
-	if (xQueueReceive(qoi->complete, &int_status, pdMS_TO_TICKS(100)) == pdTRUE) {
+	if (xQueueReceive(qoi->complete, &int_status, pdMS_TO_TICKS(30)) == pdTRUE) {
 		if (int_status & BRESP_ERROR_INT)
 			printf("ERR: %s QOI DEC BRESP ERROR\n", __func__);
 
@@ -213,8 +213,6 @@ int qoi_dec(qoi_info_t *info)
 			info->dec_height = readl(qoi->base + DEC_HEIGHT_RD_REG);
 			ret = 0;
 		}
-	} else {
-		printf("ERR: %s QOI DEC TIMEOUT\n", __func__);
 	}
 	qoi_disable(qoi);