Halide 19.0.0
Halide compiler and libraries
|
A handle on the output buffer of a pipeline. More...
#include <OutputImageParam.h>
Public Member Functions | |
OutputImageParam ()=default | |
Construct a null image parameter handle. | |
const std::string & | name () const |
Get the name of this Param. | |
Type | type () const |
Get the type of the image data this Param refers to. | |
bool | defined () const |
Is this parameter handle non-nullptr. | |
Internal::Dimension | dim (int i) |
Get a handle on one of the dimensions for the purposes of inspecting or constraining its min, extent, or stride. | |
Internal::Dimension | dim (int i) const |
Get a handle on one of the dimensions for the purposes of inspecting its min, extent, or stride. | |
int | host_alignment () const |
Get the alignment of the host pointer in bytes. | |
OutputImageParam & | set_host_alignment (int) |
Set the expected alignment of the host pointer in bytes. | |
int | dimensions () const |
Get the dimensionality of this image parameter. | |
Expr | left () const |
Get an expression giving the minimum coordinate in dimension 0, which by convention is the coordinate of the left edge of the image. | |
Expr | right () const |
Get an expression giving the maximum coordinate in dimension 0, which by convention is the coordinate of the right edge of the image. | |
Expr | top () const |
Get an expression giving the minimum coordinate in dimension 1, which by convention is the top of the image. | |
Expr | bottom () const |
Get an expression giving the maximum coordinate in dimension 1, which by convention is the bottom of the image. | |
Expr | width () const |
Get an expression giving the extent in dimension 0, which by convention is the width of the image. | |
Expr | height () const |
Get an expression giving the extent in dimension 1, which by convention is the height of the image. | |
Expr | channels () const |
Get an expression giving the extent in dimension 2, which by convention is the channel-count of the image. | |
Parameter | parameter () const |
Get at the internal parameter object representing this ImageParam. | |
operator Argument () const | |
Construct the appropriate argument matching this parameter, for the purpose of generating the right type signature when statically compiling halide pipelines. | |
operator ExternFuncArgument () const | |
Using a param as the argument to an external stage treats it as an Expr. | |
OutputImageParam & | set_estimates (const Region &estimates) |
Set (min, extent) estimates for all dimensions in the ImageParam at once; this is equivalent to calling dim(n).set_estimate(min, extent) repeatedly, but slightly terser. | |
OutputImageParam & | store_in (MemoryType type) |
Set the desired storage type for this parameter. | |
Protected Member Functions | |
void | add_implicit_args_if_placeholder (std::vector< Expr > &args, Expr last_arg, int total_args, bool *placeholder_seen) const |
OutputImageParam (const Parameter &p, Argument::Kind k, Func f) | |
Construct an OutputImageParam that wraps an Internal Parameter object. | |
Protected Attributes | |
Parameter | param |
A reference-counted handle on the internal parameter object. | |
Argument::Kind | kind = Argument::InputScalar |
Is this an input or an output? OutputImageParam is the base class for both. | |
Func | func |
If Input: Func representation of the ImageParam. | |
A handle on the output buffer of a pipeline.
Used to make static promises about the output size and stride.
Definition at line 19 of file OutputImageParam.h.
|
protected |
Construct an OutputImageParam that wraps an Internal Parameter object.
|
default |
Construct a null image parameter handle.
|
protected |
const std::string & Halide::OutputImageParam::name | ( | ) | const |
Get the name of this Param.
bool Halide::OutputImageParam::defined | ( | ) | const |
Is this parameter handle non-nullptr.
Internal::Dimension Halide::OutputImageParam::dim | ( | int | i | ) |
Get a handle on one of the dimensions for the purposes of inspecting or constraining its min, extent, or stride.
Internal::Dimension Halide::OutputImageParam::dim | ( | int | i | ) | const |
Get a handle on one of the dimensions for the purposes of inspecting its min, extent, or stride.
int Halide::OutputImageParam::host_alignment | ( | ) | const |
Get the alignment of the host pointer in bytes.
Defaults to the size of type.
OutputImageParam & Halide::OutputImageParam::set_host_alignment | ( | int | ) |
Set the expected alignment of the host pointer in bytes.
int Halide::OutputImageParam::dimensions | ( | ) | const |
Get the dimensionality of this image parameter.
Expr Halide::OutputImageParam::left | ( | ) | const |
Get an expression giving the minimum coordinate in dimension 0, which by convention is the coordinate of the left edge of the image.
Expr Halide::OutputImageParam::right | ( | ) | const |
Get an expression giving the maximum coordinate in dimension 0, which by convention is the coordinate of the right edge of the image.
Expr Halide::OutputImageParam::top | ( | ) | const |
Get an expression giving the minimum coordinate in dimension 1, which by convention is the top of the image.
Expr Halide::OutputImageParam::bottom | ( | ) | const |
Get an expression giving the maximum coordinate in dimension 1, which by convention is the bottom of the image.
Expr Halide::OutputImageParam::width | ( | ) | const |
Get an expression giving the extent in dimension 0, which by convention is the width of the image.
Expr Halide::OutputImageParam::height | ( | ) | const |
Get an expression giving the extent in dimension 1, which by convention is the height of the image.
Expr Halide::OutputImageParam::channels | ( | ) | const |
Get an expression giving the extent in dimension 2, which by convention is the channel-count of the image.
Parameter Halide::OutputImageParam::parameter | ( | ) | const |
Get at the internal parameter object representing this ImageParam.
Halide::OutputImageParam::operator Argument | ( | ) | const |
Construct the appropriate argument matching this parameter, for the purpose of generating the right type signature when statically compiling halide pipelines.
Halide::OutputImageParam::operator ExternFuncArgument | ( | ) | const |
Using a param as the argument to an external stage treats it as an Expr.
OutputImageParam & Halide::OutputImageParam::set_estimates | ( | const Region & | estimates | ) |
Set (min, extent) estimates for all dimensions in the ImageParam at once; this is equivalent to calling dim(n).set_estimate(min, extent)
repeatedly, but slightly terser.
The size of the estimates vector must match the dimensionality of the ImageParam.
OutputImageParam & Halide::OutputImageParam::store_in | ( | MemoryType | type | ) |
Set the desired storage type for this parameter.
Only useful for MemoryType::GPUTexture at present
|
protected |
A reference-counted handle on the internal parameter object.
Definition at line 24 of file OutputImageParam.h.
|
protected |
Is this an input or an output? OutputImageParam is the base class for both.
Definition at line 27 of file OutputImageParam.h.
|
protected |
If Input: Func representation of the ImageParam.
If Output: Func that creates this OutputImageParam.
Definition at line 32 of file OutputImageParam.h.
Referenced by Halide::ImageParam::operator()().