HiSilicon HI3518 due to sensor alignment problems cause video flower screen

Source: Internet
Author: User


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"





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.