#include "image_util/loadimage.h"
#include <type_traits>
#include "common/mathutil.h"
#include "image_util/imageformats.h"
namespace angle
{
namespace
{
template <typename T>
R8G8B8A8 ReadColor(const T *src)
{ … }
size_t DecodeIndexIntoPalette(const uint8_t *row, size_t i, uint32_t indexBits)
{ … }
R8G8B8A8 DecodeColor(const uint8_t *src,
uint32_t redBlueBits,
uint32_t greenBits,
uint32_t alphaBits)
{ … }
}
void LoadPalettedToRGBA8Impl(const ImageLoadContext &context,
size_t width,
size_t height,
size_t depth,
uint32_t indexBits,
uint32_t redBlueBits,
uint32_t greenBits,
uint32_t alphaBits,
const uint8_t *input,
size_t inputRowPitch,
size_t inputDepthPitch,
uint8_t *output,
size_t outputRowPitch,
size_t outputDepthPitch)
{ … }
}