summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/volume-2.svg
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2022-05-27 18:34:36 +0900
committerJacopo Mondi <jacopo@jmondi.org>2022-06-10 11:48:09 +0200
commitfec64fb75ac1e64e4bf6af7885170a51c637cd45 (patch)
treee3ed22619b3297a2dd335938cf9e0de0fd0de936 /src/qcam/assets/feathericons/volume-2.svg
parentb4d4b78c82a23de3c6dd1676bf43bba1d6043652 (diff)
android: camera_stream: Add sourceStream
Add a sourceStream field to the CameraStream class, meant to contain a reference to the direct stream which produces actual image data for streams of type CameraStream::Mapped. The sourceStream of mapped streams will be used in later patches to make sure for each Mapped stream at least one libcamera::Stream is queued to the libcamera::Camera. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/volume-2.svg')
0 files changed, 0 insertions, 0 deletions
config_.slope >= 1.0) throw std::runtime_error("Geq: bad slope value"); if (params.get_child_optional("strength")) config_.strength.Read(params.get_child("strength")); } void Geq::Prepare(Metadata *image_metadata) { LuxStatus lux_status = {}; lux_status.lux = 400; if (image_metadata->Get("lux.status", lux_status)) LOG(RPiGeq, Warning) << "no lux data found"; DeviceStatus device_status = {}; device_status.analogue_gain = 1.0; // in case not found if (image_metadata->Get("device.status", device_status)) LOG(RPiGeq, Warning) << "no device metadata - use analogue gain of 1x"; GeqStatus geq_status = {}; double strength = config_.strength.Empty() ? 1.0 : config_.strength.Eval(config_.strength.Domain().Clip( lux_status.lux)); strength *= device_status.analogue_gain; double offset = config_.offset * strength; double slope = config_.slope * strength; geq_status.offset = std::min(65535.0, std::max(0.0, offset)); geq_status.slope = std::min(.99999, std::max(0.0, slope)); LOG(RPiGeq, Debug) << "offset " << geq_status.offset << " slope " << geq_status.slope << " (analogue gain " << device_status.analogue_gain << " lux " << lux_status.lux << ")"; image_metadata->Set("geq.status", geq_status); } // Register algorithm with the system. static Algorithm *Create(Controller *controller) { return (Algorithm *)new Geq(controller); } static RegisterAlgorithm reg(NAME, &Create);