27 #define COMPOSE_VERTICAL(ext, align) \ 28 void ff_vertical_compose53iL0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width); \ 29 void ff_vertical_compose_dirac53iH0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width); \ 30 void ff_vertical_compose_dd137iL0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, int width); \ 31 void ff_vertical_compose_dd97iH0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, int width); \ 32 void ff_vertical_compose_haar##ext(IDWTELEM *b0, IDWTELEM *b1, int width); \ 33 void ff_horizontal_compose_haar0i##ext(IDWTELEM *b, IDWTELEM *tmp, int w);\ 34 void ff_horizontal_compose_haar1i##ext(IDWTELEM *b, IDWTELEM *tmp, int w);\ 36 static void vertical_compose53iL0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width) \ 38 int i, width_align = width&~(align-1); \ 40 for(i=width_align; i<width; i++) \ 41 b1[i] = COMPOSE_53iL0(b0[i], b1[i], b2[i]); \ 43 ff_vertical_compose53iL0##ext(b0, b1, b2, width_align); \ 46 static void vertical_compose_dirac53iH0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width) \ 48 int i, width_align = width&~(align-1); \ 50 for(i=width_align; i<width; i++) \ 51 b1[i] = COMPOSE_DIRAC53iH0(b0[i], b1[i], b2[i]); \ 53 ff_vertical_compose_dirac53iH0##ext(b0, b1, b2, width_align); \ 56 static void vertical_compose_dd137iL0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, \ 57 IDWTELEM *b3, IDWTELEM *b4, int width) \ 59 int i, width_align = width&~(align-1); \ 61 for(i=width_align; i<width; i++) \ 62 b2[i] = COMPOSE_DD137iL0(b0[i], b1[i], b2[i], b3[i], b4[i]); \ 64 ff_vertical_compose_dd137iL0##ext(b0, b1, b2, b3, b4, width_align); \ 67 static void vertical_compose_dd97iH0##ext(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, \ 68 IDWTELEM *b3, IDWTELEM *b4, int width) \ 70 int i, width_align = width&~(align-1); \ 72 for(i=width_align; i<width; i++) \ 73 b2[i] = COMPOSE_DD97iH0(b0[i], b1[i], b2[i], b3[i], b4[i]); \ 75 ff_vertical_compose_dd97iH0##ext(b0, b1, b2, b3, b4, width_align); \ 77 static void vertical_compose_haar##ext(IDWTELEM *b0, IDWTELEM *b1, int width) \ 79 int i, width_align = width&~(align-1); \ 81 for(i=width_align; i<width; i++) { \ 82 b0[i] = COMPOSE_HAARiL0(b0[i], b1[i]); \ 83 b1[i] = COMPOSE_HAARiH0(b1[i], b0[i]); \ 86 ff_vertical_compose_haar##ext(b0, b1, width_align); \ 88 static void horizontal_compose_haar0i##ext(IDWTELEM *b, IDWTELEM *tmp, int w)\ 91 int x= w2 - (w2&(align-1));\ 92 ff_horizontal_compose_haar0i##ext(b, tmp, w);\ 94 for (; x < w2; x++) {\ 96 b[2*x+1] = COMPOSE_HAARiH0(b[x+w2], tmp[x]);\ 99 static void horizontal_compose_haar1i##ext(IDWTELEM *b, IDWTELEM *tmp, int w)\ 102 int x= w2 - (w2&(align-1));\ 103 ff_horizontal_compose_haar1i##ext(b, tmp, w);\ 105 for (; x < w2; x++) {\ 106 b[2*x ] = (tmp[x] + 1)>>1;\ 107 b[2*x+1] = (COMPOSE_HAARiH0(b[x+w2], tmp[x]) + 1)>>1;\ 121 static
void horizontal_compose_dd97i_ssse3(
IDWTELEM *b,
IDWTELEM *tmp,
int w)
125 ff_horizontal_compose_dd97i_ssse3(b, tmp, w);
127 for (; x < w2; x++) {
128 b[2*
x ] = (tmp[
x] + 1)>>1;
129 b[2*x+1] = (
COMPOSE_DD97iH0(tmp[x-1], tmp[x], b[x+w2], tmp[x+1], tmp[x+2]) + 1)>>1;
void(* vertical_compose_l0)(void)
output residual component w
#define COMPOSE_DD97iH0(b0, b1, b2, b3, b4)
#define AV_CPU_FLAG_SSSE3
Conroe SSSE3 functions.
#define COMPOSE_VERTICAL(ext, align)
void ff_spatial_idwt_init_mmx(DWTContext *d, enum dwt_type type)
typedef void(RENAME(mix_any_func_type))
#define AV_CPU_FLAG_MMX
standard MMX
void(* horizontal_compose)(IDWTELEM *b, IDWTELEM *tmp, int width)
void(* vertical_compose)(void)
one set of lowpass and highpass combined
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define AV_CPU_FLAG_SSE2
PIV SSE2 functions.
void(* vertical_compose_h0)(void)