SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
LUT DPC is the first stage of the IPIPE image-processing pipeline. The LUT DPC module corrects defects in input data. It supports up to a 256-defect point table. However, the table can be renewed as required during image processing. Therefore, the maximum amount of defect information is limited only by system-level performance.
The module uses two sets of 128 × 29 memories to hold defect information. The table contains the information of horizontal position (13 bits), vertical position (13 bits), and correction method (3 bits), as shown in Table 9-180. The LUT DPC is enabled through the IPIPE_DPC_LUT_EN[0] EN bit.
Correction Method | Vertical Position | Horizontal Position |
---|---|---|
28…26 | 25…13 | 12…0 |
The information must be listed from left to right and from the top to bottom. The first position in the defect information table and the number of defects that are used can be specified. The address of the table must be programmed in the IPIPE_DPC_LUT_ADR[9:0] ADR bit field. Thus, the address of the first valid data is stated.
The LUT type can be:
The correction methods, set in Table 9-180, are described in Table 9-181.
Correction Method | d0 = | Comment |
---|---|---|
0 | Black or white dot | Replace with a black (or white) dot to force OTF-DPC to work on the pixel. White or black dot replacement can be selected through the IPIPE_DPC_LUT_SEL[0] DOT field. |
1 | d4 | Copy from left |
2 | d5 | Copy from right |
3 | (d4 + d5)/2 | Horizontal interpolation |
4 | (d2 + d7)/2 | Vertical interpolation |
5 | d2 | Copy from top |
6 | d7 | Copy from bottom |
7 | (d2 + d4 + d5 + d7)/2 | 2D interpolation |
The pixels in the defect correction algorithm are numbered as shown in Figure 9-61.
The pixels at the edges are mirrored as way described in Figure 9-62. The figure shows the typical correction by overwriting far-edge pixels and mirroring them with other edge pixels. The example shows how by using a noise filter the correct-by-definition pixels are copied over bad pixels.