完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
PIC32 MZ2048 EFM064没有外部SRAM和声V2.05图形控制器ILI9327,附上FIG1.PNG和FIG2.PNG分别显示图形作图器的屏幕设计器和实际的LCD屏幕。两个梯度小部件在这些图中部分重叠。其中一个具有α150,另一个具有255。在FL2.PNG中,实际的LCD屏幕上没有实现alpha混合。如何实现软件(非硬件)alpha混合?YTS
以上来自于百度翻译 以下为原文 PIC32MZ2048EFM064 without an external SRAM HARMony V2.05 Graphic controller ILI9327 The attached fig1.png and fig2.png show the Screen Designer of Graphics Composer and the actual LCD screen, respectively. Two Gradient Widgets are partially overlapped in these figures. One of them has the alpha amount of 150 and the other has that of 255. The alpha blending is not realized on the actual LCD screen as seen in fig2.png. How can I realize the software (not hardware) alpha blending? yts Attached Image(s) |
|
相关推荐
4个回答
|
|
你好,在图形作曲器设计中设置的颜色格式是什么?软件alpha混合将需要类似的RGBA88 88。
以上来自于百度翻译 以下为原文 Hi yts, What is the color format set to in the Graphics Composer design? Software alpha blending would require something like RGBA8888. |
|
|
|
此外,软件alpha混合是一个读修改写过程。它需要访问帧缓冲存储器,否则它将无法工作。从您在另一个线程(http://www. McCalp.com /论坛/ M103034..ASPX)的帖子中,我仍然不清楚您的帧缓冲区是否在PIC的内部SRAM或车载ILI9327上。
以上来自于百度翻译 以下为原文 In addition, software alpha-blending is a read-modify write procedure. It requires access to the frame buffer memory or else it will not work. From your posting in the other thread (http://www.microchip.com/forums/m1030374.aspx), I am still not clear if your frame buffer is on the PIC's internal SRAM or on-board the ILI9327. |
|
|
|
你好,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 |
|
|
|
HYMMHC;通过实现LCD-RAM读函数(PixelGET函数),用RGB565格式实现软件alpha混合。
以上来自于百度翻译 以下为原文 Hi MHGC; The software alpha-blending is realized with the RGB565 format by implementing a LCD-RAM read function (pixelGet function).Smile: Thank you very much. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
727浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
626浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 02:58 , Processed in 1.264236 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号