ARM Compute Library
17.04
|
Iterator updated by execute_window_loop for each window element. More...
#include <Helpers.h>
Public Member Functions | |
constexpr | Iterator () |
Default constructor to create an empty iterator. More... | |
Iterator (const ITensor *tensor, const Window &window) | |
Create a container iterator for the metadata and allocation contained in the ITensor. More... | |
void | increment (size_t dimension) |
Increment the iterator along the specified dimension of the step value associated to the dimension. More... | |
constexpr int | offset () const |
Return the offset in bytes from the first element to the current position of the iterator. More... | |
constexpr uint8_t * | ptr () const |
Return a pointer to the current pixel. More... | |
void | reset (size_t dimension) |
Move the iterator back to the beginning of the specified dimension. More... | |
Iterator updated by execute_window_loop for each window element.
constexpr Iterator | ( | ) |
Default constructor to create an empty iterator.
Create a container iterator for the metadata and allocation contained in the ITensor.
[in] | tensor | The tensor to associate to the iterator. |
[in] | window | The window which will be used to iterate over the tensor. |
void increment | ( | size_t | dimension | ) |
Increment the iterator along the specified dimension of the step value associated to the dimension.
[in] | dimension | Dimension to increment |
constexpr int offset | ( | ) | const |
Return the offset in bytes from the first element to the current position of the iterator.
constexpr uint8_t* ptr | ( | ) | const |
Return a pointer to the current pixel.
Referenced by arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_rgb_to_rgbx(), arm_compute::colorconvert_rgb_to_yuv4(), arm_compute::colorconvert_rgbx_to_rgb(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), arm_compute::colorconvert_yuyv_to_rgb(), PPMLoader::fill_image(), main_neon_copy_objects(), and test_helpers::save_to_ppm().
void reset | ( | size_t | dimension | ) |
Move the iterator back to the beginning of the specified dimension.
[in] | dimension | Dimension to reset |