We have written our own driver for PXP which works quite well. But there is one problem left for which we didn't find a solution. The first pixel which is written to the output buffer has a wrong color. It makes no difference if PXP write the configured background color or content of the processed surface to the output buffer. Always one pixel is written in the wrong color.
Here you see an image which should illustrate the problem. You see the output surface (background, black) part of the processed surface (gray) and background color of the PXP (dark red). The bright dot in the upper left corner is the first pixel written by PXP. We always see this bright pixel. It makes no difference if we just copy pixels, rotate/flip the processed surface, use YUV -> RGB color conversion or add scaling. The first pixel is always wrong.
Hi Matthias
one can look at linux pxp driver implementation described in
i.MX Software and Development Tools | NXP
pxp_v4l2_test\test - imx-test - i.MX Driver Test Application Software
or baremetal sdk and compare them with custom driver
rt-thread/pxp_drv.c at master · RT-Thread/rt-thread · GitHub
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------