blob: aa5f668c89357b94bd07947e6dcdabc1e3b53df8 [file] [log] [blame]
David Ghandeharib1536522017-05-24 00:01:15 -07001//
Kaido Kert612c0202020-01-22 10:28:42 -08002// Copyright 2013 The ANGLE Project Authors. All rights reserved.
David Ghandeharib1536522017-05-24 00:01:15 -07003// 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
18namespace angle
19{
20
21template <typename sourceType, typename colorDataType>
22void ReadColor(const uint8_t *source, uint8_t *dest);
23
24template <typename destType, typename colorDataType>
25void WriteColor(const uint8_t *source, uint8_t *dest);
26
Kaido Kert612c0202020-01-22 10:28:42 -080027template <typename SourceType>
28void ReadDepthStencil(const uint8_t *source, uint8_t *dest);
29
30template <typename DestType>
31void WriteDepthStencil(const uint8_t *source, uint8_t *dest);
David Ghandeharib1536522017-05-24 00:01:15 -070032
33void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest);
34
35} // namespace angle
36
Kaido Kert612c0202020-01-22 10:28:42 -080037#include "copyimage.inc"
David Ghandeharib1536522017-05-24 00:01:15 -070038
39#endif // IMAGEUTIL_COPYIMAGE_H_