small fixes.

This commit is contained in:
castano 2007-10-10 23:59:08 +00:00
parent 3b839da44a
commit be0d19ab07
2 changed files with 3 additions and 4 deletions

View File

@ -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)
{

View File

@ -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);
}