* Helper function counting pitch in bytes with 16byte padding * @param bpp bytes per pixel * @param width number of pixel in row * @return pitch in bytes */
| 54 | * @return pitch in bytes |
| 55 | */ |
| 56 | inline int GetPitch(int bpp, int width) |
| 57 | { |
| 58 | return ((bpp/8) * width + 15) & ~0xF; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Helper function creating aligned buffer |
no outgoing calls
no test coverage detected