ARM Compute Library
17.03.1
|
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... | |
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 78 of file Window.h.
References Window::Dimension::operator=().
|
inline |
Return the end of the dimension.
Definition at line 90 of file Window.h.
Referenced by 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(), Window::scale(), and Window::shift().
Default assignment operator to allow dimensions to be copied.
Referenced by Window::Dimension::Dimension().
|
inline |
Set the dimension's step.
[in] | step | The new step |
Definition at line 103 of file Window.h.
References Window::operator[](), and Window::Dimension::step().
|
inline |
Return the start of the dimension.
Definition at line 85 of file Window.h.
Referenced by 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(), and Window::shift().
|
inline |
Return the step of the dimension.
Definition at line 95 of file Window.h.
Referenced by 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(), Window::scale(), Window::Dimension::set_step(), Window::shift(), and Window::z().