1 // 2 // Copyright 2013 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 // 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 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); 32 33 void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest); 34 35 } // namespace angle 36 37 #include "copyimage.inc" 38 39 #endif // IMAGEUTIL_COPYIMAGE_H_ 40