small fixes.
This commit is contained in:
parent
44e6560111
commit
dbe3546690
@ -24,7 +24,6 @@
|
||||
#ifndef NV_IMAGE_PIXELFORMAT_H
|
||||
#define NV_IMAGE_PIXELFORMAT_H
|
||||
|
||||
|
||||
#include <nvimage/nvimage.h>
|
||||
|
||||
|
||||
@ -53,7 +52,7 @@ namespace nv
|
||||
}
|
||||
|
||||
// Get pixel component shift and size given its mask.
|
||||
static void maskShiftAndSize(uint mask, uint * shift, uint * size)
|
||||
inline void maskShiftAndSize(uint mask, uint * shift, uint * size)
|
||||
{
|
||||
if (!mask)
|
||||
{
|
||||
|
@ -45,12 +45,12 @@ namespace
|
||||
return ((p + 3) / 4) * 4;
|
||||
}
|
||||
|
||||
static void convert_to_a8r8g8b8(const void * src, void * dst, uint w)
|
||||
inline void convert_to_a8r8g8b8(const void * src, void * dst, uint w)
|
||||
{
|
||||
memcpy(dst, src, 4 * w);
|
||||
}
|
||||
|
||||
static void convert_to_x8r8g8b8(const void * src, void * dst, uint w)
|
||||
inline void convert_to_x8r8g8b8(const void * src, void * dst, uint w)
|
||||
{
|
||||
memcpy(dst, src, 4 * w);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user