页次: 1
Simple example of hardware decoding JPEG image.
Resolution 800x480. Decoding time 3-4ms.
Sources: jpgdec.7z
https://whycan.com/files/members/4572/girl.jpg
https://whycan.com/files/members/4572/flower.jpg
Thank Ozelot. Do you have the document about this feature? For example: Allwinner user manual...?
F1C100s_RTX4_USB
added msc example, but speed not good (12MB/s for RAM)
添加了 msc 示例,但速度不佳(RAM 为 12MB/s)
修复低帧率
//添加到fb-f1c100s.c
void fb_f1c100s_area_present(framebuffer_t * fb, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, uint32_t* data)
{
uint16_t x = x2 - x1 + 1;
fb_f1c100s_pdata_t * pdat = (fb_f1c100s_pdata_t *)fb->priv;
uint16_t size_of_row = x*sizeof(uint32_t);
pdat->index = 0;
for(int i=y1; i<y2+1; i++) {
memcpy(&((uint32_t*)pdat->vram[0])[i*LCD_WIDTH + x1], data, size_of_row);
data += x;
}
dma_cache_sync(pdat->vram[0], pdat->width * pdat->height, DMA_TO_DEVICE);
f1c100s_debe_set_address(pdat, pdat->vram[0]);
}
//在Main中使用
/* Display flushing */
void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
{
fb_f1c100s_area_present(&fb_f1c100s, area->x1, area->x2, area->y1, area->y2, (uint32_t*)color_p);
lv_disp_flush_ready(disp);
}
页次: 1