summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/af.cpp
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-06-25 09:49:56 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2024-06-26 15:48:34 +0200
commit36a4f67a755ef54d81944ae6d8b11685e5a41a28 (patch)
tree3d28d514466afa352e285b04833f6925c8cb6754 /src/ipa/ipu3/algorithms/af.cpp
parentfc3efe072357a30599add61506ee2613f227bf5c (diff)
apps: common: dng_writer: Workaround for "Unknown tag 33421" error
In libtiff version 4.5.1 and later the CFA* tags were missing. This got fixed in https://gitlab.com/libtiff/libtiff/-/commit/49856998c3d82e65444b47bb4fb11b7830a0c2be Unfortunately the fix is not released yet, but the faulty libtiff is contained in current buildroot. As a local fix is pretty easy and without side effects, let's workaround that. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/algorithms/af.cpp')
0 files changed, 0 insertions, 0 deletions
pt">(controller) { } char const *BlackLevel::name() const { return NAME; } int BlackLevel::read(const libcamera::YamlObject &params) { /* 64 in 10 bits scaled to 16 bits */ uint16_t blackLevel = params["black_level"].get<uint16_t>(4096); blackLevelR_ = params["black_level_r"].get<uint16_t>(blackLevel); blackLevelG_ = params["black_level_g"].get<uint16_t>(blackLevel); blackLevelB_ = params["black_level_b"].get<uint16_t>(blackLevel); LOG(RPiBlackLevel, Debug) << " Read black levels red " << blackLevelR_ << " green " << blackLevelG_ << " blue " << blackLevelB_; return 0; } void BlackLevel::prepare(Metadata *imageMetadata) { /* * Possibly we should think about doing this in a switchMode or * something? */ struct BlackLevelStatus status; status.blackLevelR = blackLevelR_; status.blackLevelG = blackLevelG_; status.blackLevelB = blackLevelB_; imageMetadata->set("black_level.status", status); } /* Register algorithm with the system. */ static Algorithm *create(Controller *controller) { return new BlackLevel(controller); } static RegisterAlgorithm reg(NAME, &create);