I was looking for good examples to understand alpha blending methods supported in i.MX6. I got one good example which is operating at IPU driver level but not at frame-buffer level. After lot of searches in google and trying bits and pieces of code based on i.MX6 reference manual and i.MX6 Linux reference manual I developed test code for three types of alpha blending,
- Global alpha blending
- Local alpha blending with alpha values passed in a separate buffer (24-bit bpp)
- Local alpha with alpha value in pixels (32-bit bpp Ex. RGBA/BGRA)
I could test this code on the target and it helped me to understand those methods better. I am sharing my test code here so that it will be useful to anyone in the community. Enable one of the alpha methods at the compile time and run it on the target.
Original Attachment has been moved to: imx6_alpha_blending_example.c.zip