-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move binaries to separate directory * Make align accept Halide::Func * Make project compilable * Make hdrplus binary working * Add generator for stack_frames * Move binaries to separate directory * Make align accept Halide::Func * Make project compilable * Make hdrplus binary working * Add generator for stack_frames * Borrow changes from halide autoscheduler branch
- Loading branch information
1 parent
6c9f6d0
commit 1b5fbbe
Showing
12 changed files
with
243 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <Halide.h> | ||
|
||
#include "align.h" | ||
#include "merge.h" | ||
#include "finish.h" | ||
|
||
namespace { | ||
|
||
class StackFrames : public Halide::Generator<StackFrames> { | ||
public: | ||
// 'inputs' is really a series of raw 2d frames; extent[2] specifies the count | ||
Input<Halide::Buffer<uint16_t>> inputs{"inputs", 3}; | ||
// Merged buffer | ||
Output<Halide::Buffer<uint16_t>> output{"output", 2}; | ||
|
||
void generate() { | ||
Func alignment = align(inputs, inputs.width(), inputs.height()); | ||
Func merged = merge(inputs, inputs.width(), inputs.height(), inputs.dim(2).extent(), alignment); | ||
output = merged; | ||
} | ||
}; | ||
|
||
} // namespace | ||
|
||
HALIDE_REGISTER_GENERATOR(StackFrames, align_and_merge) |
Oops, something went wrong.