Implement DNG bad pixels constant for LibRaw

Works if the FixBadPixelsConstant is zero, as implemented for dcraw.
Other constant values may be implemented in the future.
This commit is contained in:
Lawrence Lee
2024-01-01 17:55:05 -08:00
parent d96809ecab
commit d13badbbe0
7 changed files with 60 additions and 32 deletions

View File

@@ -117,6 +117,8 @@ public:
bool getHDR() const override { return isHDR; }
std::string getImageType() const override { return isPixelShift ? "PS" : isHDR ? "HDR" : "STD"; }
rtengine::IIOSampleFormat getSampleFormat() const override { return sampleFormat; }
std::uint32_t getFixBadPixelsConstant() const override;
bool hasFixBadPixelsConstant() const override;
std::vector<GainMap> getGainMaps() const override;
void getDimensions(int &w, int &h) const override
{