Support dnggainmap (embedded correction) for Bayer files (#6382)
* dng gainmap support, #6379 * dng GainMap: control sensitivity of checkbox, #6379 * dng GainMap: partial paste * dng GainMap: moved isGainMapSupported() from dcraw.h to dcraw.cc * RawImageSource::applyDngGainMap: small speedup * Change GUI to separate gainmap from other flat-field; also reorder checkbox Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
This commit is contained in:
@@ -248,6 +248,14 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
// import from flat data
|
||||
void operator()(std::size_t w, std::size_t h, const T* const copy)
|
||||
{
|
||||
ar_realloc(w, h);
|
||||
for (std::size_t y = 0; y < h; ++y) {
|
||||
std::copy(copy + y * w, copy + y * w + w, rows.data()[y]);
|
||||
}
|
||||
}
|
||||
|
||||
int getWidth() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user