Home | History | Annotate | Download | only in renderer
      1 //
      2 // Copyright (c) 2013-2014 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 LIBGLESV2_RENDERER_COPYIMAGE_H_
     10 #define LIBGLESV2_RENDERER_COPYIMAGE_H_
     11 
     12 #include "common/mathutil.h"
     13 #include "libGLESv2/angletypes.h"
     14 
     15 #include <cstdint>
     16 
     17 namespace rx
     18 {
     19 
     20 template <typename sourceType, typename colorDataType>
     21 void ReadColor(const uint8_t *source, uint8_t *dest);
     22 
     23 template <typename destType, typename colorDataType>
     24 void WriteColor(const uint8_t *source, uint8_t *dest);
     25 
     26 template <typename sourceType, typename destType, typename colorDataType>
     27 void CopyPixel(const uint8_t *source, uint8_t *dest);
     28 
     29 void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest);
     30 
     31 }
     32 
     33 #include "copyimage.inl"
     34 
     35 #endif // LIBGLESV2_RENDERER_COPYIMAGE_H_
     36