| 19 | namespace |
| 20 | { |
| 21 | inline unsigned int GetLevelSize(unsigned int size, UInt8 level) |
| 22 | { |
| 23 | if (size == 0) // Possible dans le cas d'une image invalide |
| 24 | return 0; |
| 25 | |
| 26 | return std::max(size >> level, 1U); |
| 27 | } |
| 28 | |
| 29 | inline UInt8* GetPixelPtr(UInt8* base, UInt8 bpp, unsigned int x, unsigned int y, unsigned int z, unsigned int width, unsigned int height) |
| 30 | { |
no outgoing calls
no test coverage detected