Debian Codegraph @

src/filter/sharpness/sharpness.c

raw symbols SCIP
1 /*
2 sharpness.c
3
4 This frei0r plugin is a port of Mplayer's unsharp mask filter
5 original by by Remi Guyomarch <[email protected]>
6
7 Version 0.1 jul 2010
8
9 Copyright (C) 2010 Marko Cebokli http://lea.hamradio.si/~s57uuu
10
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25
26 */
27
28
29 //compile: gcc -c -fPIC -Wall sharpness.c -o sharpness.o
30 //link: gcc -shared -o sharpness.so sharpness.o
31
32 //#include <stdio.h>
33 #include <frei0r.h>cxx . . $ `<file>/include/frei0r.h`/
34 #include <stdlib.h>
35 //#include <math.h>
36 #include <assert.h>
37 #include <string.h>
38
39 #define MIN_MATRIX_SIZEcxx . . $ `src/filter/sharpness/sharpness.c:39:9`! 3
40 #define MAX_MATRIX_SIZEcxx . . $ `src/filter/sharpness/sharpness.c:40:9`! 63
41
42 typedef struct FilterParamcxx . . $ FilterParam# {
43 int msizeXcxx . . $ FilterParam#msizeX., msizeYcxx . . $ FilterParam#msizeY.;
44 double amountcxx . . $ FilterParam#amount.;
45 uint32_tcxx . . $ uint32_t# *SCcxx . . $ FilterParam#SC.[MAX_MATRIX_SIZEcxx . . $ `src/filter/sharpness/sharpness.c:40:9`!-1];
46 } FilterParamcxx . . $ FilterParam#;
47
48
49 //----------------------------------------
50 //struktura za instanco efekta
51 typedef structcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#
52 {
53 int hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h.;
54 int wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.;
55
56 FilterParamcxx . . $ FilterParam# fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp.;
57 int sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size.,accxx . . $ $anonymous_type_2da3f7419e87e6f0_0#ac.;
58 unsigned char *Rplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplani.,*Gplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplani.,*Bplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplani.,*Rplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplano.,*Gplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplano.,*Bplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplano.;
59
60 } instcxx . . $ inst#;
61
62
63 //========================================================
64 //unsharp() function from Mplayer unsharp filter
65 //by Remi Guyomarch <[email protected]>
66
67 /* This code is based on :
68
69 An Efficient algorithm for Gaussian blur using finite-state machines
70 Frederick M. Waltz and John W. V. Miller
71
72 SPIE Conf. on Machine Vision Systems for Inspection and Metrology VII
73 Originally published Boston, Nov 98
74
75 */
76
77 void unsharpcxx . . $ unsharp(abab09741c746460).( uint8_tcxx . . $ uint8_t# *dst, uint8_tcxx . . $ uint8_t# *src, int dstStride, int srcStride, int width, int height, FilterParamcxx . . $ FilterParam# *fp ) {
78
79 uint32_tcxx . . $ uint32_t# **SC = fp->SCcxx . . $ FilterParam#SC.;
80 uint32_tcxx . . $ uint32_t# SR[MAX_MATRIX_SIZEcxx . . $ `src/filter/sharpness/sharpness.c:40:9`!-1], Tmp1, Tmp2;
81 uint8_tcxx . . $ uint8_t#* src2 = src; // avoid gcc warning
82
83 int32_tcxx . . $ int32_t# res;
84 int x, y, z;
85 int amount = fp->amountcxx . . $ FilterParam#amount. * 65536.0;
86 int stepsX = fp->msizeXcxx . . $ FilterParam#msizeX./2;
87 int stepsY = fp->msizeYcxx . . $ FilterParam#msizeY./2;
88 int scalebits = (stepsX+stepsY)*2;
89 int32_tcxx . . $ int32_t# halfscale = 1 << ((stepsX+stepsY)*2-1);
90
91 if( !fp->amountcxx . . $ FilterParam#amount. ) {
92 if( src == dst )
93 return;
94 if( dstStride == srcStride )
95 // fast_memcpy( dst, src, srcStride*height );
96 memcpycxx . . $ memcpy(cc817cb175f282d).( dst, src, srcStride*height );
97 else
98 for( y=0; y<height; y++, dst+=dstStride, src+=srcStride )
99 // fast_memcpy( dst, src, width );
100 memcpycxx . . $ memcpy(cc817cb175f282d).( dst, src, width );
101 return;
102 }
103
104 for( y=0; y<2*stepsY; y++ )
105 memsetcxx . . $ memset(d1de1e4fb215f1c6).( SC[y], 0, sizeof(SC[y][0]) * (width+2*stepsX) );
106
107 for( y=-stepsY; y<height+stepsY; y++ ) {
108 if( y < height ) src2 = src;
109 memsetcxx . . $ memset(d1de1e4fb215f1c6).( SR, 0, sizeof(SR[0]) * (2*stepsX-1) );
110 for( x=-stepsX; x<width+stepsX; x++ ) {
111 Tmp1 = x<=0 ? src2[0] : x>=width ? src2[width-1] : src2[x];
112 for( z=0; z<stepsX*2; z+=2 ) {
113 Tmp2 = SR[z+0] + Tmp1; SR[z+0] = Tmp1;
114 Tmp1 = SR[z+1] + Tmp2; SR[z+1] = Tmp2;
115 }
116 for( z=0; z<stepsY*2; z+=2 ) {
117 Tmp2 = SC[z+0][x+stepsX] + Tmp1; SC[z+0][x+stepsX] = Tmp1;
118 Tmp1 = SC[z+1][x+stepsX] + Tmp2; SC[z+1][x+stepsX] = Tmp2;
119 }
120 if( x>=stepsX && y>=stepsY ) {
121 uint8_tcxx . . $ uint8_t#* srx = src - stepsY*srcStride + x - stepsX;
122 uint8_tcxx . . $ uint8_t#* dsx = dst - stepsY*dstStride + x - stepsX;
123
124 res = (int32_tcxx . . $ int32_t#)*srx + ( ( ( (int32_tcxx . . $ int32_t#)*srx - (int32_tcxx . . $ int32_t#)((Tmp1+halfscale) >> scalebits) ) * amount ) >> 16 );
125 *dsx = res>255 ? 255 : res<0 ? 0 : (uint8_tcxx . . $ uint8_t#)res;
126 }
127 }
128 if( y >= 0 ) {
129 dst += dstStride;
130 src += srcStride;
131 }
132 }
133 }
134
135
136
137 //-----------------------------------------------------
138 //stretch [0...1] to parameter range [min...max] linear
139 float map_value_forwardcxx . . $ map_value_forward(1935fda23fc189b2).(double v, float min, float max)
140 {
141 return min+(max-min)*v;
142 }
143
144 //-----------------------------------------------------
145 //collapse from parameter range [min...max] to [0...1] linear
146 double map_value_backwardcxx . . $ map_value_backward(937b104db0ceee62).(float v, float min, float max)
147 {
148 return (v-min)/(max-min);
149 }
150
151 //***********************************************
152 // OBVEZNE FREI0R FUNKCIJE
153
154 //-----------------------------------------------
155 int f0r_initcxx . . $ f0r_init(b126dc7c1de90089).()
156 {
157 return 1;
158 }
159
160 //------------------------------------------------
161 void f0r_deinitcxx . . $ f0r_deinit(49f6e7a06ebc5aa8).()
162 {
163 }
164
165 //-----------------------------------------------
166 void f0r_get_plugin_infocxx . . $ f0r_get_plugin_info(35d753456c0ea59c).(f0r_plugin_info_tcxx . . $ f0r_plugin_info_t#* info)
167 {
168
169 info->namecxx . . $ f0r_plugin_info#name.="Sharpness";
170 info->authorcxx . . $ f0r_plugin_info#author.="Marko Cebokli, Remi Guyomarch";
171 info->plugin_typecxx . . $ f0r_plugin_info#plugin_type.=F0R_PLUGIN_TYPE_FILTERcxx . . $ `include/frei0r.h:247:9`!;
172 info->color_modelcxx . . $ f0r_plugin_info#color_model.=F0R_COLOR_MODEL_RGBA8888cxx . . $ `include/frei0r.h:308:9`!;
173 info->frei0r_versioncxx . . $ f0r_plugin_info#frei0r_version.=FREI0R_MAJOR_VERSIONcxx . . $ `include/frei0r.h:217:9`!;
174 info->major_versioncxx . . $ f0r_plugin_info#major_version.=0;
175 info->minor_versioncxx . . $ f0r_plugin_info#minor_version.=2;
176 info->num_paramscxx . . $ f0r_plugin_info#num_params.=2;
177 info->explanationcxx . . $ f0r_plugin_info#explanation.="Unsharp masking (port from Mplayer)";
178 }
179
180 //--------------------------------------------------
181 void f0r_get_param_infocxx . . $ f0r_get_param_info(a9f9aa7954cc4a37).(f0r_param_info_tcxx . . $ f0r_param_info_t#* info, int param_index)
182 {
183 switch(param_index)
184 {
185 case 0:
186 info->namecxx . . $ f0r_param_info#name. = "Amount";
187 info->typecxx . . $ f0r_param_info#type. = F0R_PARAM_DOUBLEcxx . . $ `include/frei0r.h:383:9`!;
188 info->explanationcxx . . $ f0r_param_info#explanation. = "";
189 break;
190 case 1:
191 info->namecxx . . $ f0r_param_info#name. = "Size";
192 info->typecxx . . $ f0r_param_info#type. = F0R_PARAM_DOUBLEcxx . . $ `include/frei0r.h:383:9`!;
193 info->explanationcxx . . $ f0r_param_info#explanation. = "";
194 break;
195 }
196 }
197
198 //----------------------------------------------
199 f0r_instance_tcxx . . $ f0r_instance_t# f0r_constructcxx . . $ f0r_construct(da3f471cd007a696).(unsigned int width, unsigned int height)
200 {
201 instcxx . . $ inst# *in;
202 int z;
203
204 in=calloccxx . . $ calloc(63a7bf2941bfcd7a).(1,sizeof(instcxx . . $ inst#));
205 in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.=width;
206 in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h.=height;
207
208 in->Rplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplani.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
209 in->Gplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplani.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
210 in->Bplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplani.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
211 in->Rplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplano.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
212 in->Gplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplano.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
213 in->Bplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplano.=calloccxx . . $ calloc(63a7bf2941bfcd7a).(width*height,sizeof(unsigned char));
214
215 //defaults
216 in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..amountcxx . . $ FilterParam#amount.=0.0;
217 in->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size.=3;
218 in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeXcxx . . $ FilterParam#msizeX.=3;
219 in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.=3;
220 in->accxx . . $ $anonymous_type_2da3f7419e87e6f0_0#ac.=0;
221
222 memsetcxx . . $ memset(d1de1e4fb215f1c6).(in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.,0,sizeof(in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.));
223 for( z=0; z<in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.; z++ )
224 in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[z] = calloccxx . . $ calloc(63a7bf2941bfcd7a).(in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.+in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeXcxx . . $ FilterParam#msizeX. , sizeof(*(in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[z])));
225
226 return (f0r_instance_tcxx . . $ f0r_instance_t#)in;
227 }
228
229 //---------------------------------------------------
230 void f0r_destructcxx . . $ f0r_destruct(5d22bdacc48458e8).(f0r_instance_tcxx . . $ f0r_instance_t# instance)
231 {
232 instcxx . . $ inst# *in;
233 int i;
234
235 in=(instcxx . . $ inst#*)instance;
236
237 freecxx . . $ free(5d22bdacc48458e8).(in->Rplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplani.);
238 freecxx . . $ free(5d22bdacc48458e8).(in->Gplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplani.);
239 freecxx . . $ free(5d22bdacc48458e8).(in->Bplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplani.);
240 freecxx . . $ free(5d22bdacc48458e8).(in->Rplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplano.);
241 freecxx . . $ free(5d22bdacc48458e8).(in->Gplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplano.);
242 freecxx . . $ free(5d22bdacc48458e8).(in->Bplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplano.);
243 for (i=0;i<in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.;i++) freecxx . . $ free(5d22bdacc48458e8).(in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[i]);
244
245 freecxx . . $ free(5d22bdacc48458e8).(instance);
246 }
247
248 //-----------------------------------------------------
249 void f0r_set_param_valuecxx . . $ f0r_set_param_value(5be095a8278d2bf5).(f0r_instance_tcxx . . $ f0r_instance_t# instance, f0r_param_tcxx . . $ f0r_param_t# parm, int param_index)
250 {
251 instcxx . . $ inst# *p;
252 double tmpf;
253 int tmpi,chg,z;
254
255 p=(instcxx . . $ inst#*)instance;
256
257 chg=0;
258 switch(param_index)
259 {
260 case 0:
261 tmpf=map_value_forwardcxx . . $ map_value_forward(1935fda23fc189b2).(*((double*)parm), -1.5, 3.5);
262 if (tmpf!=p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..amountcxx . . $ FilterParam#amount.) chg=1;
263 p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..amountcxx . . $ FilterParam#amount.=tmpf;
264 break;
265 case 1:
266 tmpi=map_value_forwardcxx . . $ map_value_forward(1935fda23fc189b2).(*((double*)parm), 3.0, 11.0);
267 if (p->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size. != tmpi) chg=1;
268 p->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size.=tmpi;
269 break;
270 }
271
272 if (chg==0) return;
273
274
275 for( z=0; z<p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.; z++ )
276 freecxx . . $ free(5d22bdacc48458e8).(p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[z]);
277
278 p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeXcxx . . $ FilterParam#msizeX.=p->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size.;
279 p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.=p->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size.;
280
281 memsetcxx . . $ memset(d1de1e4fb215f1c6).(p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.,0,sizeof(p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.));
282 for( z=0; z<p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeYcxx . . $ FilterParam#msizeY.; z++ )
283 p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[z] = calloccxx . . $ calloc(63a7bf2941bfcd7a).(p->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.+p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..msizeXcxx . . $ FilterParam#msizeX. , sizeof(*(p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..SCcxx . . $ FilterParam#SC.[z])));
284
285 }
286
287 //--------------------------------------------------
288 void f0r_get_param_valuecxx . . $ f0r_get_param_value(5be095a8278d2bf5).(f0r_instance_tcxx . . $ f0r_instance_t# instance, f0r_param_tcxx . . $ f0r_param_t# param, int param_index)
289 {
290 instcxx . . $ inst# *p;
291
292 p=(instcxx . . $ inst#*)instance;
293
294 switch(param_index)
295 {
296 case 0:
297 *((double*)param)=map_value_backwardcxx . . $ map_value_backward(937b104db0ceee62).(p->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp..amountcxx . . $ FilterParam#amount., -1.5, 3.5);
298 break;
299 case 1:
300 *((double*)param)=map_value_backwardcxx . . $ map_value_backward(937b104db0ceee62).(p->sizecxx . . $ $anonymous_type_2da3f7419e87e6f0_0#size., 3.0, 11.0);
301 break;
302 }
303 }
304
305 //-------------------------------------------------
306 void f0r_updatecxx . . $ f0r_update(96cd7b27f2fca8a7).(f0r_instance_tcxx . . $ f0r_instance_t# instance, double time, const uint32_tcxx . . $ uint32_t#* inframe, uint32_tcxx . . $ uint32_t#* outframe)
307 {
308 instcxx . . $ inst# *in;
309 int i;
310
311 assertcxx . . $ `<external>/4398592474888995393/assert.h:77:11`!(instance);
312 in=(instcxx . . $ inst#*)instance;
313
314 //Frei0r works with packed color, Mplayer with planar color
315 for (i=0;i<(in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.*in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h.);i++) //copy to planar
316 {
317 in->Rplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplani.[i]=inframe[i]&255;
318 in->Gplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplani.[i]=(inframe[i]>>8)&255;
319 in->Bplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplani.[i]=(inframe[i]>>16)&255;
320 }
321
322 unsharpcxx . . $ unsharp(abab09741c746460).(in->Rplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplano., in->Rplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplani., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h., &in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp.);
323 unsharpcxx . . $ unsharp(abab09741c746460).(in->Gplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplano., in->Gplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplani., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h., &in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp.);
324 unsharpcxx . . $ unsharp(abab09741c746460).(in->Bplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplano., in->Bplanicxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplani., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w., in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h., &in->fpcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#fp.);
325
326 for (i=0;i<(in->wcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#w.*in->hcxx . . $ $anonymous_type_2da3f7419e87e6f0_0#h.);i++) //copy to packed, preserve alpha
327 {
328 outframe[i]=((uint32_tcxx . . $ uint32_t#)in->Rplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Rplano.[i])|((uint32_tcxx . . $ uint32_t#)in->Gplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Gplano.[i]<<8)|((uint32_tcxx . . $ uint32_t#)in->Bplanocxx . . $ $anonymous_type_2da3f7419e87e6f0_0#Bplano.[i]<<16)|(inframe[i]&0xFF000000);
329 }
330
331
332 }
333