RetroArch
pixconv.h
Go to the documentation of this file.
1 /* Copyright (C) 2010-2018 The RetroArch team
2  *
3  * ---------------------------------------------------------------------------------------
4  * The following license statement only applies to this file (pixconv.h).
5  * ---------------------------------------------------------------------------------------
6  *
7  * Permission is hereby granted, free of charge,
8  * to any person obtaining a copy of this software and associated documentation files (the "Software"),
9  * to deal in the Software without restriction, including without limitation the rights to
10  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
11  * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef __LIBRETRO_SDK_SCALER_PIXCONV_H__
24 #define __LIBRETRO_SDK_SCALER_PIXCONV_H__
25 
26 #include <clamping.h>
27 
28 #include <retro_common_api.h>
29 
31 
32 
33 void conv_0rgb1555_argb8888(void *output, const void *input,
34  int width, int height,
35  int out_stride, int in_stride);
36 
37 void conv_0rgb1555_rgb565(void *output, const void *input,
38  int width, int height,
39  int out_stride, int in_stride);
40 
41 void conv_rgb565_0rgb1555(void *output, const void *input,
42  int width, int height,
43  int out_stride, int in_stride);
44 
45 void conv_rgb565_abgr8888(void *output, const void *input,
46  int width, int height,
47  int out_stride, int in_stride);
48 
49 void conv_rgb565_argb8888(void *output, const void *input,
50  int width, int height,
51  int out_stride, int in_stride);
52 
53 void conv_rgba4444_argb8888(void *output, const void *input,
54  int width, int height,
55  int out_stride, int in_stride);
56 
57 void conv_rgba4444_rgb565(void *output, const void *input,
58  int width, int height,
59  int out_stride, int in_stride);
60 
61 void conv_bgr24_argb8888(void *output, const void *input,
62  int width, int height,
63  int out_stride, int in_stride);
64 
65 void conv_argb8888_0rgb1555(void *output, const void *input,
66  int width, int height,
67  int out_stride, int in_stride);
68 
69 void conv_argb8888_rgba4444(void *output_, const void *input_,
70  int width, int height,
71  int out_stride, int in_stride);
72 
73 void conv_argb8888_rgb565(void *output, const void *input,
74  int width, int height,
75  int out_stride, int in_stride);
76 
77 void conv_argb8888_bgr24(void *output, const void *input,
78  int width, int height,
79  int out_stride, int in_stride);
80 
81 void conv_argb8888_abgr8888(void *output, const void *input,
82  int width, int height,
83  int out_stride, int in_stride);
84 
85 void conv_0rgb1555_bgr24(void *output, const void *input,
86  int width, int height,
87  int out_stride, int in_stride);
88 
89 void conv_rgb565_bgr24(void *output, const void *input,
90  int width, int height,
91  int out_stride, int in_stride);
92 
93 void conv_yuyv_argb8888(void *output, const void *input,
94  int width, int height,
95  int out_stride, int in_stride);
96 
97 void conv_copy(void *output, const void *input,
98  int width, int height,
99  int out_stride, int in_stride);
100 
102 
103 #endif
104 
void conv_0rgb1555_bgr24(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:442
void conv_rgba4444_rgb565(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:372
void conv_rgb565_argb8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:189
void conv_rgb565_bgr24(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:528
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
GLenum GLenum GLenum input
Definition: glext.h:9938
void conv_argb8888_abgr8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:695
void conv_copy(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:860
void conv_rgb565_abgr8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:257
void conv_argb8888_0rgb1555(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:635
void conv_rgba4444_argb8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:344
RETRO_BEGIN_DECLS void conv_0rgb1555_argb8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:122
void conv_yuyv_argb8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:723
void conv_rgb565_0rgb1555(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:40
void conv_argb8888_bgr24(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:657
void conv_bgr24_argb8888(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:613
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
std::string output
Definition: Config.FromFile.cpp:44
GLint GLint GLsizei width
Definition: glext.h:6293
void conv_0rgb1555_rgb565(void *output, const void *input, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:78
void conv_argb8888_rgb565(void *output, const void *input, int width, int height, int out_stride, int in_stride)
void conv_argb8888_rgba4444(void *output_, const void *input_, int width, int height, int out_stride, int in_stride)
Definition: pixconv.c:316
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293