24 #if defined(TEMPLATE_8bit)
26 # define RENAME(N) N ## _8bit
30 #elif defined(TEMPLATE_10bit)
32 # define RENAME(N) N ## _10bit
34 # undef TEMPLATE_10bit
36 #elif defined(TEMPLATE_12bit)
38 # define RENAME(N) N ## _12bit
40 # undef TEMPLATE_12bit
52 b1[
i] -= (
unsigned)((
int)(b0[
i] + (
unsigned)b2[
i] + 2) >> 2);
59 for (
i = 0;
i < w2;
i++) {
68 const int w2 =
w >> 1;
73 for (x = 1; x < w2; x++) {
85 const int w2 =
w >> 1;
90 for (x = 1; x < w2; x++)
97 for (x = 0; x < w2; x++) {
105 const int w2 =
w >> 1;
112 for (x = 2; x < w2-1; x++)
120 for (x = 0; x < w2; x++) {
129 const int w2 =
w >> 1;
132 for (x = 0; x < w2; x++) {
156 const int w2 =
w >> 1;
162 for (x = 0; x < w2; x++) {
163 for (
i = 0;
i < 8;
i++)
164 v[
i] =
b[av_clip(x-3+
i, 0, w2-1)];
168 for (x = 0; x < w2; x++) {
169 for (
i = 0;
i < 8;
i++)
170 v[
i] =
tmp[av_clip(x-4+
i, 0, w2-1)];
179 const int w2 =
w >> 1;
185 for (x = 1; x < w2; x++) {
193 b[0] = ~((~b0) >> 1);
194 for (x = 1; x < w2; x++) {
197 b[2*x-1] = ~((~b1) >> 1);
198 b[2*x ] = ~((~b2) >> 1);
347 for (
i = 0;
i < 6;
i++)
355 if(y-1<(
unsigned)
height) d->horizontal_compose(
b[0], d->temp,
width);
356 if(y+0<(
unsigned)
height) d->horizontal_compose(
b[1], d->temp,
width);
358 for (
i = 0;
i < 6;
i++)
377 if(y-1<(
unsigned)
height) d->horizontal_compose(
b[0], d->temp,
width);
378 if(y+0<(
unsigned)
height) d->horizontal_compose(
b[1], d->temp,
width);
393 for (
i = 0;
i < 8;
i++)
401 if(y-1<(
unsigned)
height) d->horizontal_compose(
b[0], d->temp,
width);
402 if(y+0<(
unsigned)
height) d->horizontal_compose(
b[1], d->temp,
width);
404 for (
i = 0;
i < 8;
i++)
413 int y = d->cs[
level].y;
418 d->horizontal_compose(b0, d->temp,
width);
419 d->horizontal_compose(b1, d->temp,
width);
433 for (y = 1; y <
height; y += 2) {
434 for (
i = 0;
i < 8;
i++)
439 for (y = 0; y <
height; y += 2) {
440 for (
i = 0;
i < 8;
i++)
445 for (y = 0; y <
height; y++)
446 d->horizontal_compose(d->buffer + y*
stride, d->temp,
width);
461 for (
i = 0;
i < 4;
i++)
471 if(y-1<(
unsigned)
height) d->horizontal_compose(
b[0], d->temp,
width);
472 if(y+0<(
unsigned)
height) d->horizontal_compose(
b[1], d->temp,
width);
474 for (
i = 0;
i < 4;
i++)
526 int hl = d->height >>
level;
527 int stride_l = d->stride <<
level;
531 RENAME(spatial_compose_dd97i_init)(d->cs+
level, d->buffer, hl, stride_l);
537 RENAME(spatial_compose_dd137i_init)(d->cs+
level, d->buffer, hl, stride_l);
554 d->spatial_compose =
RENAME(spatial_compose_dd97i_dy);
556 d->vertical_compose_h0 = (
void*)
RENAME(vertical_compose_dd97iH0);
557 d->horizontal_compose =
RENAME(horizontal_compose_dd97i);
561 d->spatial_compose =
RENAME(spatial_compose_dirac53i_dy);
563 d->vertical_compose_h0 = (
void*)
RENAME(vertical_compose_dirac53iH0);
564 d->horizontal_compose =
RENAME(horizontal_compose_dirac53i);
568 d->spatial_compose =
RENAME(spatial_compose_dd137i_dy);
569 d->vertical_compose_l0 = (
void*)
RENAME(vertical_compose_dd137iL0);
570 d->vertical_compose_h0 = (
void*)
RENAME(vertical_compose_dd97iH0);
571 d->horizontal_compose =
RENAME(horizontal_compose_dd137i);
576 d->spatial_compose =
RENAME(spatial_compose_haari_dy);
577 d->vertical_compose = (
void*)
RENAME(vertical_compose_haar);
579 d->horizontal_compose =
RENAME(horizontal_compose_haar0i);
581 d->horizontal_compose =
RENAME(horizontal_compose_haar1i);
585 d->spatial_compose =
RENAME(spatial_compose_fidelity);
586 d->vertical_compose_l0 = (
void*)
RENAME(vertical_compose_fidelityiL0);
587 d->vertical_compose_h0 = (
void*)
RENAME(vertical_compose_fidelityiH0);
588 d->horizontal_compose =
RENAME(horizontal_compose_fidelityi);
592 d->spatial_compose =
RENAME(spatial_compose_daub97i_dy);
593 d->vertical_compose_l0 = (
void*)
RENAME(vertical_compose_daub97iL0);
594 d->vertical_compose_h0 = (
void*)
RENAME(vertical_compose_daub97iH0);
595 d->vertical_compose_l1 = (
void*)
RENAME(vertical_compose_daub97iL1);
596 d->vertical_compose_h1 = (
void*)
RENAME(vertical_compose_daub97iH1);
597 d->horizontal_compose =
RENAME(horizontal_compose_daub97i);