TotalByteSize returns total number of bytes required to represent all layers of images in Host memory. TODO only works for known formats -- need to add more as needed.
()
| 304 | // images in Host memory. TODO only works |
| 305 | // for known formats -- need to add more as needed. |
| 306 | func (im *ImageFormat) TotalByteSize() int { |
| 307 | return im.LayerByteSize() * im.Layers |
| 308 | } |
| 309 | |
| 310 | // Stride returns number of bytes per image row. TODO only works |
| 311 | // for known formats -- need to add more as needed. |
no test coverage detected