1 |
|
// 30.10.2002 corrected qpel chroma rounding |
2 |
|
// 04.10.2002 added qpel support to MBMotionCompensation |
3 |
|
// 01.05.2002 updated MBMotionCompensationBVOP |
4 |
// 14.04.2002 bframe compensation |
// 14.04.2002 bframe compensation |
5 |
|
|
6 |
#include "../encoder.h" |
#include "../encoder.h" |
7 |
#include "../utils/mbfunctions.h" |
#include "../utils/mbfunctions.h" |
8 |
#include "../image/interpolate8x8.h" |
#include "../image/interpolate8x8.h" |
9 |
|
#include "../image/reduced.h" |
10 |
#include "../utils/timer.h" |
#include "../utils/timer.h" |
11 |
#include "motion.h" |
#include "motion.h" |
12 |
|
|
13 |
#define ABS(X) (((X)>0)?(X):-(X)) |
#define ABS(X) (((X)>0)?(X):-(X)) |
14 |
#define SIGN(X) (((X)>0)?1:-1) |
#define SIGN(X) (((X)>0)?1:-1) |
15 |
|
|
16 |
static __inline void compensate8x8_halfpel( |
|
17 |
int16_t * const dct_codes, |
static __inline void |
18 |
|
compensate16x16_interpolate(int16_t * const dct_codes, |
19 |
uint8_t * const cur, |
uint8_t * const cur, |
20 |
const uint8_t * const ref, |
const uint8_t * const ref, |
21 |
const uint8_t * const refh, |
const uint8_t * const refh, |
22 |
const uint8_t * const refv, |
uint8_t * const refv, |
23 |
const uint8_t * const refhv, |
const uint8_t * const refhv, |
24 |
const uint32_t x, const uint32_t y, |
uint32_t x, |
25 |
const int32_t dx, const int dy, |
uint32_t y, |
26 |
const uint32_t stride) |
const int32_t dx, |
27 |
|
const int32_t dy, |
28 |
|
const uint32_t stride, |
29 |
|
const uint32_t quarterpel, |
30 |
|
const int reduced_resolution, |
31 |
|
const uint32_t rounding) |
32 |
{ |
{ |
|
int32_t ddx,ddy; |
|
33 |
|
|
34 |
switch ( ((dx&1)<<1) + (dy&1) ) // ((dx%2)?2:0)+((dy%2)?1:0) |
if (reduced_resolution) |
35 |
{ |
{ |
36 |
case 0 : |
const uint8_t * reference; |
37 |
ddx = dx/2; |
x*=2; y*=2; |
38 |
ddy = dy/2; |
|
39 |
|
reference = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride); |
40 |
|
|
41 |
|
filter_18x18_to_8x8(dct_codes, cur+y*stride + x, stride); |
42 |
|
filter_diff_18x18_to_8x8(dct_codes, reference, stride); |
43 |
|
|
44 |
|
filter_18x18_to_8x8(dct_codes+64, cur+y*stride + x + 16, stride); |
45 |
|
filter_diff_18x18_to_8x8(dct_codes+64, reference + 16, stride); |
46 |
|
|
47 |
|
filter_18x18_to_8x8(dct_codes+128, cur+(y+16)*stride + x, stride); |
48 |
|
filter_diff_18x18_to_8x8(dct_codes+128, reference + 16*stride, stride); |
49 |
|
|
50 |
|
filter_18x18_to_8x8(dct_codes+192, cur+(y+16)*stride + x + 16, stride); |
51 |
|
filter_diff_18x18_to_8x8(dct_codes+192, reference + 16*stride + 16, stride); |
52 |
|
|
53 |
|
transfer32x32_copy(cur + y*stride + x, reference, stride); |
54 |
|
|
55 |
|
}else{ |
56 |
|
if(quarterpel) { |
57 |
|
interpolate16x16_quarterpel((uint8_t *) refv, (uint8_t *) ref, (uint8_t *) refh, |
58 |
|
(uint8_t *) refh + 64, (uint8_t *) refhv, x, y, dx, dy, stride, rounding); |
59 |
|
|
60 |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
61 |
ref + (y+ddy)*stride + x+ddx, stride); |
refv + y*stride + x, stride); |
62 |
break; |
transfer_8to16sub(dct_codes+64, cur + y*stride + x + 8, |
63 |
|
refv + y*stride + x + 8, stride); |
64 |
|
transfer_8to16sub(dct_codes+128, cur + y*stride + x + 8*stride, |
65 |
|
refv + y*stride + x + 8*stride, stride); |
66 |
|
transfer_8to16sub(dct_codes+192, cur + y*stride + x + 8*stride + 8, |
67 |
|
refv + y*stride + x + 8*stride+8, stride); |
68 |
|
|
69 |
|
} |
70 |
|
else |
71 |
|
{ |
72 |
|
const uint8_t * reference = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride); |
73 |
|
|
|
case 1 : |
|
|
ddx = dx/2; |
|
|
ddy = (dy-1)/2; |
|
74 |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
75 |
refv + (y+ddy)*stride + x+ddx, stride); |
reference, stride); |
76 |
break; |
transfer_8to16sub(dct_codes+64, cur + y * stride + x + 8, |
77 |
|
reference + 8, stride); |
78 |
|
transfer_8to16sub(dct_codes+128, cur + y * stride + x + 8*stride, |
79 |
|
reference + 8*stride, stride); |
80 |
|
transfer_8to16sub(dct_codes+192, cur + y * stride + x + 8*stride+8, |
81 |
|
reference + 8*stride + 8, stride); |
82 |
|
} |
83 |
|
} |
84 |
|
} |
85 |
|
|
86 |
|
static __inline void |
87 |
|
compensate8x8_interpolate(int16_t * const dct_codes, |
88 |
|
uint8_t * const cur, |
89 |
|
const uint8_t * const ref, |
90 |
|
const uint8_t * const refh, |
91 |
|
const uint8_t * const refv, |
92 |
|
const uint8_t * const refhv, |
93 |
|
uint32_t x, |
94 |
|
uint32_t y, |
95 |
|
const int32_t dx, |
96 |
|
const int32_t dy, |
97 |
|
const uint32_t stride, |
98 |
|
const uint32_t quarterpel, |
99 |
|
const int reduced_resolution, |
100 |
|
const uint32_t rounding) |
101 |
|
{ |
102 |
|
if (reduced_resolution) |
103 |
|
{ |
104 |
|
const uint8_t * reference; |
105 |
|
x*=2; y*=2; |
106 |
|
|
107 |
|
reference = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride); |
108 |
|
|
109 |
|
filter_18x18_to_8x8(dct_codes, cur+y*stride + x, stride); |
110 |
|
filter_diff_18x18_to_8x8(dct_codes, reference, stride); |
111 |
|
|
112 |
|
transfer16x16_copy(cur + y*stride + x, reference, stride); |
113 |
|
|
114 |
|
} else { |
115 |
|
|
116 |
|
if(quarterpel) { |
117 |
|
interpolate8x8_quarterpel((uint8_t *) refv, (uint8_t *) ref, (uint8_t *) refh, |
118 |
|
(uint8_t *) refh + 64, (uint8_t *) refhv, x, y, dx, dy, stride, rounding); |
119 |
|
|
|
case 2 : |
|
|
ddx = (dx-1)/2; |
|
|
ddy = dy/2; |
|
120 |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
121 |
refh + (y+ddy)*stride + x+ddx, stride); |
refv + y*stride + x, stride); |
122 |
break; |
} |
123 |
|
else |
124 |
|
{ |
125 |
|
const uint8_t * reference = get_ref(ref, refh, refv, refhv, x, y, 1, dx, dy, stride); |
126 |
|
|
|
default : // case 3: |
|
|
ddx = (dx-1)/2; |
|
|
ddy = (dy-1)/2; |
|
127 |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
transfer_8to16sub(dct_codes, cur + y*stride + x, |
128 |
refhv + (y+ddy)*stride + x+ddx, stride); |
reference, stride); |
129 |
break; |
} |
130 |
} |
} |
131 |
} |
} |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
void MBMotionCompensation( |
/* XXX: slow, inelegant... */ |
136 |
MACROBLOCK * const mb, |
static void |
137 |
|
interpolate18x18_switch(uint8_t * const cur, |
138 |
|
const uint8_t * const refn, |
139 |
|
const uint32_t x, |
140 |
|
const uint32_t y, |
141 |
|
const int32_t dx, |
142 |
|
const int dy, |
143 |
|
const uint32_t stride, |
144 |
|
const uint32_t rounding) |
145 |
|
{ |
146 |
|
interpolate8x8_switch(cur, refn, x-1, y-1, dx, dy, stride, rounding); |
147 |
|
interpolate8x8_switch(cur, refn, x+7, y-1, dx, dy, stride, rounding); |
148 |
|
interpolate8x8_switch(cur, refn, x+9, y-1, dx, dy, stride, rounding); |
149 |
|
|
150 |
|
interpolate8x8_switch(cur, refn, x-1, y+7, dx, dy, stride, rounding); |
151 |
|
interpolate8x8_switch(cur, refn, x+7, y+7, dx, dy, stride, rounding); |
152 |
|
interpolate8x8_switch(cur, refn, x+9, y+7, dx, dy, stride, rounding); |
153 |
|
|
154 |
|
interpolate8x8_switch(cur, refn, x-1, y+9, dx, dy, stride, rounding); |
155 |
|
interpolate8x8_switch(cur, refn, x+7, y+9, dx, dy, stride, rounding); |
156 |
|
interpolate8x8_switch(cur, refn, x+9, y+9, dx, dy, stride, rounding); |
157 |
|
} |
158 |
|
|
159 |
|
|
160 |
|
void |
161 |
|
MBMotionCompensation(MACROBLOCK * const mb, |
162 |
const uint32_t i, |
const uint32_t i, |
163 |
const uint32_t j, |
const uint32_t j, |
164 |
const IMAGE * const ref, |
const IMAGE * const ref, |
170 |
const uint32_t width, |
const uint32_t width, |
171 |
const uint32_t height, |
const uint32_t height, |
172 |
const uint32_t edged_width, |
const uint32_t edged_width, |
173 |
|
const uint32_t quarterpel, |
174 |
|
const int reduced_resolution, |
175 |
const uint32_t rounding) |
const uint32_t rounding) |
176 |
{ |
{ |
|
static const uint32_t roundtab[16] = |
|
|
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 }; |
|
177 |
|
|
178 |
|
if (mb->mode == MODE_NOT_CODED || mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) { |
179 |
|
|
180 |
|
int32_t dx = (quarterpel ? mb->qmvs[0].x : mb->mvs[0].x); |
181 |
|
int32_t dy = (quarterpel ? mb->qmvs[0].y : mb->mvs[0].y); |
182 |
|
|
183 |
|
if ( (!reduced_resolution) && (mb->mode == MODE_NOT_CODED) && (dx==0) && (dy==0) ) { /* quick copy */ |
184 |
|
transfer16x16_copy(cur->y + 16 * (i + j * edged_width), |
185 |
|
ref->y + 16 * (i + j * edged_width), |
186 |
|
edged_width); |
187 |
|
|
188 |
|
transfer8x8_copy(cur->u + 8 * (i + j * edged_width/2), |
189 |
|
ref->u + 8 * (i + j * edged_width/2), |
190 |
|
edged_width / 2); |
191 |
|
transfer8x8_copy(cur->v + 8 * (i + j * edged_width/2), |
192 |
|
ref->v + 8 * (i + j * edged_width/2), |
193 |
|
edged_width / 2); |
194 |
|
return; |
195 |
|
} |
196 |
|
/* quick MODE_NOT_CODED for GMC with MV!=(0,0) is still needed */ |
197 |
|
|
198 |
|
if (reduced_resolution) |
199 |
|
{ |
200 |
|
dx = RRV_MV_SCALEUP(dx); |
201 |
|
dy = RRV_MV_SCALEUP(dy); |
202 |
|
} |
203 |
|
|
204 |
|
compensate16x16_interpolate(&dct_codes[0 * 64], cur->y, ref->y, refh->y, |
205 |
|
refv->y, refhv->y, 16 * i, 16 * j, dx, dy, |
206 |
|
edged_width, quarterpel, reduced_resolution, rounding); |
207 |
|
|
208 |
if (mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) |
if (quarterpel) |
209 |
{ |
{ |
210 |
int32_t dx = mb->mvs[0].x; |
dx /= 2; |
211 |
int32_t dy = mb->mvs[0].y; |
dy /= 2; |
212 |
|
} |
213 |
|
|
214 |
compensate8x8_halfpel(&dct_codes[0*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
dx = (dx >> 1) + roundtab_79[dx & 0x3]; |
215 |
16*i, 16*j, dx, dy, edged_width); |
dy = (dy >> 1) + roundtab_79[dy & 0x3]; |
|
compensate8x8_halfpel(&dct_codes[1*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
|
|
16*i + 8, 16*j, dx, dy, edged_width); |
|
|
compensate8x8_halfpel(&dct_codes[2*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
|
|
16*i, 16*j + 8, dx, dy, edged_width); |
|
|
compensate8x8_halfpel(&dct_codes[3*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
|
|
16*i + 8, 16*j + 8, dx, dy, edged_width); |
|
|
|
|
|
dx = (dx & 3) ? (dx >> 1) | 1 : dx / 2; |
|
|
dy = (dy & 3) ? (dy >> 1) | 1 : dy / 2; |
|
|
|
|
|
/* uv-image-based compensation |
|
|
compensate8x8_halfpel(dct_codes[4], cur->u, ref->u, refh->u, refv->u, refhv->u, |
|
|
8*i, 8*j, dx, dy, edged_width/2); |
|
|
compensate8x8_halfpel(dct_codes[5], cur->v, ref->v, refh->v, refv->v, refhv->v, |
|
|
8*i, 8*j, dx, dy, edged_width/2); */ |
|
216 |
|
|
217 |
/* uv-block-based compensation */ |
/* uv-block-based compensation */ |
218 |
interpolate8x8_switch(refv->u, ref->u, 8*i, 8*j, dx, dy, edged_width/2, rounding); |
if (reduced_resolution) |
219 |
|
{ |
220 |
|
const stride = edged_width/2; |
221 |
|
uint8_t * current, * reference; |
222 |
|
|
223 |
|
current = cur->u + 16*j*stride + 16*i; |
224 |
|
reference = refv->u + 16*j*stride + 16*i; |
225 |
|
interpolate18x18_switch(refv->u, ref->u, 16*i, 16*j, dx, dy, stride, rounding); |
226 |
|
filter_18x18_to_8x8(dct_codes + 4*64, current, stride); |
227 |
|
filter_diff_18x18_to_8x8(dct_codes + 4*64, reference, stride); |
228 |
|
transfer16x16_copy(current, reference, stride); |
229 |
|
|
230 |
|
current = cur->v + 16*j*stride + 16*i; |
231 |
|
reference = refv->v + 16*j*stride + 16*i; |
232 |
|
interpolate18x18_switch(refv->v, ref->v, 16*i, 16*j, dx, dy, stride, rounding); |
233 |
|
filter_18x18_to_8x8(dct_codes + 5*64, current, stride); |
234 |
|
filter_diff_18x18_to_8x8(dct_codes + 5*64, reference, stride); |
235 |
|
transfer16x16_copy(current, reference, stride); |
236 |
|
}else{ |
237 |
transfer_8to16sub(&dct_codes[4*64], |
transfer_8to16sub(&dct_codes[4*64], |
238 |
cur->u + 8*j*edged_width/2 + 8*i, |
cur->u + 8*j*edged_width/2 + 8*i, |
239 |
refv->u + 8*j*edged_width/2 + 8*i, edged_width/2); |
interpolate8x8_switch2(refv->u, ref->u, 8 * i, 8 * j, |
240 |
|
dx, dy, edged_width / 2, rounding), |
241 |
|
edged_width / 2); |
242 |
|
|
|
interpolate8x8_switch(refv->v, ref->v, 8*i, 8*j, dx, dy, edged_width/2, rounding); |
|
243 |
transfer_8to16sub(&dct_codes[5*64], |
transfer_8to16sub(&dct_codes[5*64], |
244 |
cur->v + 8*j*edged_width/2 + 8*i, |
cur->v + 8*j*edged_width/2 + 8*i, |
245 |
refv->v + 8*j*edged_width/2 + 8*i, edged_width/2); |
interpolate8x8_switch2(refv->u, ref->v, 8 * i, 8 * j, |
246 |
|
dx, dy, edged_width / 2, rounding), |
247 |
|
edged_width / 2); |
248 |
} |
} |
249 |
else // mode == MODE_INTER4V |
|
250 |
{ |
} else { // mode == MODE_INTER4V |
251 |
|
int k; |
252 |
int32_t sum, dx, dy; |
int32_t sum, dx, dy; |
253 |
|
VECTOR mvs[4]; |
254 |
|
|
255 |
compensate8x8_halfpel(&dct_codes[0*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
if(quarterpel) |
256 |
16*i, 16*j, mb->mvs[0].x, mb->mvs[0].y, edged_width); |
for (k = 0; k < 4; k++) mvs[k] = mb->qmvs[k]; |
257 |
compensate8x8_halfpel(&dct_codes[1*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
else |
258 |
16*i + 8, 16*j, mb->mvs[1].x, mb->mvs[1].y, edged_width); |
for (k = 0; k < 4; k++) mvs[k] = mb->mvs[k]; |
|
compensate8x8_halfpel(&dct_codes[2*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
|
|
16*i, 16*j + 8, mb->mvs[2].x, mb->mvs[2].y, edged_width); |
|
|
compensate8x8_halfpel(&dct_codes[3*64], cur->y, ref->y, refh->y, refv->y, refhv->y, |
|
|
16*i + 8, 16*j + 8, mb->mvs[3].x, mb->mvs[3].y, edged_width); |
|
259 |
|
|
260 |
sum = mb->mvs[0].x + mb->mvs[1].x + mb->mvs[2].x + mb->mvs[3].x; |
if (reduced_resolution) |
261 |
dx = (sum ? SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2) : 0); |
{ |
262 |
|
for (k = 0; k < 4; k++) |
263 |
|
{ |
264 |
|
mvs[k].x = RRV_MV_SCALEUP(mvs[k].x); |
265 |
|
mvs[k].y = RRV_MV_SCALEUP(mvs[k].y); |
266 |
|
} |
267 |
|
} |
268 |
|
|
269 |
sum = mb->mvs[0].y + mb->mvs[1].y + mb->mvs[2].y + mb->mvs[3].y; |
compensate8x8_interpolate(&dct_codes[0 * 64], cur->y, ref->y, refh->y, |
270 |
dy = (sum ? SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2) : 0); |
refv->y, refhv->y, 16 * i, 16 * j, mvs[0].x, |
271 |
|
mvs[0].y, edged_width, quarterpel, reduced_resolution, rounding); |
272 |
|
compensate8x8_interpolate(&dct_codes[1 * 64], cur->y, ref->y, refh->y, |
273 |
|
refv->y, refhv->y, 16 * i + 8, 16 * j, |
274 |
|
mvs[1].x, mvs[1].y, edged_width, quarterpel, reduced_resolution, rounding); |
275 |
|
compensate8x8_interpolate(&dct_codes[2 * 64], cur->y, ref->y, refh->y, |
276 |
|
refv->y, refhv->y, 16 * i, 16 * j + 8, |
277 |
|
mvs[2].x, mvs[2].y, edged_width, quarterpel, reduced_resolution, rounding); |
278 |
|
compensate8x8_interpolate(&dct_codes[3 * 64], cur->y, ref->y, refh->y, |
279 |
|
refv->y, refhv->y, 16 * i + 8, 16 * j + 8, |
280 |
|
mvs[3].x, mvs[3].y, edged_width, quarterpel, reduced_resolution, rounding); |
281 |
|
|
282 |
|
if(quarterpel) |
283 |
|
sum = (mvs[0].x / 2) + (mvs[1].x / 2) + (mvs[2].x / 2) + (mvs[3].x / 2); |
284 |
|
else |
285 |
|
sum = mvs[0].x + mvs[1].x + mvs[2].x + mvs[3].x; |
286 |
|
|
287 |
|
dx = (sum >> 3) + roundtab_76[sum & 0xf]; |
288 |
|
|
289 |
|
if(quarterpel) |
290 |
|
sum = (mvs[0].y / 2) + (mvs[1].y / 2) + (mvs[2].y / 2) + (mvs[3].y / 2); |
291 |
|
else |
292 |
|
sum = mvs[0].y + mvs[1].y + mvs[2].y + mvs[3].y; |
293 |
|
|
294 |
|
dy = (sum >> 3) + roundtab_76[sum & 0xf]; |
295 |
|
|
|
/* uv-image-based compensation |
|
|
compensate8x8_halfpel(dct_codes[4], cur->u, ref->u, refh->u, refv->u, refhv->u, |
|
|
8*i, 8*j, dx, dy, edged_width/2); |
|
|
compensate8x8_halfpel(dct_codes[5], cur->v, ref->v, refh->v, refv->v, refhv->v, |
|
|
8*i, 8*j, dx, dy, edged_width/2); */ |
|
296 |
|
|
297 |
/* uv-block-based compensation */ |
/* uv-block-based compensation */ |
298 |
interpolate8x8_switch(refv->u, ref->u, 8*i, 8*j, dx, dy, edged_width/2, rounding); |
if (reduced_resolution) |
299 |
|
{ |
300 |
|
const stride = edged_width/2; |
301 |
|
uint8_t * current, * reference; |
302 |
|
|
303 |
|
current = cur->u + 16*j*stride + 16*i; |
304 |
|
reference = refv->u + 16*j*stride + 16*i; |
305 |
|
interpolate18x18_switch(refv->u, ref->u, 16*i, 16*j, dx, dy, stride, rounding); |
306 |
|
filter_18x18_to_8x8(dct_codes + 4*64, current, stride); |
307 |
|
filter_diff_18x18_to_8x8(dct_codes + 4*64, reference, stride); |
308 |
|
transfer16x16_copy(current, reference, stride); |
309 |
|
|
310 |
|
current = cur->v + 16*j*stride + 16*i; |
311 |
|
reference = refv->v + 16*j*stride + 16*i; |
312 |
|
interpolate18x18_switch(refv->v, ref->v, 16*i, 16*j, dx, dy, stride, rounding); |
313 |
|
filter_18x18_to_8x8(dct_codes + 5*64, current, stride); |
314 |
|
filter_diff_18x18_to_8x8(dct_codes + 5*64, reference, stride); |
315 |
|
transfer16x16_copy(current, reference, stride); |
316 |
|
|
317 |
|
}else{ |
318 |
transfer_8to16sub(&dct_codes[4*64], |
transfer_8to16sub(&dct_codes[4*64], |
319 |
cur->u + 8*j*edged_width/2 + 8*i, |
cur->u + 8*j*edged_width/2 + 8*i, |
320 |
refv->u + 8*j*edged_width/2 + 8*i, edged_width/2); |
interpolate8x8_switch2(refv->u, ref->u, 8 * i, 8 * j, |
321 |
|
dx, dy, edged_width / 2, rounding), |
322 |
|
edged_width / 2); |
323 |
|
|
|
interpolate8x8_switch(refv->v, ref->v, 8*i, 8*j, dx, dy, edged_width/2, rounding); |
|
324 |
transfer_8to16sub(&dct_codes[5*64], |
transfer_8to16sub(&dct_codes[5*64], |
325 |
cur->v + 8*j*edged_width/2 + 8*i, |
cur->v + 8*j*edged_width/2 + 8*i, |
326 |
refv->v + 8*j*edged_width/2 + 8*i, edged_width/2); |
interpolate8x8_switch2(refv->u, ref->v, 8 * i, 8 * j, |
327 |
|
dx, dy, edged_width / 2, rounding), |
328 |
|
edged_width / 2); |
329 |
|
} |
330 |
} |
} |
331 |
} |
} |
332 |
|
|
333 |
|
|
334 |
|
void |
335 |
void MBMotionCompensationBVOP( |
MBMotionCompensationBVOP(MBParam * pParam, |
|
MBParam * pParam, |
|
336 |
MACROBLOCK * const mb, |
MACROBLOCK * const mb, |
337 |
const uint32_t i, |
const uint32_t i, |
338 |
const uint32_t j, |
const uint32_t j, |
345 |
const IMAGE * const b_refh, |
const IMAGE * const b_refh, |
346 |
const IMAGE * const b_refv, |
const IMAGE * const b_refv, |
347 |
const IMAGE * const b_refhv, |
const IMAGE * const b_refhv, |
348 |
int16_t dct_codes[][64]) |
int16_t * dct_codes) |
349 |
{ |
{ |
350 |
static const uint32_t roundtab[16] = |
static const uint32_t roundtab[16] = |
351 |
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 }; |
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2 }; |
353 |
const int32_t edged_width = pParam->edged_width; |
const int32_t edged_width = pParam->edged_width; |
354 |
int32_t dx, dy; |
int32_t dx, dy; |
355 |
int32_t b_dx, b_dy; |
int32_t b_dx, b_dy; |
356 |
|
int k,sum; |
357 |
int x = i; |
int x = i; |
358 |
int y = j; |
int y = j; |
359 |
|
uint32_t quarterpel = pParam->m_quarterpel; |
360 |
|
|
361 |
|
switch (mb->mode) { |
|
|
|
|
switch(mb->mode) |
|
|
{ |
|
362 |
case MODE_FORWARD : |
case MODE_FORWARD : |
363 |
|
|
364 |
|
if (quarterpel) { |
365 |
|
dx = mb->qmvs[0].x; |
366 |
|
dy = mb->qmvs[0].y; |
367 |
|
} else { |
368 |
dx = mb->mvs[0].x; |
dx = mb->mvs[0].x; |
369 |
dy = mb->mvs[0].y; |
dy = mb->mvs[0].y; |
370 |
|
} |
371 |
|
|
372 |
transfer_8to16sub_c( |
compensate16x16_interpolate(&dct_codes[0 * 64], cur->y, f_ref->y, f_refh->y, |
373 |
dct_codes[0], |
f_refv->y, f_refhv->y, 16 * i, 16 * j, dx, |
374 |
cur->y + (j*16)*edged_width + (i*16), |
dy, edged_width, quarterpel, 0 /*reduced_resolution*/, 0); |
375 |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
|
376 |
i*16, j*16, 1, dx, dy, edged_width), |
if (quarterpel) { |
377 |
edged_width); |
dx /= 2; |
378 |
|
dy /= 2; |
379 |
transfer_8to16sub( |
} |
|
dct_codes[1], |
|
|
cur->y + (j*16)*edged_width + (i*16+8), |
|
|
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
|
|
i*16+8, j*16, 1, dx, dy, edged_width), |
|
|
edged_width); |
|
380 |
|
|
381 |
transfer_8to16sub_c( |
dx = (dx >> 1) + roundtab_79[dx & 0x3]; |
382 |
dct_codes[2], |
dy = (dy >> 1) + roundtab_79[dy & 0x3]; |
|
cur->y + (j*16+8)*edged_width + (i*16), |
|
|
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
|
|
i*16, j*16+8, 1, dx, dy, edged_width), |
|
|
edged_width); |
|
383 |
|
|
384 |
transfer_8to16sub( |
/* uv-block-based compensation */ |
385 |
dct_codes[3], |
transfer_8to16sub(&dct_codes[4 * 64], |
386 |
cur->y + (j*16+8)*edged_width + (i*16+8), |
cur->u + 8 * j * edged_width / 2 + 8 * i, |
387 |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
interpolate8x8_switch2(f_refv->u, f_ref->u, 8 * i, 8 * j, |
388 |
i*16+8, j*16+8, 1, dx, dy, edged_width), |
dx, dy, edged_width / 2, 0), |
|
edged_width); |
|
389 |
|
|
390 |
|
edged_width / 2); |
391 |
|
|
392 |
dx = (dx & 3) ? (dx >> 1) | 1 : dx / 2; |
transfer_8to16sub(&dct_codes[5 * 64], |
393 |
dy = (dy & 3) ? (dy >> 1) | 1 : dy / 2; |
cur->v + 8 * j * edged_width / 2 + 8 * i, |
394 |
|
interpolate8x8_switch2(f_refv->u, f_ref->v, 8 * i, 8 * j, |
395 |
|
dx, dy, edged_width / 2, 0), |
396 |
|
|
397 |
/* uv-image-based compensation */ |
edged_width / 2); |
|
compensate8x8_halfpel(dct_codes[4], cur->u, f_ref->u, f_refh->u, f_refv->u, f_refhv->u, |
|
|
8*i, 8*j, dx, dy, edged_width/2); |
|
|
compensate8x8_halfpel(dct_codes[5], cur->v, f_ref->v, f_refh->v, f_refv->v, f_refhv->v, |
|
|
8*i, 8*j, dx, dy, edged_width/2); |
|
398 |
|
|
399 |
break; |
break; |
400 |
|
|
401 |
case MODE_BACKWARD : |
case MODE_BACKWARD : |
402 |
|
if (quarterpel) { |
403 |
|
b_dx = mb->b_qmvs[0].x; |
404 |
|
b_dy = mb->b_qmvs[0].y; |
405 |
|
} else { |
406 |
b_dx = mb->b_mvs[0].x; |
b_dx = mb->b_mvs[0].x; |
407 |
b_dy = mb->b_mvs[0].y; |
b_dy = mb->b_mvs[0].y; |
408 |
|
} |
409 |
|
|
410 |
transfer_8to16sub_c( |
compensate16x16_interpolate(&dct_codes[0 * 64], cur->y, b_ref->y, b_refh->y, |
411 |
dct_codes[0], |
b_refv->y, b_refhv->y, 16 * i, 16 * j, b_dx, |
412 |
cur->y + (j*16)*edged_width + (i*16), |
b_dy, edged_width, quarterpel, 0 /*reduced_resolution*/, 0); |
413 |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
|
414 |
i*16, j*16, 1, b_dx, b_dy, edged_width), |
if (quarterpel) { |
415 |
edged_width); |
b_dx /= 2; |
416 |
|
b_dy /= 2; |
417 |
|
} |
418 |
|
|
419 |
transfer_8to16sub( |
b_dx = (b_dx >> 1) + roundtab_79[b_dx & 0x3]; |
420 |
dct_codes[1], |
b_dy = (b_dy >> 1) + roundtab_79[b_dy & 0x3]; |
|
cur->y + (j*16)*edged_width + (i*16+8), |
|
|
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
|
|
i*16+8, j*16, 1, b_dx, b_dy, edged_width), |
|
|
edged_width); |
|
421 |
|
|
|
transfer_8to16sub_c( |
|
|
dct_codes[2], |
|
|
cur->y + (j*16+8)*edged_width + (i*16), |
|
|
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
|
|
i*16, j*16+8, 1, b_dx, b_dy, edged_width), |
|
|
edged_width); |
|
422 |
|
|
423 |
transfer_8to16sub( |
/* uv-block-based compensation */ |
424 |
dct_codes[3], |
transfer_8to16sub(&dct_codes[4 * 64], |
425 |
cur->y + (j*16+8)*edged_width + (i*16+8), |
cur->u + 8 * j * edged_width / 2 + 8 * i, |
426 |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
interpolate8x8_switch2(f_refv->u, b_ref->u, 8 * i, 8 * j, |
427 |
i*16+8, j*16+8, 1, b_dx, b_dy, edged_width), |
b_dx, b_dy, edged_width / 2, 0), |
428 |
edged_width); |
|
429 |
|
edged_width / 2); |
430 |
|
|
431 |
b_dx = (b_dx & 3) ? (b_dx >> 1) | 1 : b_dx / 2; |
transfer_8to16sub(&dct_codes[5 * 64], |
432 |
b_dy = (b_dy & 3) ? (b_dy >> 1) | 1 : b_dy / 2; |
cur->v + 8 * j * edged_width / 2 + 8 * i, |
433 |
|
interpolate8x8_switch2(f_refv->u, b_ref->v, 8 * i, 8 * j, |
434 |
|
b_dx, b_dy, edged_width / 2, 0), |
435 |
|
|
436 |
/* uv-image-based compensation */ |
edged_width / 2); |
|
compensate8x8_halfpel(dct_codes[4], cur->u, |
|
|
b_ref->u, b_refh->u, b_refv->u, b_refhv->u, |
|
|
8*i, 8*j, b_dx, b_dy, edged_width/2); |
|
|
compensate8x8_halfpel(dct_codes[5], cur->v, |
|
|
b_ref->v, b_refh->v, b_refv->v, b_refhv->v, |
|
|
8*i, 8*j, b_dx, b_dy, edged_width/2); |
|
437 |
|
|
438 |
break; |
break; |
439 |
|
|
440 |
|
case MODE_INTERPOLATE: /* _could_ use DIRECT, but would be overkill (no 4MV there) */ |
441 |
|
case MODE_DIRECT_NO4V: |
442 |
|
|
443 |
|
if (quarterpel) { |
444 |
|
dx = mb->qmvs[0].x; |
445 |
|
dy = mb->qmvs[0].y; |
446 |
|
b_dx = mb->b_qmvs[0].x; |
447 |
|
b_dy = mb->b_qmvs[0].y; |
448 |
|
|
449 |
|
interpolate16x16_quarterpel((uint8_t *) f_refv->y, (uint8_t *) f_ref->y, (uint8_t *) f_refh->y, |
450 |
|
(uint8_t *) f_refh->y + 64, (uint8_t *) f_refhv->y, 16*i, 16*j, dx, dy, edged_width, 0); |
451 |
|
interpolate16x16_quarterpel((uint8_t *) b_refv->y, (uint8_t *) b_ref->y, (uint8_t *) b_refh->y, |
452 |
|
(uint8_t *) b_refh->y + 64, (uint8_t *) b_refhv->y, 16*i, 16*j, b_dx, b_dy, edged_width, 0); |
453 |
|
|
454 |
|
for (k = 0; k < 4; k++) { |
455 |
|
transfer_8to16sub2(&dct_codes[k * 64], |
456 |
|
cur->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
457 |
|
f_refv->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
458 |
|
b_refv->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
459 |
|
edged_width); |
460 |
|
} |
461 |
|
b_dx /= 2; |
462 |
|
b_dy /= 2; |
463 |
|
dx /= 2; |
464 |
|
dy /= 2; |
465 |
|
|
466 |
case MODE_INTERPOLATE : |
} else { |
467 |
dx = mb->mvs[0].x; |
dx = mb->mvs[0].x; |
468 |
dy = mb->mvs[0].y; |
dy = mb->mvs[0].y; |
469 |
b_dx = mb->b_mvs[0].x; |
b_dx = mb->b_mvs[0].x; |
470 |
b_dy = mb->b_mvs[0].y; |
b_dy = mb->b_mvs[0].y; |
471 |
|
|
472 |
transfer_8to16sub2_c( |
for (k = 0; k < 4; k++) { |
473 |
dct_codes[0], |
transfer_8to16sub2(&dct_codes[k * 64], |
474 |
cur->y + (i*16) + (j*16)*edged_width, |
cur->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
475 |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
get_ref(f_ref->y, f_refh->y, f_refv->y, |
476 |
16*i, 16*j, 1, dx, dy, edged_width), |
f_refhv->y, 2*i + (k&1), 2*j + (k>>1), 8, dx, dy, |
477 |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
edged_width), |
478 |
16*i, 16*j, 1, b_dx, b_dy, edged_width), |
get_ref(b_ref->y, b_refh->y, b_refv->y, |
479 |
|
b_refhv->y, 2*i + (k&1), 2 * j+(k>>1), 8, b_dx, b_dy, |
480 |
|
edged_width), |
481 |
edged_width); |
edged_width); |
482 |
|
} |
483 |
|
|
484 |
transfer_8to16sub2_c( |
} |
|
dct_codes[1], |
|
|
cur->y + (i*16+8) + (j*16)*edged_width, |
|
|
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
|
|
16*i+8, 16*j, 1, dx, dy, edged_width), |
|
|
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
|
|
16*i+8, 16*j, 1, b_dx, b_dy, edged_width), |
|
|
edged_width); |
|
485 |
|
|
486 |
transfer_8to16sub2_c( |
|
487 |
dct_codes[2], |
dx = (dx >> 1) + roundtab_79[dx & 0x3]; |
488 |
cur->y + (i*16) + (j*16+8)*edged_width, |
dy = (dy >> 1) + roundtab_79[dy & 0x3]; |
489 |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
|
490 |
16*i, 16*j+8, 1, dx, dy, edged_width), |
b_dx = (b_dx >> 1) + roundtab_79[b_dx & 0x3]; |
491 |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
b_dy = (b_dy >> 1) + roundtab_79[b_dy & 0x3]; |
492 |
16*i, 16*j+8, 1, b_dx, b_dy, edged_width), |
|
493 |
|
transfer_8to16sub2(&dct_codes[4 * 64], |
494 |
|
cur->u + (y * 8) * edged_width / 2 + (x * 8), |
495 |
|
interpolate8x8_switch2(f_refv->u, b_ref->u, 8 * i, 8 * j, |
496 |
|
b_dx, b_dy, edged_width / 2, 0), |
497 |
|
interpolate8x8_switch2(f_refv->u + 8, f_ref->u, 8 * i, 8 * j, |
498 |
|
dx, dy, edged_width / 2, 0), |
499 |
|
edged_width / 2); |
500 |
|
|
501 |
|
transfer_8to16sub2(&dct_codes[5 * 64], |
502 |
|
cur->v + (y * 8) * edged_width / 2 + (x * 8), |
503 |
|
interpolate8x8_switch2(f_refv->u, b_ref->v, 8 * i, 8 * j, |
504 |
|
b_dx, b_dy, edged_width / 2, 0), |
505 |
|
interpolate8x8_switch2(f_refv->u + 8, f_ref->v, 8 * i, 8 * j, |
506 |
|
dx, dy, edged_width / 2, 0), |
507 |
|
edged_width / 2); |
508 |
|
|
509 |
|
break; |
510 |
|
|
511 |
|
case MODE_DIRECT: |
512 |
|
if (quarterpel) { |
513 |
|
for (k=0;k<4;k++) { |
514 |
|
|
515 |
|
dx = mb->qmvs[k].x; |
516 |
|
dy = mb->qmvs[k].y; |
517 |
|
b_dx = mb->b_qmvs[k].x; |
518 |
|
b_dy = mb->b_qmvs[k].y; |
519 |
|
|
520 |
|
interpolate8x8_quarterpel((uint8_t *) f_refv->y, |
521 |
|
(uint8_t *) f_ref->y, |
522 |
|
(uint8_t *) f_refh->y, |
523 |
|
(uint8_t *) f_refh->y + 64, |
524 |
|
(uint8_t *) f_refhv->y, |
525 |
|
16*i + (k&1)*8, 16*j + (k>>1)*8, dx, dy, edged_width, 0); |
526 |
|
interpolate8x8_quarterpel((uint8_t *) b_refv->y, |
527 |
|
(uint8_t *) b_ref->y, |
528 |
|
(uint8_t *) b_refh->y, |
529 |
|
(uint8_t *) b_refh->y + 64, |
530 |
|
(uint8_t *) b_refhv->y, |
531 |
|
16*i + (k&1)*8, 16*j + (k>>1)*8, b_dx, b_dy, edged_width, 0); |
532 |
|
|
533 |
|
|
534 |
|
transfer_8to16sub2(&dct_codes[k * 64], |
535 |
|
cur->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
536 |
|
f_refv->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
537 |
|
b_refv->y + (i * 16+(k&1)*8) + (j * 16+((k>>1)*8)) * edged_width, |
538 |
edged_width); |
edged_width); |
539 |
|
} |
540 |
|
sum = mb->qmvs[0].y/2 + mb->qmvs[1].y/2 + mb->qmvs[2].y/2 + mb->qmvs[3].y/2; |
541 |
|
dy = (sum >> 3) + roundtab_76[sum & 0xf]; |
542 |
|
sum = mb->qmvs[0].x/2 + mb->qmvs[1].x/2 + mb->qmvs[2].x/2 + mb->qmvs[3].x/2; |
543 |
|
dx = (sum >> 3) + roundtab_76[sum & 0xf]; |
544 |
|
|
545 |
|
sum = mb->b_qmvs[0].y/2 + mb->b_qmvs[1].y/2 + mb->b_qmvs[2].y/2 + mb->b_qmvs[3].y/2; |
546 |
|
b_dy = (sum >> 3) + roundtab_76[sum & 0xf]; |
547 |
|
sum = mb->b_qmvs[0].x/2 + mb->b_qmvs[1].x/2 + mb->b_qmvs[2].x/2 + mb->b_qmvs[3].x/2; |
548 |
|
b_dx = (sum >> 3) + roundtab_76[sum & 0xf]; |
549 |
|
|
550 |
|
} else { |
551 |
|
for (k=0;k<4;k++) { |
552 |
|
dx = mb->mvs[k].x; |
553 |
|
dy = mb->mvs[k].y; |
554 |
|
|
555 |
|
b_dx = mb->b_mvs[k].x; |
556 |
|
b_dy = mb->b_mvs[k].y; |
557 |
|
|
558 |
transfer_8to16sub2_c( |
transfer_8to16sub2(&dct_codes[k * 64], |
559 |
dct_codes[3], |
cur->y + (i*16 + (k&1)*8) + (j*16 + (k>>1)*8 ) * edged_width, |
|
cur->y + (i*16+8) + (j*16+8)*edged_width, |
|
560 |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
get_ref(f_ref->y, f_refh->y, f_refv->y, f_refhv->y, |
561 |
16*i + 8, 16*j + 8, 1, dx, dy, edged_width), |
2*i + (k&1), 2*j + (k>>1), 8, dx, dy, |
562 |
|
edged_width), |
563 |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
get_ref(b_ref->y, b_refh->y, b_refv->y, b_refhv->y, |
564 |
16*i + 8, 16*j + 8, 1, b_dx, b_dy, edged_width), |
2*i + (k&1), 2*j + (k>>1), 8, b_dx, b_dy, |
565 |
|
edged_width), |
566 |
edged_width); |
edged_width); |
567 |
|
} |
568 |
|
|
569 |
|
sum = mb->mvs[0].x + mb->mvs[1].x + mb->mvs[2].x + mb->mvs[3].x; |
570 |
|
dx = (sum == 0 ? 0 : SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2)); |
571 |
|
|
572 |
dx = (dx & 3) ? (dx >> 1) | 1 : dx / 2; |
sum = mb->mvs[0].y + mb->mvs[1].y + mb->mvs[2].y + mb->mvs[3].y; |
573 |
dy = (dy & 3) ? (dy >> 1) | 1 : dy / 2; |
dy = (sum == 0 ? 0 : SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2)); |
574 |
|
|
575 |
b_dx = (b_dx & 3) ? (b_dx >> 1) | 1 : b_dx / 2; |
sum = mb->b_mvs[0].x + mb->b_mvs[1].x + mb->b_mvs[2].x + mb->b_mvs[3].x; |
576 |
b_dy = (b_dy & 3) ? (b_dy >> 1) | 1 : b_dy / 2; |
b_dx = (sum == 0 ? 0 : SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2)); |
577 |
|
|
578 |
transfer_8to16sub2_c( |
sum = mb->b_mvs[0].y + mb->b_mvs[1].y + mb->b_mvs[2].y + mb->b_mvs[3].y; |
579 |
dct_codes[4], |
b_dy = (sum == 0 ? 0 : SIGN(sum) * (roundtab[ABS(sum) % 16] + (ABS(sum) / 16) * 2)); |
580 |
|
|
581 |
|
} |
582 |
|
transfer_8to16sub2(&dct_codes[4 * 64], |
583 |
cur->u + (y*8)*edged_width/2 + (x*8), |
cur->u + (y*8)*edged_width/2 + (x*8), |
584 |
get_ref(f_ref->u, f_refh->u, f_refv->u, f_refhv->u, |
interpolate8x8_switch2(f_refv->u, b_ref->u, 8 * i, 8 * j, |
585 |
8*i, 8*j, 1, dx, dy, edged_width/2), |
b_dx, b_dy, edged_width / 2, 0), |
586 |
get_ref(b_ref->u, b_refh->u, b_refv->u, b_refhv->u, |
interpolate8x8_switch2(f_refv->u + 8, f_ref->u, 8 * i, 8 * j, dx, dy, |
587 |
8*i, 8*j, 1, b_dx, b_dy, edged_width/2), |
edged_width / 2, 0), |
588 |
edged_width/2); |
edged_width/2); |
589 |
|
|
590 |
transfer_8to16sub2_c( |
transfer_8to16sub2(&dct_codes[5 * 64], |
|
dct_codes[5], |
|
591 |
cur->v + (y*8)*edged_width/2 + (x*8), |
cur->v + (y*8)*edged_width/2 + (x*8), |
592 |
get_ref(f_ref->v, f_refh->v, f_refv->v, f_refhv->v, |
interpolate8x8_switch2(f_refv->u, b_ref->v, 8 * i, 8 * j, |
593 |
8*i, 8*j, 1, dx, dy, edged_width/2), |
b_dx, b_dy, edged_width / 2, 0), |
594 |
get_ref(b_ref->v, b_refh->v, b_refv->v, b_refhv->v, |
interpolate8x8_switch2(f_refv->u + 8, f_ref->v, 8 * i, 8 * j, |
595 |
8*i, 8*j, 1, b_dx, b_dy, edged_width/2), |
dx, dy, edged_width / 2, 0), |
596 |
edged_width/2); |
edged_width/2); |
597 |
|
|
|
break; |
|
598 |
|
|
|
case MODE_DIRECT : |
|
|
// todo |
|
599 |
break; |
break; |
600 |
} |
} |
|
|
|
601 |
} |
} |
|
|
|