tor-browser

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

generatemip.h (970B)


      1 //
      2 // Copyright 2002 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 // generatemip.h: Defines the GenerateMip function, templated on the format
      8 // type of the image for which mip levels are being generated.
      9 
     10 #ifndef IMAGEUTIL_GENERATEMIP_H_
     11 #define IMAGEUTIL_GENERATEMIP_H_
     12 
     13 #include <stddef.h>
     14 #include <stdint.h>
     15 
     16 namespace angle
     17 {
     18 
     19 template <typename T>
     20 inline void GenerateMip(size_t sourceWidth,
     21                        size_t sourceHeight,
     22                        size_t sourceDepth,
     23                        const uint8_t *sourceData,
     24                        size_t sourceRowPitch,
     25                        size_t sourceDepthPitch,
     26                        uint8_t *destData,
     27                        size_t destRowPitch,
     28                        size_t destDepthPitch);
     29 
     30 }  // namespace angle
     31 
     32 #include "generatemip.inc"
     33 
     34 #endif  // IMAGEUTIL_GENERATEMIP_H_