chromium/third_party/angle/src/image_util/storeimage_paletted.cpp

//
// Copyright 2022 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// storeimage_paletted.cpp: Encodes GL_PALETTE_* textures.

#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)
{}

}  // namespace

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

}  // namespace angle