A few days ago in the verification of an IPC hardware, encountered a problem: on other devices, the video function of the normal firmware, burned to the customer's device, there is a serious screen video screen, and the image color is serious phenomenon, the customer is using ov9712d sensor, image screen as follows:
I thought it was the sensor filter and the sensor's ISP parameter mismatch, so I tried to adjust the sensor
The color register in the driver code to correct the colors. But change to change, the image color is not true, one color has been adjusted, another color is wrong ... Toss a day, helpless, let the hardware check the sensor part of the circuit, only to find the customer hardware principle design, sensor interface is low 10-bit alignment, and our own hardware design, sensor interface is high 10-bit alignment.
I finally found out why. When the application initializes the video input (VI) module, the default mask is set to: 0xffc00000. See the HIMPP Media processing software development reference. PDF---> Video input section.
"The high 12bit of the mask corresponds to the 12 pin pin connections (D0~D11) of the hardware line, the user needs to set the appropriate mask configuration according to the actual connection situation, the highest bit of the mask corresponding PIN is D11, for example 10bit input sensor connection pin is D2~D11, The mask is configured as 0xffc00000. ”
Then modify the application Code section to set the mask to: 0x3ff00000. See figure below:
Problem solving.
"This as a record only"