|
Beatmup
|
Maps a 3D tensor onto a storage. More...
#include <storage.h>
Classes | |
| struct | Channel |
Public Member Functions | |
| View () | |
| View (View &&) | |
| View (const View &) | |
| View & | operator= (View &&) |
| View (Storage &storage) | |
| View (View &&view, const int firstChannel, const int numChannels) | |
| Creates a slice of another view. More... | |
| View (Storage &storage, const int shuffleStep) | |
| Creates a view by shuffling storage channels. More... | |
| Storage & | getStorage () |
| const Storage & | getStorage () const |
| InternalBitmap * | getImage (Context &ctx, GraphicPipeline &gpu, int channel) const |
| int | getNumberOfTextures () const |
| Returns total number of textures in the storage view. More... | |
| int | getChannelTextureNumber (int channel) const |
| Returns number of the texture containing a given channel. More... | |
| IntPoint | getChannelOrigin (int channel) const |
| Returns origin in pixels of a given channel within the texture containing it. More... | |
| int | getTextureWidth () const |
| Returns width in pixels of all the textures. More... | |
| int | getTextureHeight () const |
| Returns height in pixels of all the textures. More... | |
| IntPoint | getTextureSize () const |
| operator bool () const | |
Conversion operator to a boolean expression (true if the view is not empty). More... | |
| Size | getSize () const |
| IntPoint | getSpatialSize () const |
| Returns the spatial size (width and height) of the storage in pixels. More... | |
| int | getWidth () const |
| int | getHeight () const |
| int | getDepth () const |
Private Attributes | |
| std::vector< Channel > | channels |
| channels of the view More... | |
| std::vector< int > | textures |
| indices of textures in the storage More... | |
| Storage * | storage |
Friends | |
| class | Binder |
| class | Scanner |
| class | TextureHandler |
Maps a 3D tensor onto a storage.
Set of storage slices along the depth dimension.
| Storage::View::View | ( | View && | another | ) |
Definition at line 409 of file storage.cpp.
| Storage::View::View | ( | const View & | another | ) |
Definition at line 402 of file storage.cpp.
| Storage::View::View | ( | Storage & | storage | ) |
Definition at line 426 of file storage.cpp.
| Storage::View::View | ( | View && | view, |
| const int | firstChannel, | ||
| const int | numChannels | ||
| ) |
Creates a slice of another view.
| [in] | view | The input storage view |
| [in] | firstChannel | First view channel index in the storage |
| [in] | numChannels | Number of channels in the view |
Definition at line 441 of file storage.cpp.
| Storage::View::View | ( | Storage & | storage, |
| const int | shuffleStep | ||
| ) |
Creates a view by shuffling storage channels.
For shuffling step n, the view will contain the storage channel quads in the following order: 0, 1, 2, 3, 4n, 4n+1, 4n+2, 4n+3, 8n, 8n+1, 8n+2, 8n+3, ..., 4, 5, 6, 7, 4n+4, 4n+5, 4n+6, 4n+7, 8n+4, ...
| [in] | storage | The storage |
| [in] | shuffleStep | Shuffling step (n) |
Definition at line 469 of file storage.cpp.
| Storage::View & Storage::View::operator= | ( | View && | another | ) |
Definition at line 417 of file storage.cpp.
|
inline |
|
inline |
| InternalBitmap * Storage::View::getImage | ( | Context & | ctx, |
| GraphicPipeline & | gpu, | ||
| int | channel | ||
| ) | const |
Definition at line 491 of file storage.cpp.
|
inline |
| int Storage::View::getChannelTextureNumber | ( | int | channel | ) | const |
Returns number of the texture containing a given channel.
Definition at line 500 of file storage.cpp.
| IntPoint Storage::View::getChannelOrigin | ( | int | channel | ) | const |
Returns origin in pixels of a given channel within the texture containing it.
Definition at line 509 of file storage.cpp.
|
inline |
Returns width in pixels of all the textures.
Definition at line 370 of file storage.h.
|
inline |
Returns height in pixels of all the textures.
Definition at line 375 of file storage.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |