LayerByteSize returns number of bytes required to represent one layer of image in Host memory. TODO only works for known formats -- need to add more as needed.
()
| 297 | // image in Host memory. TODO only works |
| 298 | // for known formats -- need to add more as needed. |
| 299 | func (im *ImageFormat) LayerByteSize() int { |
| 300 | return im.BytesPerPixel() * im.Size.X * im.Size.Y |
| 301 | } |
| 302 | |
| 303 | // TotalByteSize returns total number of bytes required to represent all layers of |
| 304 | // images in Host memory. TODO only works |
no test coverage detected