David Ghandehari | b153652 | 2017-05-24 00:01:15 -0700 | [diff] [blame] | 1 | // |
Kaido Kert | 612c020 | 2020-01-22 10:28:42 -0800 | [diff] [blame] | 2 | // Copyright 2013 The ANGLE Project Authors. All rights reserved. |
David Ghandehari | b153652 | 2017-05-24 00:01:15 -0700 | [diff] [blame] | 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 | // copyimage.h: Defines image copying functions |
| 8 | |
| 9 | #ifndef IMAGEUTIL_COPYIMAGE_H_ |
| 10 | #define IMAGEUTIL_COPYIMAGE_H_ |
| 11 | |
| 12 | #include "common/Color.h" |
| 13 | |
| 14 | #include "image_util/imageformats.h" |
| 15 | |
| 16 | #include <stdint.h> |
| 17 | |
| 18 | namespace angle |
| 19 | { |
| 20 | |
| 21 | template <typename sourceType, typename colorDataType> |
| 22 | void ReadColor(const uint8_t *source, uint8_t *dest); |
| 23 | |
| 24 | template <typename destType, typename colorDataType> |
| 25 | void WriteColor(const uint8_t *source, uint8_t *dest); |
| 26 | |
Kaido Kert | 612c020 | 2020-01-22 10:28:42 -0800 | [diff] [blame] | 27 | template <typename SourceType> |
| 28 | void ReadDepthStencil(const uint8_t *source, uint8_t *dest); |
| 29 | |
| 30 | template <typename DestType> |
| 31 | void WriteDepthStencil(const uint8_t *source, uint8_t *dest); |
David Ghandehari | b153652 | 2017-05-24 00:01:15 -0700 | [diff] [blame] | 32 | |
| 33 | void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest); |
| 34 | |
| 35 | } // namespace angle |
| 36 | |
Kaido Kert | 612c020 | 2020-01-22 10:28:42 -0800 | [diff] [blame] | 37 | #include "copyimage.inc" |
David Ghandehari | b153652 | 2017-05-24 00:01:15 -0700 | [diff] [blame] | 38 | |
| 39 | #endif // IMAGEUTIL_COPYIMAGE_H_ |