Skip to contentSkip to conversation

Question on ISPs CFA interpolation coefficients

DISCUSSION Matthias Schwarz 1 participant 2 messages Aug 27, 2009 – Sep 1, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,

i just wondered how the camera interface's, especially the previewer module's CFA coefficients are setup on OMAP3530.

The TRM also does not give too much information about it:

Quoted 11 lines

In the generic mode, CFA interpolation is implemented using programmable filter coefficients that operate on a 5x5 grid:
· Each coefficient is coded in S8Q6 format.
· Each output color , G, and B) has its own set of coefficients.
· There are 4 phases. Each pixel is associated with a phase.
· Different sets of filter coefficients are provided, depending on the tendency (gradient in the data:
horizontal, vertical, or neutral).
· So there are 3 color x 4 phase x 3 tendencies x 16 taps = 576 coefficients (each coefficient is 8 bits wide).
Note: Coefficients are based on sensor type. However, users can use a different methods of defining an optimal coefficient set.

Also drivers/media/video/isp/cfa_coef_table.h does not provide information on what the inserted values mean and how they are arrenged.

My question now is: is there anyone on the list who would provide me with information on how to compose these coefficients correctly?

Thank you very much,
Matthias
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

2009/8/27 Matthias Schwarz <[email protected]>:

Quoted 23 lines

Hi all,

i just wondered how the camera interface's, especially the previewer module's CFA coefficients are setup on OMAP3530.

The TRM also does not give too much information about it:

Quoted 16 lines

In the generic mode, CFA interpolation is implemented using programmable filter coefficients that operate
on a 5x5 grid:
· Each coefficient is coded in S8Q6 format.
· Each output color , G, and B) has its own set of coefficients. · There are 4 phases. Each pixel is associated with a phase. · Different sets of filter coefficients are provided, depending on the tendency (gradient in the data:
horizontal, vertical, or neutral).
· So there are 3 color x 4 phase x 3 tendencies x 16 taps = 576 coefficients (each coefficient is 8 bits
wide).
Note: Coefficients are based on sensor type. However, users can use a different methods of
defining an optimal coefficient set.

Quoted 9 lines

Also drivers/media/video/isp/cfa_coef_table.h does not provide information on what the inserted values mean and how they are arrenged.

My question now is: is there anyone on the list who would provide me with information on how to compose these coefficients correctly?

Thank you very much,
Matthias

What i guess from no answers is that this part clearly lacks information. I also created a thread in TI's e2e forums:
http://e2e.ti.com/forums/t/9565.aspx

Best regards,
Matthias
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html