#include <unordered_map>
#include "image_util/storeimage.h"
#include <type_traits>
#include "common/mathutil.h"
#include "image_util/imageformats.h"
namespace angle
{
namespace
{
template <typename T>
inline T *OffsetDataPointer(uint8_t *data, size_t y, size_t z, size_t rowPitch, size_t depthPitch)
{ … }
template <typename T>
inline const T *OffsetDataPointer(const uint8_t *data,
size_t y,
size_t z,
size_t rowPitch,
size_t depthPitch)
{ … }
void EncodeColor(R8G8B8A8 rgba,
uint32_t redBlueBits,
uint32_t greenBits,
uint32_t alphaBits,
void *dst)
{ … }
uint32_t R8G8B8A8Key(R8G8B8A8 rgba)
{ … }
}
void StoreRGBA8ToPalettedImpl(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)
{ … }
}