git subrepo pull --force deps/lightrec
[pcsx_rearmed.git] / deps / libretro-common / include / gfx / scaler / pixconv.h
CommitLineData
3719602c
PC
1/* Copyright (C) 2010-2020 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
30RETRO_BEGIN_DECLS
31
32void conv_0rgb1555_argb8888(void *output, const void *input,
33 int width, int height,
34 int out_stride, int in_stride);
35
36void conv_0rgb1555_rgb565(void *output, const void *input,
37 int width, int height,
38 int out_stride, int in_stride);
39
40void conv_rgb565_0rgb1555(void *output, const void *input,
41 int width, int height,
42 int out_stride, int in_stride);
43
44void conv_rgb565_abgr8888(void *output, const void *input,
45 int width, int height,
46 int out_stride, int in_stride);
47
48void conv_rgb565_argb8888(void *output, const void *input,
49 int width, int height,
50 int out_stride, int in_stride);
51
52void conv_rgba4444_argb8888(void *output, const void *input,
53 int width, int height,
54 int out_stride, int in_stride);
55
56void conv_rgba4444_rgb565(void *output, const void *input,
57 int width, int height,
58 int out_stride, int in_stride);
59
60void conv_bgr24_argb8888(void *output, const void *input,
61 int width, int height,
62 int out_stride, int in_stride);
63
64void conv_bgr24_rgb565(void *output, const void *input,
65 int width, int height,
66 int out_stride, int in_stride);
67
68void conv_argb8888_0rgb1555(void *output, const void *input,
69 int width, int height,
70 int out_stride, int in_stride);
71
72void conv_argb8888_rgba4444(void *output_, const void *input_,
73 int width, int height,
74 int out_stride, int in_stride);
75
76void conv_argb8888_rgb565(void *output, const void *input,
77 int width, int height,
78 int out_stride, int in_stride);
79
80void conv_argb8888_bgr24(void *output, const void *input,
81 int width, int height,
82 int out_stride, int in_stride);
83
84void conv_abgr8888_bgr24(void *output, const void *input,
85 int width, int height,
86 int out_stride, int in_stride);
87
88void conv_argb8888_abgr8888(void *output, const void *input,
89 int width, int height,
90 int out_stride, int in_stride);
91
92void conv_0rgb1555_bgr24(void *output, const void *input,
93 int width, int height,
94 int out_stride, int in_stride);
95
96void conv_rgb565_bgr24(void *output, const void *input,
97 int width, int height,
98 int out_stride, int in_stride);
99
100void conv_yuyv_argb8888(void *output, const void *input,
101 int width, int height,
102 int out_stride, int in_stride);
103
104void conv_copy(void *output, const void *input,
105 int width, int height,
106 int out_stride, int in_stride);
107
108RETRO_END_DECLS
109
110#endif