tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

copyimage.h (1206B)


      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,
     34                      int srcXAxisPitch,
     35                      int srcYAxisPitch,
     36                      uint8_t *dest,
     37                      int destXAxisPitch,
     38                      int destYAxisPitch,
     39                      int destWidth,
     40                      int destHeight);
     41 
     42 }  // namespace angle
     43 
     44 #include "copyimage.inc"
     45 
     46 #endif  // IMAGEUTIL_COPYIMAGE_H_