Hi, yes, I've always found libcamera controls a bit confusing to use as well! Try replacingby something like this (obviously adjust as necessary to your own taste and requirements!)
Code:
if (key == '\n') output->Signal();
Code:
if (key == '\n') {static bool black_and_white = false;black_and_white = !black_and_white;libcamera::ControlList controls;controls.set(controls::Saturation, black_and_white ? 0.0 : 1.0);app.SetControls(controls);}
Statistics: Posted by therealdavidp — Tue Jul 16, 2024 8:21 am