1#ifndef HALIDE_OUTPUT_IMAGE_PARAM_H
2#define HALIDE_OUTPUT_IMAGE_PARAM_H
37 bool *placeholder_seen)
const;
47 const std::string &
name()
const;
Defines a type used for expressing the type signature of a generated halide pipeline.
Defines the Dimension utility class for Halide pipelines.
Defines Func - the front-end handle on a halide function, and related classes.
This file declares the routines used by Halide internally in its runtime.
Defines the Var - the front-end variable.
A handle on the output buffer of a pipeline.
Expr right() const
Get an expression giving the maximum coordinate in dimension 0, which by convention is the coordinate...
Type type() const
Get the type of the image data this Param refers to.
Expr left() const
Get an expression giving the minimum coordinate in dimension 0, which by convention is the coordinate...
const std::string & name() const
Get the name of this Param.
Internal::Dimension dim(int i) const
Get a handle on one of the dimensions for the purposes of inspecting its min, extent,...
OutputImageParam & set_host_alignment(int)
Set the expected alignment of the host pointer in bytes.
void add_implicit_args_if_placeholder(std::vector< Expr > &args, Expr last_arg, int total_args, bool *placeholder_seen) const
int dimensions() const
Get the dimensionality of this image parameter.
OutputImageParam(const Parameter &p, Argument::Kind k, Func f)
Construct an OutputImageParam that wraps an Internal Parameter object.
OutputImageParam & store_in(MemoryType type)
Set the desired storage type for this parameter.
bool defined() const
Is this parameter handle non-nullptr.
int host_alignment() const
Get the alignment of the host pointer in bytes.
Expr width() const
Get an expression giving the extent in dimension 0, which by convention is the width of the image.
Expr top() const
Get an expression giving the minimum coordinate in dimension 1, which by convention is the top of the...
Expr bottom() const
Get an expression giving the maximum coordinate in dimension 1, which by convention is the bottom of ...
Expr channels() const
Get an expression giving the extent in dimension 2, which by convention is the channel-count of the i...
Internal::Dimension dim(int i)
Get a handle on one of the dimensions for the purposes of inspecting or constraining its min,...
Parameter param
A reference-counted handle on the internal parameter object.
OutputImageParam()=default
Construct a null image parameter handle.
Argument::Kind kind
Is this an input or an output? OutputImageParam is the base class for both.
OutputImageParam & set_estimates(const Region &estimates)
Set (min, extent) estimates for all dimensions in the ImageParam at once; this is equivalent to calli...
Expr height() const
Get an expression giving the extent in dimension 1, which by convention is the height of the image.
Func func
If Input: Func representation of the ImageParam.
Parameter parameter() const
Get at the internal parameter object representing this ImageParam.
A reference-counted handle to a parameter to a halide pipeline.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
std::vector< Range > Region
A multi-dimensional box.
MemoryType
An enum describing different address spaces to be used with Func::store_in.
A struct representing an argument to a halide-generated function.
Kind
An argument is either a primitive type (for parameters), or a buffer pointer.
A fragment of Halide syntax.
An argument to an extern-defined Func.
Types in the halide type system.