你好,MHGC,非常感谢您的宝贵意见。可能我可能有误解,我的图形驱动程序可能有一些错误。颜色格式被设置为RGB565,因为图形控制器ILI9327可能不接受RGBA88 88和/或RGB88格式(S)。当颜色格式被设置为图形作图器中的RGBA88 88时,坏图像在LCD屏幕上出现(如图1。PNG)。是否需要将RGBA88 88格式的数据转换为RGB565格式的数据?在这种情况下,如何在固件中保存“A”信息?至于alpha混合,你让我注意到我必须在我的图形驱动程序中实现一个读函数(例如PixelGET函数)(参见DrviFxxILI9327 .zip)。我会那样做。你认为ILI9327的RAM对于“缓存”背景图足够了。背景数据是通过读取函数(如PixelGET)从ILI9327的RAM读取的吗?然而,在我看来,这种类型的读取功能是不需要的,因为固件不会在读取函数内设置的断点处停止(参见上面所示的代码)。此外,如果在PIC的内部SRAM中没有设置帧缓冲器,则固件重复“重置”。在我看来,固件找不到指向帧缓冲区的指针。
以上来自于百度翻译
以下为原文
Hi MHGC;
Thank you very much for your valuable comments.
Probably, I may have misunderstanding and my graphic driver may have some faults.
The color format is set to be RGB565, because the graphic controller ili9327 may not accept the RGBA8888 and/or RGB888 format(s). When the color format is set to be RGBA8888 in the Graphics Composer, the bad image appear as expected on the LCD screen (see fig1.png).
Should I need to convert the data with the RGBA8888 format into the one with the RGB565? How should the “A” information be kept in the firmware in this case?
As for the alpha blending, you make me notice that I must implement a read function (following pixelGet function, for example) in my graphic driver (see drv_gfx_ili9327.zip). I will do that. Than you.
static GFX_Color pixelGet(const GFX_PixelBuffer* buf,
const GFX_Point* pnt)
{
int i;
i=2; // <-- the break-point is set here
//for debugging with 0 optimization-level
return 0;
}
You think that the RAM of ILI9327 is enough for the “Cache” background drawings.
Are the background data read from the RAM of ILI9327 by using the read function (such as pixelGet)?
However, it seems to me that the read function of this type is not needed, because the firmware does not stop at the break-point set inside the read function (see the codes shown above).
Moreover, the firmware repeats “reset” if the frame buffer is not set in the PIC's internal SRAM. It seems to me that the firmware cannot find the pointer to the frame buffer.
yts
Attached Image(s)
Attachment(s)
drv_gfx_ili9327.zip (2.90 KB) - downloaded 20 times
你好,MHGC,非常感谢您的宝贵意见。可能我可能有误解,我的图形驱动程序可能有一些错误。颜色格式被设置为RGB565,因为图形控制器ILI9327可能不接受RGBA88 88和/或RGB88格式(S)。当颜色格式被设置为图形作图器中的RGBA88 88时,坏图像在LCD屏幕上出现(如图1。PNG)。是否需要将RGBA88 88格式的数据转换为RGB565格式的数据?在这种情况下,如何在固件中保存“A”信息?至于alpha混合,你让我注意到我必须在我的图形驱动程序中实现一个读函数(例如PixelGET函数)(参见DrviFxxILI9327 .zip)。我会那样做。你认为ILI9327的RAM对于“缓存”背景图足够了。背景数据是通过读取函数(如PixelGET)从ILI9327的RAM读取的吗?然而,在我看来,这种类型的读取功能是不需要的,因为固件不会在读取函数内设置的断点处停止(参见上面所示的代码)。此外,如果在PIC的内部SRAM中没有设置帧缓冲器,则固件重复“重置”。在我看来,固件找不到指向帧缓冲区的指针。
以上来自于百度翻译
以下为原文
Hi MHGC;
Thank you very much for your valuable comments.
Probably, I may have misunderstanding and my graphic driver may have some faults.
The color format is set to be RGB565, because the graphic controller ili9327 may not accept the RGBA8888 and/or RGB888 format(s). When the color format is set to be RGBA8888 in the Graphics Composer, the bad image appear as expected on the LCD screen (see fig1.png).
Should I need to convert the data with the RGBA8888 format into the one with the RGB565? How should the “A” information be kept in the firmware in this case?
As for the alpha blending, you make me notice that I must implement a read function (following pixelGet function, for example) in my graphic driver (see drv_gfx_ili9327.zip). I will do that. Than you.
static GFX_Color pixelGet(const GFX_PixelBuffer* buf,
const GFX_Point* pnt)
{
int i;
i=2; // <-- the break-point is set here
//for debugging with 0 optimization-level
return 0;
}
You think that the RAM of ILI9327 is enough for the “Cache” background drawings.
Are the background data read from the RAM of ILI9327 by using the read function (such as pixelGet)?
However, it seems to me that the read function of this type is not needed, because the firmware does not stop at the break-point set inside the read function (see the codes shown above).
Moreover, the firmware repeats “reset” if the frame buffer is not set in the PIC's internal SRAM. It seems to me that the firmware cannot find the pointer to the frame buffer.
yts
Attached Image(s)
Attachment(s)
drv_gfx_ili9327.zip (2.90 KB) - downloaded 20 times
举报