webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Source
ThirdParty
ANGLE
src
image_util
generatemip.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2002-2015 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.inl
"
33
34
#endif // IMAGEUTIL_GENERATEMIP_H_
angle::GenerateMip
void GenerateMip(size_t sourceWidth, size_t sourceHeight, size_t sourceDepth, const uint8_t *sourceData, size_t sourceRowPitch, size_t sourceDepthPitch, uint8_t *destData, size_t destRowPitch, size_t destDepthPitch)
Definition:
generatemip.inl:253
angle
Definition:
Platform.h:33
generatemip.inl
uint8_t
unsigned char uint8_t
Definition:
ptypes.h:89
stdint.h
Generated by
1.8.13