SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
For DPC memory access locations, see Section 9.3.3.11, ISS ISP Memory Mapping.
A simple DPC can be applied to the ISIF or VP input data path and SDRAM input data path, respectively. This DPC algorithm is intended to correct hot pixels during RAW dark frame acquisition or dark frame readout from SDRAM before dark frame subtraction.
The following code describes DPC algorithm:
If (image(n) < TH) || ((image(–2) TH)&&(image(n+2)>TH)
image(n) = image(n)
Else if image(–2) > TH
image(n) = image(n+2)
Else if image(n+2) > TH
image(n) = image(–2)
Else
image(n) = (image(–2)+ image(n+2))/2
// Where TH is equal to IPIPEIF_DPC1[11:0] TH for DPC1
// Where TH is equal to IPIPEIF_DPC2[11:0] TH for DPC2
The IPIPEIF_DPC1[12] ENA bit enables DPC for the VP/ISIF input path, and the IPIPEIF_DPC2[12] ENA bit enables DPC for the SDRAM input path. The algorithm requires a threshold value that is set by the IPIPEIF_DPC1[11:0] TH or IPIPEIF_DPC2[11:0] TH bit field that is a 12-bit unsigned value.