21.08
|
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... | |
Dimension & | operator= (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... | |
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()) { ... }
|
inline |
Constructor, by default creates a dimension of 1.
[in] | start | Start of the dimension |
[in] | end | End of the dimension |
[in] | step | Step between two elements of the dimension when iterating. |
Definition at line 87 of file Window.h.
References Window::Dimension::operator=().
|
inline |
Return the end of the dimension.
Definition at line 99 of file Window.h.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::cpu::add_same_neon(), 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(), ClCopyKernel::configure(), ClFillKernel::configure(), CLStridedSliceKernel::configure(), ClCropKernel::configure(), NEQLSTMLayerNormalizationKernel::configure(), NENormalizationLayerKernel::configure(), NERemapKernel::configure(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), arm_compute::cpu::fp32_neon_activation(), ICLKernel::gws_from_window(), IKernel::is_window_configured(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::neon_logits_1d_max(), arm_compute::operator<<(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), NEROIPoolingLayerKernel::run(), NEMinMaxLayerKernel::run(), NEROIAlignLayerKernel::run(), CpuFillKernel::run_op(), CpuConvertQuantizedSignednessKernel::run_op(), CpuCopyKernel::run_op(), CpuConcatenateWidthKernel::run_op(), CpuConcatenateHeightKernel::run_op(), CpuPool2dKernel::run_op(), ClPool2dKernel::run_op(), CpuFloorKernel::run_op(), CpuGemmLowpMatrixMultiplyKernel::run_op(), CpuCastKernel::run_op(), CpuGemmInterleave4x4Kernel::run_op(), CpuWinogradConv2dTransformInputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), CpuWinogradConv2dTransformOutputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), CpuWinogradConv2dTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), arm_compute::run_reverse(), Window::scale(), Window::Dimension::set_end(), Window::shift(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), arm_compute::cpu::sub_same_neon(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), and CpuQuantizeKernel::validate().
Default assignment operator to allow dimensions to be copied.
Referenced by Window::Dimension::Dimension().
|
inline |
Set the dimension's end.
[in] | end | The new end |
Definition at line 120 of file Window.h.
References Window::Dimension::end(), and Window::operator[]().
|
inline |
Set the dimension's step.
[in] | step | The new step |
Definition at line 112 of file Window.h.
References Window::Dimension::step().
|
inline |
Return the start of the dimension.
Definition at line 94 of file Window.h.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::cpu::add_same_neon(), 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(), ClCopyKernel::configure(), ClFillKernel::configure(), CLStridedSliceKernel::configure(), ClCropKernel::configure(), NEQLSTMLayerNormalizationKernel::configure(), NENormalizationLayerKernel::configure(), NERemapKernel::configure(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), arm_compute::cpu::fp32_neon_activation(), ICLKernel::gws_from_window(), IKernel::is_window_configured(), arm_compute::cpu::nearest_neon_scale(), arm_compute::cpu::neon_logits_1d_max(), arm_compute::operator<<(), arm_compute::cpu::poolingMxN_fp32_neon_nhwc(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), NEROIPoolingLayerKernel::run(), NEMinMaxLayerKernel::run(), NEROIAlignLayerKernel::run(), CpuFillKernel::run_op(), CpuConvertQuantizedSignednessKernel::run_op(), CpuConcatenateHeightKernel::run_op(), CpuConcatenateWidthKernel::run_op(), CpuPool2dKernel::run_op(), ClPool2dKernel::run_op(), CpuFloorKernel::run_op(), CpuGemmLowpMatrixMultiplyKernel::run_op(), CpuCastKernel::run_op(), CpuGemmInterleave4x4Kernel::run_op(), CpuWinogradConv2dTransformInputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), CpuWinogradConv2dTransformOutputKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), CpuWinogradConv2dTransformWeightsKernel< T, OutputTileRows, OutputTileCols, KernelRows, KernelCols >::run_op(), arm_compute::run_reverse(), Window::scale(), Window::shift(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), arm_compute::cpu::sub_same_neon(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), and CpuQuantizeKernel::validate().
|
inline |
Return the step of the dimension.
Definition at line 104 of file Window.h.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::cpu::add_same_neon(), 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::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), ICLKernel::gws_from_window(), arm_compute::operator<<(), CLDepthwiseConvolutionLayerNativeKernel::run(), ClCropKernel::run_op(), ClDirectConv2dKernel::run_op(), Window::scale(), Window::Dimension::set_step(), Window::shift(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), arm_compute::cpu::sub_same_neon(), AccessWindowTranspose::update_padding_if_needed(), AccessWindowRectangle::update_padding_if_needed(), AccessWindowTranspose::update_window_if_needed(), AccessWindowRectangle::update_window_if_needed(), ClFillKernel::validate(), ClCropKernel::validate(), and Window::z().