Skip to content

Commit

Permalink
Remove unused code & fix order of headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherofken committed Feb 22, 2020
1 parent ee10079 commit 08f83ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/LibRaw2DngConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ namespace {
LibRaw2DngConverter::LibRaw2DngConverter(const LibRaw &raw)
: OutputStream()
, Raw(raw)
, RawIsDng(Raw.imgdata.idata.dng_version != 0)
, Tiff(SetTiffFields(TiffPtr(TIFFStreamOpen("", &OutputStream), TIFFClose)))
{}

LibRaw2DngConverter::TiffPtr LibRaw2DngConverter::SetTiffFields(LibRaw2DngConverter::TiffPtr tiff_ptr) {
const auto dng_version = Raw.imgdata.idata.dng_version;
const bool is_dng = dng_version != 0;

const auto raw_color = Raw.imgdata.color;

const uint16_t bayer_pattern_dimensions[] = {2, 2};
Expand Down
4 changes: 2 additions & 2 deletions src/LibRaw2DngConverter.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#pragma once

#include <libraw/libraw.h>
#include <sstream>
#include <tiffio.h>
#include <tiffio.hxx>

#include <HalideBuffer.h>
#include <libraw/libraw.h>

class LibRaw2DngConverter {
using TiffPtr = std::shared_ptr<TIFF>;
Expand All @@ -19,6 +20,5 @@ class LibRaw2DngConverter {
private:
std::ostringstream OutputStream;
const LibRaw& Raw;
bool RawIsDng;
std::shared_ptr<TIFF> Tiff;
};
15 changes: 7 additions & 8 deletions src/stack_frames.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#include "Halide.h"
#include <halide_image_io.h>
#include "halide_load_raw.h"
#include <stdio.h>
#include <iostream>
#include <fstream>

#include "Burst.h"
#include <Halide.h>
#include <halide_image_io.h>

#include <stdio.h>
#include "align.h"
#include "merge.h"
#include "Burst.h"
#include "finish.h"
#include <iostream>
#include <fstream>
#include "merge.h"

using namespace Halide;
using namespace std;
Expand Down

0 comments on commit 08f83ac

Please sign in to comment.