Patent ID: 7609424

Claim:
A circuit, comprising: a plurality of sampling-amplified-offset devices configured to sample, amplify, and compensate levels of an R charge signal, a G charge signal, and B analog signal, respectively, and obtain an R analog signal, a G analog signal, and a B analog signal; a gain adder configured to multiply at least one of the R, G, or B analog signals by a corresponding weighted value, wherein the gain adder is further configured to add at least a subset of the analog signals that are multiplied by the weighted values to obtain an addition analog signal; and a multiplexer configured to select at least one of the R analog signal, the G analog signal, the B analog signal, or the addition analog signal as an output signal; wherein at least one of the sampling-amplified-offset devices includes: a sampler configured to obtain a plurality of samples of at least one the R, G, or B charge signals and to determine a luminance based, at least in part, on a difference between at least two of the samples; a programmable gain amplifier configured to obtain an amplified luminance according to a gain value; and an offset device configured to compensate at least one of the R, G, or B analog signals, respectively, based, at least in part, on the obtained amplified luminance.