|
|
|
@ -39,10 +39,8 @@ namespace
|
|
|
|
|
|
|
|
|
|
inline uint computePitch(uint w, uint bitsize)
|
|
|
|
|
{
|
|
|
|
|
uint p = w * ((bitsize + 7) / 8);
|
|
|
|
|
|
|
|
|
|
// Align to 32 bits.
|
|
|
|
|
return ((p + 3) / 4) * 4;
|
|
|
|
|
// Align to 8 bits.
|
|
|
|
|
return w * ((bitsize + 7) / 8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline void convert_to_a8r8g8b8(const void * src, void * dst, uint w)
|
|
|
|
|