|
Beatmup
|
Scans a storageview in RAM for further computations on CPU. More...
#include <storage.h>
Public Member Functions | |
| Scanner () | |
| Scanner (Storage::View &view) | |
| ~Scanner () | |
| void | bind (Storage::View &view) |
| Binds a view to the scanner. More... | |
| void | unbind () |
| Unbinds the current view from the scanner. More... | |
| void | move (int x, int y) |
| Sets the pointer to a specific spatial position. More... | |
| Scanner & | operator++ () |
| Advances pointer by one pixel in scanline order (along the horizontal axis). More... | |
| template<typename T > | |
| void | fill (T begin, T limit) |
| Extracts the content of feature maps at the current position. More... | |
Protected Types | |
| typedef uint8_t | sample_t[4] |
| four unsigned 8-bit scalars More... | |
Protected Attributes | |
| Storage::View * | view |
| a view to sample More... | |
| sample_t ** | ptr |
| pointers at current position per channel More... | |
| size_t | ptrSize |
| sample_t * | data |
| the texture data pointer More... | |
Scans a storageview in RAM for further computations on CPU.
A piece of an ancient civilization technology used when neural networks were still inferred with CPU.
|
protected |
|
inline |
Definition at line 475 of file storage.h.
|
inline |
Definition at line 476 of file storage.h.
| Storage::Scanner::~Scanner | ( | ) |
Definition at line 632 of file storage.cpp.
| void Storage::Scanner::bind | ( | Storage::View & | view | ) |
Binds a view to the scanner.
Definition at line 638 of file storage.cpp.
| void Storage::Scanner::unbind | ( | ) |
Unbinds the current view from the scanner.
Definition at line 657 of file storage.cpp.
| void Storage::Scanner::move | ( | int | x, |
| int | y | ||
| ) |
Sets the pointer to a specific spatial position.
| [in] | x | horizontal position in pixels |
| [in] | y | vertical position in pixels |
Definition at line 663 of file storage.cpp.
| Storage::Scanner & Storage::Scanner::operator++ | ( | ) |
Advances pointer by one pixel in scanline order (along the horizontal axis).
Definition at line 676 of file storage.cpp.
|
inline |
Extracts the content of feature maps at the current position.
Accepts iterators of floating point STL containers, e.g. std::vector<float>::begin() and std::vector<float>::end().
| [in] | begin | Iterator to copy to |
| [in] | limit | Limiting iterator position. If reached, no more samples are copied. |
Definition at line 508 of file storage.h.
|
protected |
|
protected |
|
protected |
|
protected |