Edit

kc3-lang/angle/src/image_util/storeimage.h

Branch :

  • Show log

    Commit

  • Author : Constantine Shablya
    Date : 2022-11-09 06:44:06
    Hash : e975f9dc
    Message : Capture/Replay: handle paletted textures Add a method for recompressing paletted textures on capture. Bug: angleproject:7710 Change-Id: I11af0c1cd7c3b63850c5daf96eafcd3efce65f16 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4178311 Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com>

  • src/image_util/storeimage.h
  • //
    // 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.h: Defines image storing functions
    
    #ifndef IMAGEUTIL_STOREIMAGE_H_
    #define IMAGEUTIL_STOREIMAGE_H_
    
    #include <stddef.h>
    #include <stdint.h>
    #include <memory>
    
    namespace angle
    {
    
    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 priv
    
    }  // namespace angle
    
    #endif