///////////////////////////////////////////////////////
| 701 | |
| 702 | //////////////////////////////////////////////////////////// |
| 703 | const std::uint8_t* Image::getPixelsPtr() const |
| 704 | { |
| 705 | if (!m_pixels.empty()) |
| 706 | { |
| 707 | return m_pixels.data(); |
| 708 | } |
| 709 | |
| 710 | err() << "Trying to access the pixels of an empty image" << std::endl; |
| 711 | return nullptr; |
| 712 | } |
| 713 | |
| 714 | |
| 715 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected