author | hgs |
Fri, 30 Apr 2010 19:11:56 -0500 | |
changeset 19 | 24ed0baaf8e5 |
parent 16 | 8e837d1bf446 |
permissions | -rw-r--r-- |
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
* Image Scaling Functions (4 tap) |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* Copyright (c) 2005 David A. Schleef <ds@schleef.org> |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* All rights reserved. |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* Redistribution and use in source and binary forms, with or without |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* modification, are permitted provided that the following conditions |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* are met: |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* 1. Redistributions of source code must retain the above copyright |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* notice, this list of conditions and the following disclaimer. |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* 2. Redistributions in binary form must reproduce the above copyright |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* notice, this list of conditions and the following disclaimer in the |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* documentation and/or other materials provided with the distribution. |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
* POSSIBILITY OF SUCH DAMAGE. |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
*/ |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
|
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
#ifndef _VS_4TAP_H_ |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
#define _VS_4TAP_H_ |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
|
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
#include "vs_image.h" |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
|
16 | 33 |
#include <liboil/liboil.h> |
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
|
19 | 35 |
#ifdef __SYMBIAN32__ |
36 |
IMPORT_C |
|
37 |
#endif |
|
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
void vs_4tap_init (void); |
16 | 39 |
#ifdef __SYMBIAN32__ |
40 |
IMPORT_C |
|
41 |
#endif |
|
42 |
||
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
void vs_scanline_resample_4tap_Y (uint8_t *dest, uint8_t *src, |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
int n, int src_width, int *xacc, int increment); |
16 | 45 |
#ifdef __SYMBIAN32__ |
46 |
IMPORT_C |
|
47 |
#endif |
|
48 |
||
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
void vs_scanline_merge_4tap_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
16 | 51 |
#ifdef __SYMBIAN32__ |
52 |
IMPORT_C |
|
53 |
#endif |
|
54 |
||
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src, |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
uint8_t * tmpbuf); |
16 | 57 |
#ifdef __SYMBIAN32__ |
58 |
IMPORT_C |
|
59 |
#endif |
|
60 |
||
61 |
||
62 |
void vs_scanline_resample_4tap_RGBA (uint8_t *dest, uint8_t *src, |
|
63 |
int n, int src_width, int *xacc, int increment); |
|
64 |
#ifdef __SYMBIAN32__ |
|
65 |
IMPORT_C |
|
66 |
#endif |
|
67 |
||
68 |
void vs_scanline_merge_4tap_RGBA (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
69 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
70 |
#ifdef __SYMBIAN32__ |
|
71 |
IMPORT_C |
|
72 |
#endif |
|
73 |
||
74 |
void vs_image_scale_4tap_RGBA (const VSImage * dest, const VSImage * src, |
|
75 |
uint8_t * tmpbuf); |
|
76 |
#ifdef __SYMBIAN32__ |
|
77 |
IMPORT_C |
|
78 |
#endif |
|
79 |
||
80 |
||
81 |
void vs_scanline_resample_4tap_RGB (uint8_t *dest, uint8_t *src, |
|
82 |
int n, int src_width, int *xacc, int increment); |
|
83 |
#ifdef __SYMBIAN32__ |
|
84 |
IMPORT_C |
|
85 |
#endif |
|
86 |
||
87 |
void vs_scanline_merge_4tap_RGB (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
88 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
89 |
#ifdef __SYMBIAN32__ |
|
90 |
IMPORT_C |
|
91 |
#endif |
|
92 |
||
93 |
void vs_image_scale_4tap_RGB (const VSImage * dest, const VSImage * src, |
|
94 |
uint8_t * tmpbuf); |
|
95 |
#ifdef __SYMBIAN32__ |
|
96 |
IMPORT_C |
|
97 |
#endif |
|
98 |
||
99 |
||
100 |
void vs_scanline_resample_4tap_YUYV (uint8_t *dest, uint8_t *src, |
|
101 |
int n, int src_width, int *xacc, int increment); |
|
102 |
#ifdef __SYMBIAN32__ |
|
103 |
IMPORT_C |
|
104 |
#endif |
|
105 |
||
106 |
void vs_scanline_merge_4tap_YUYV (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
107 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
108 |
#ifdef __SYMBIAN32__ |
|
109 |
IMPORT_C |
|
110 |
#endif |
|
111 |
||
112 |
void vs_image_scale_4tap_YUYV (const VSImage * dest, const VSImage * src, |
|
113 |
uint8_t * tmpbuf); |
|
114 |
#ifdef __SYMBIAN32__ |
|
115 |
IMPORT_C |
|
116 |
#endif |
|
117 |
||
118 |
||
119 |
void vs_scanline_resample_4tap_UYVY (uint8_t *dest, uint8_t *src, |
|
120 |
int n, int src_width, int *xacc, int increment); |
|
121 |
#ifdef __SYMBIAN32__ |
|
122 |
IMPORT_C |
|
123 |
#endif |
|
124 |
||
125 |
void vs_scanline_merge_4tap_UYVY (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
126 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
127 |
#ifdef __SYMBIAN32__ |
|
128 |
IMPORT_C |
|
129 |
#endif |
|
130 |
||
131 |
void vs_image_scale_4tap_UYVY (const VSImage * dest, const VSImage * src, |
|
132 |
uint8_t * tmpbuf); |
|
133 |
#ifdef __SYMBIAN32__ |
|
134 |
IMPORT_C |
|
135 |
#endif |
|
136 |
||
137 |
||
138 |
void vs_scanline_resample_4tap_RGB565 (uint8_t *dest, uint8_t *src, |
|
139 |
int n, int src_width, int *xacc, int increment); |
|
140 |
#ifdef __SYMBIAN32__ |
|
141 |
IMPORT_C |
|
142 |
#endif |
|
143 |
||
144 |
void vs_scanline_merge_4tap_RGB565 (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
145 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
146 |
#ifdef __SYMBIAN32__ |
|
147 |
IMPORT_C |
|
148 |
#endif |
|
149 |
||
150 |
void vs_image_scale_4tap_RGB565 (const VSImage * dest, const VSImage * src, |
|
151 |
uint8_t * tmpbuf); |
|
152 |
#ifdef __SYMBIAN32__ |
|
153 |
IMPORT_C |
|
154 |
#endif |
|
155 |
||
156 |
||
157 |
void vs_scanline_resample_4tap_RGB555 (uint8_t *dest, uint8_t *src, |
|
158 |
int n, int src_width, int *xacc, int increment); |
|
159 |
#ifdef __SYMBIAN32__ |
|
160 |
IMPORT_C |
|
161 |
#endif |
|
162 |
||
163 |
void vs_scanline_merge_4tap_RGB555 (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
164 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
165 |
#ifdef __SYMBIAN32__ |
|
166 |
IMPORT_C |
|
167 |
#endif |
|
168 |
||
169 |
void vs_image_scale_4tap_RGB555 (const VSImage * dest, const VSImage * src, |
|
170 |
uint8_t * tmpbuf); |
|
171 |
#ifdef __SYMBIAN32__ |
|
172 |
IMPORT_C |
|
173 |
#endif |
|
174 |
||
175 |
void vs_scanline_resample_4tap_Y16 (uint8_t *dest, uint8_t *src, |
|
176 |
int n, int src_width, int *xacc, int increment); |
|
177 |
||
178 |
#ifdef __SYMBIAN32__ |
|
179 |
IMPORT_C |
|
180 |
#endif |
|
181 |
||
182 |
void vs_scanline_merge_4tap_Y16 (uint8_t *dest, uint8_t *src1, uint8_t *src2, |
|
183 |
uint8_t *src3, uint8_t *src4, int n, int acc); |
|
184 |
||
185 |
#ifdef __SYMBIAN32__ |
|
186 |
IMPORT_C |
|
187 |
#endif |
|
188 |
||
189 |
void vs_image_scale_4tap_Y16 (const VSImage * dest, const VSImage * src, |
|
190 |
uint8_t * tmpbuf); |
|
0
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
191 |
|
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
192 |
#endif |
0e761a78d257
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
193 |