Skip to content
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

Merged
merged 11 commits into from
Feb 24, 2020

Conversation

brotherofken
Copy link
Contributor

Fixes #44

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@brotherofken
Copy link
Contributor Author

Colors are correct at least for Canon RAWs.

@Titaniumtown
Copy link
Collaborator

Is it ready to be merged?

@brotherofken
Copy link
Contributor Author

No, it's not finished yet.

@brotherofken brotherofken marked this pull request as ready for review February 15, 2020 09:26
@@ -7,39 +7,28 @@
#include <Halide.h>
#include "finish.h"

class AbstractInputSource {
Copy link
Contributor Author

@brotherofken brotherofken Feb 15, 2020

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.

src/LibRaw2DngConverter.h Outdated Show resolved Hide resolved
src/stack_frames.cpp Outdated Show resolved Hide resolved
src/LibRaw2DngConverter.cpp Outdated Show resolved Hide resolved
@Titaniumtown Titaniumtown merged commit 3bdea3b into timothybrooks:master Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to save aligned/merged image before demosaic
2 participants