coastline 0.0.4
Loading...
Searching...
No Matches
texturesampling.h
Go to the documentation of this file.
1#ifndef COASTLINE_TEXTURE_SAMPLING_H
2#define COASTLINE_TEXTURE_SAMPLING_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
20void SampleTexturePixelBilinear(unsigned char *pDest,
21 const unsigned char *pTopLeft,
22 const unsigned char *pTopRight,
23 const unsigned char *pBottomLeft,
24 const unsigned char *pBottomRight,
25 float x,
26 float y);
27
40void BilinearInterpolate8bpp(unsigned char *destination,
41 const unsigned char *topLeft,
42 const unsigned char *topRight,
43 const unsigned char *bottomLeft,
44 const unsigned char *bottomRight,
45 float x,
46 float y);
47
52void BilinearInterpolateArgb1555(unsigned char *destination,
53 const unsigned char *topLeft,
54 const unsigned char *topRight,
55 const unsigned char *bottomLeft,
56 const unsigned char *bottomRight,
57 float x,
58 float y);
59
64void BilinearInterpolateArgb4444(unsigned char *destination,
65 const unsigned char *topLeft,
66 const unsigned char *topRight,
67 const unsigned char *bottomLeft,
68 const unsigned char *bottomRight,
69 float x,
70 float y);
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif
void SampleTexturePixelBilinear(unsigned char *pDest, const unsigned char *pTopLeft, const unsigned char *pTopRight, const unsigned char *pBottomLeft, const unsigned char *pBottomRight, float x, float y)
Bilinearly sample four decoded four-byte pixels.
void BilinearInterpolateArgb4444(unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
Bilinearly sample four packed ARGB4444 pixels, rounding and clamping each channel.
void BilinearInterpolate8bpp(unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
Bilinearly sample four texels of one byte, rounding and clamping the result.
void BilinearInterpolateArgb1555(unsigned char *destination, const unsigned char *topLeft, const unsigned char *topRight, const unsigned char *bottomLeft, const unsigned char *bottomRight, float x, float y)
Bilinearly sample four packed ARGB1555 pixels, rounding and clamping each channel.