webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
copyimage.h
Go to the documentation of this file.
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 IMAGEUTIL_COPYIMAGE_H_
10 #define IMAGEUTIL_COPYIMAGE_H_
11 
12 #include "common/Color.h"
13 
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, typename destType, typename colorDataType>
28 void CopyPixel(const uint8_t *source, uint8_t *dest);
29 
31 
32 } // namespace angle
33 
34 #include "copyimage.inl"
35 
36 #endif // IMAGEUTIL_COPYIMAGE_H_
void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest)
Definition: copyimage.cpp:14
GLsizei GLsizei GLchar * source
Definition: gl2.h:451
dest
Definition: upload.py:394
Definition: Platform.h:33
void WriteColor(const uint8_t *source, uint8_t *dest)
Definition: copyimage.inl:20
unsigned char uint8_t
Definition: ptypes.h:89
void ReadColor(const uint8_t *source, uint8_t *dest)
Definition: copyimage.inl:13
void CopyPixel(const uint8_t *source, uint8_t *dest)
Definition: copyimage.inl:27