-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#44 save merged buffer as dng #49
#44 save merged buffer as dng #49
Conversation
Halide::Runtime::Buffer<uint16_t> raw_buffer(image_data, raw_width, raw_height); | ||
buffer.copy_from(raw_buffer.translated({-left, -top})); | ||
} | ||
|
||
void RawImage::WriteDng(const std::string &output_path, const Halide::Runtime::Buffer<uint16_t> &buffer) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New method to write DNG.
@@ -0,0 +1,74 @@ | |||
#pragma once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class that does conversion from LibRaw to DNG.
Colors are correct at least for Canon RAWs. |
Is it ready to be merged? |
No, it's not finished yet. |
@@ -7,39 +7,28 @@ | |||
#include <Halide.h> | |||
#include "finish.h" | |||
|
|||
class AbstractInputSource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to simplify IO because there is only one type of input - RAW files, thus this abstraction is redundant.
Fixes #44