Go to the documentation of this file. 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;
OutputImageParam & set_host_alignment(int)
Set the expected 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.
Internal::Parameter parameter() const
Get at the internal parameter object representing this ImageParam.
std::vector< Range > Region
A multi-dimensional box.
OutputImageParam & store_in(MemoryType type)
Set the desired storage type for this parameter.
Expr left() const
Get an expression giving the minimum coordinate in dimension 0, which by convention is the coordinate...
A reference-counted handle to a parameter to a halide pipeline.
int host_alignment() const
Get the alignment of the host pointer in bytes.
Argument::Kind kind
Is this an input or an output? OutputImageParam is the base class for both.
Func func
If Input: Func representation of the ImageParam.
Expr right() const
Get an expression giving the maximum coordinate in dimension 0, which by convention is the coordinate...
A struct representing an argument to a halide-generated function.
Types in the halide type system.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
bool defined() const
Is this parameter handle non-nullptr.
An argument to an extern-defined Func.
const std::string & name() const
Get the name of this Param.
Kind
An argument is either a primitive type (for parameters), or a buffer pointer.
void add_implicit_args_if_placeholder(std::vector< Expr > &args, Expr last_arg, int total_args, bool *placeholder_seen) const
OutputImageParam & set_estimates(const Region &estimates)
Set (min, extent) estimates for all dimensions in the ImageParam at once; this is equivalent to calli...
A handle on the output buffer of a pipeline.
Internal::Parameter param
A reference-counted handle on the internal parameter object.
Expr bottom() const
Get an expression giving the maximum coordinate in dimension 1, which by convention is the bottom of ...
OutputImageParam()=default
Construct a null image parameter handle.
Expr top() const
Get an expression giving the minimum coordinate in dimension 1, which by convention is the top of the...
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,...
A fragment of Halide syntax.
Expr height() const
Get an expression giving the extent in dimension 1, which by convention is the height of the image.
MemoryType
An enum describing different address spaces to be used with Func::store_in.
int dimensions() const
Get the dimensionality of this image parameter.
Type type() const
Get the type of the image data this Param refers to.