Compute Library
 19.08
Window::Dimension Class Reference

Describe one of the image's dimensions with a start, end and step. More...

#include <Window.h>

Public Member Functions

constexpr Dimension (int start=0, int end=1, int step=1)
 Constructor, by default creates a dimension of 1. More...
 
Dimensionoperator= (const Dimension &d)=default
 Default assignment operator to allow dimensions to be copied. More...
 
constexpr int start () const
 Return the start of the dimension. More...
 
constexpr int end () const
 Return the end of the dimension. More...
 
constexpr int step () const
 Return the step of the dimension. More...
 
void set_step (int step)
 Set the dimension's step. More...
 
void set_end (int end)
 Set the dimension's end. More...
 

Detailed Description

Describe one of the image's dimensions with a start, end and step.

Iteration through the elements of the dimension is done like this: for(int v = start(); v < end(); v += step()) { ... }

Definition at line 75 of file Window.h.

Constructor & Destructor Documentation

◆ Dimension()

constexpr Dimension ( int  start = 0,
int  end = 1,
int  step = 1 
)
inline

Constructor, by default creates a dimension of 1.

Parameters
[in]startStart of the dimension
[in]endEnd of the dimension
[in]stepStep between two elements of the dimension when iterating.

Definition at line 85 of file Window.h.

86  : _start(start), _end(end), _step(step)
87  {
88  }
constexpr int step() const
Return the step of the dimension.
Definition: Window.h:102
constexpr int end() const
Return the end of the dimension.
Definition: Window.h:97
constexpr int start() const
Return the start of the dimension.
Definition: Window.h:92

Member Function Documentation

◆ end()

constexpr int end ( ) const
inline

Return the end of the dimension.

Definition at line 97 of file Window.h.

98  {
99  return _end;
100  }

Referenced by Window::adjust(), arm_compute::colorconvert_iyuv_to_nv12(), arm_compute::colorconvert_iyuv_to_rgb(), arm_compute::colorconvert_iyuv_to_yuv4(), arm_compute::colorconvert_nv12_to_iyuv(), arm_compute::colorconvert_nv12_to_rgb(), arm_compute::colorconvert_nv12_to_yuv4(), arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), CLElementWiseUnaryLayerKernel::configure(), CLDequantizationLayerKernel::configure(), CLCopyKernel::configure(), CLQuantizationLayerKernel::configure(), CLCropKernel::configure(), GCGEMMTranspose1xWKernel::configure(), CLStridedSliceKernel::configure(), arm_compute::enqueue(), arm_compute::error_on_unconfigured_kernel(), ICLKernel::gws_from_window(), WindowIterator< L >::iterate_3D(), arm_compute::operator<<(), NEGEMMInterleavedWrapper::prepare(), CLHistogramKernel::run(), NEMemsetKernel::run(), NEGEMMMatrixAccumulateBiasesKernel::run(), CLChannelExtractKernel::run(), GCPoolingLayerKernel::run(), CLPoolingLayerKernel::run(), NEROIPoolingLayerKernel::run(), CLChannelCombineKernel::run(), NEFlattenLayerKernel::run(), NEPoolingLayerKernel::run(), CLReductionOperationKernel::run(), CLCropKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), NEMinMaxLayerKernel::run(), CLColorConvertKernel::run(), CLHistogramBorderKernel::run(), NEWinogradLayerTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run(), arm_compute::run_reverse(), Window::scale(), Window::Dimension::set_end(), Window::shift(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), and AccessWindowRectangle::update_window_if_needed().

◆ operator=()

Dimension& operator= ( const Dimension d)
default

Default assignment operator to allow dimensions to be copied.

◆ set_end()

void set_end ( int  end)
inline

Set the dimension's end.

Parameters
[in]endThe new end

Definition at line 118 of file Window.h.

119  {
120  _end = end;
121  }
constexpr int end() const
Return the end of the dimension.
Definition: Window.h:97

References Window::Dimension::end().

