summaryrefslogtreecommitdiff
path: root/src/py/cam/helpers.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-04 02:25:30 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-28 05:41:15 +0300
commit7d0004a410db6a52b8c212294ce267c14f8300ac (patch)
treef518718e7be9c07a29cd7aa72046235a36ab2043 /src/py/cam/helpers.py
parentdf7b9826d7522b7328069c9765e6ba646a050a5e (diff)
ipa: rkisp1: awb: Log means, gains and temperature in debug message
Extend the debug message in Awb::process() to log the means and color temperature in addition to the gains. This is useful for debugging the algorithm behaviour. While at it, set the showpoint flag to print a fixed number of digits after the decimal point, making logs more readable. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/py/cam/helpers.py')
0 files changed, 0 insertions, 0 deletions
t.write('\n') fout.write(' '*state["indent"]*4) def process_char(c, fout, state): if c == '{': if not state["skipnewline"]: print_newline(fout, state) fout.write(c) state["indent"] += 1 print_newline(fout, state) elif c == '}': state["indent"] -= 1 print_newline(fout, state) fout.write(c) elif c == '[': print_newline(fout, state) fout.write(c) state["indent"] += 1 print_newline(fout, state) state["inarray"] = [True] + state["inarray"] state["arraycount"] = [0] + state["arraycount"] elif c == ']': state["indent"] -= 1 print_newline(fout, state) state["inarray"].pop(0) state["arraycount"].pop(0) fout.write(c) elif c == ':': fout.write(c) fout.write(' ') elif c == ' ': pass elif c == ',': if not state["inarray"][0]: fout.write(c) fout.write(' ') print_newline(fout, state)