First pixel written by PXP has wrong color

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

First pixel written by PXP has wrong color

659 Views
mod42
Contributor III

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.

pixel.jpg

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.

Labels (2)
0 Kudos
1 Reply

590 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos