| 1699 | } |
| 1700 | |
| 1701 | void load( ImageTargetRef target ) { |
| 1702 | // get a pointer to the ImageSource function appropriate for handling our data configuration |
| 1703 | ImageSource::RowFunc func = setupRowFunc( target ); |
| 1704 | |
| 1705 | const uint8_t *data = mData.get(); |
| 1706 | if( mRowBytes < 0 ) |
| 1707 | data = data + ( mHeight - 1 ) * (-mRowBytes); |
| 1708 | for( int32_t row = 0; row < mHeight; ++row ) { |
| 1709 | ((*this).*func)( target, row, data ); |
| 1710 | data += mRowBytes; |
| 1711 | } |
| 1712 | } |
| 1713 | |
| 1714 | std::unique_ptr<uint8_t[]> mData; |
| 1715 | int32_t mRowBytes; |
no test coverage detected