• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2022 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // storeimage.h: Defines image storing functions
8 
9 #ifndef IMAGEUTIL_STOREIMAGE_H_
10 #define IMAGEUTIL_STOREIMAGE_H_
11 
12 #include <stddef.h>
13 #include <stdint.h>
14 #include <memory>
15 
16 namespace angle
17 {
18 
19 void StoreRGBA8ToPalettedImpl(size_t width,
20                               size_t height,
21                               size_t depth,
22                               uint32_t indexBits,
23                               uint32_t redBlueBits,
24                               uint32_t greenBits,
25                               uint32_t alphaBits,
26                               const uint8_t *input,
27                               size_t inputRowPitch,
28                               size_t inputDepthPitch,
29                               uint8_t *output,
30                               size_t outputRowPitch,
31                               size_t outputDepthPitch);  // namespace priv
32 
33 }  // namespace angle
34 
35 #endif
36