◆ set_step()

void set_step ( int  step)
inline

Set the dimension's step.

Parameters
[in]stepThe new step

Definition at line 110 of file Window.h.

111  {
112  _step = step;
113  }
constexpr int step() const
Return the step of the dimension.
Definition: Window.h:102

References Window::Dimension::step().

◆ start()

constexpr int start ( ) const
inline

Return the start of the dimension.

Definition at line 92 of file Window.h.

93  {
94  return _start;
95  }

Referenced by Window::adjust(), arm_compute::colorconvert_iyuv_to_nv12(), arm_compute::colorconvert_iyuv_to_rgb(), arm_compute::colorconvert_iyuv_to_yuv4(), arm_compute::colorconvert_nv12_to_iyuv(), arm_compute::colorconvert_nv12_to_rgb(), arm_compute::colorconvert_nv12_to_yuv4(), arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), CLElementWiseUnaryLayerKernel::configure(), CLDequantizationLayerKernel::configure(), CLCopyKernel::configure(), CLQuantizationLayerKernel::configure(), CLTileKernel::configure(), CLCropKernel::configure(), CLStridedSliceKernel::configure(), arm_compute::enqueue(), arm_compute::error_on_unconfigured_kernel(), ICLKernel::gws_from_window(), WindowIterator< L >::iterate_3D(), arm_compute::operator<<(), NEGEMMInterleavedWrapper::prepare(), CLHistogramKernel::run(), CLHOGOrientationBinningKernel::run(), NEMemsetKernel::run(), NEHOGOrientationBinningKernel::run(), NEGEMMMatrixAccumulateBiasesKernel::run(), CLChannelExtractKernel::run(), GCPoolingLayerKernel::run(), CLPoolingLayerKernel::run(), NEROIPoolingLayerKernel::run(), CLChannelCombineKernel::run(), NEFlattenLayerKernel::run(), NEPoolingLayerKernel::run(), CLReductionOperationKernel::run(), CLCropKernel::run(), NEMinMaxLayerKernel::run(), NEGEMMLowpMatrixMultiplyKernel::run(), CLColorConvertKernel::run(), CLHistogramBorderKernel::run(), NEWinogradLayerTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run(), arm_compute::run_reverse(), Window::scale(), Window::shift(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), and AccessWindowRectangle::update_window_if_needed().

◆ step()

constexpr int step ( ) const
inline

Return the step of the dimension.

Definition at line 102 of file Window.h.

103  {
104  return _step;
105  }

Referenced by Window::adjust(), arm_compute::colorconvert_iyuv_to_nv12(), arm_compute::colorconvert_iyuv_to_rgb(), arm_compute::colorconvert_iyuv_to_yuv4(), arm_compute::colorconvert_nv12_to_iyuv(), arm_compute::colorconvert_nv12_to_rgb(), arm_compute::colorconvert_nv12_to_yuv4(), arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), AccessWindowTranspose::compute_valid_region(), AccessWindowRectangle::compute_valid_region(), arm_compute::enqueue(), arm_compute::error_on_unconfigured_kernel(), WindowIterator< L >::iterate_3D(), arm_compute::operator<<(), CLHistogramKernel::run(), GCDepthwiseConvolutionLayer3x3Kernel::run(), NEGaussianPyramidHorKernel::run(), NEGEMMMatrixAccumulateBiasesKernel::run(), GCDirectConvolutionLayerKernel< kernel_size >::run(), CLChannelExtractKernel::run(), CLDepthwiseConvolutionLayer3x3NCHWKernel::run(), CLChannelCombineKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLReductionOperationKernel::run(), CLCropKernel::run(), CLColorConvertKernel::run(), CLGaussianPyramidVertKernel::run(), NEGaussianPyramidVertKernel::run(), Window::scale(), Window::Dimension::set_step(), Window::shift(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), CLMemsetKernel::validate(), and CLCropKernel::validate().


The documentation for this class was generated from the following file: