21 #ifndef AVCODEC_DIRAC_DWT_H
22 #define AVCODEC_DIRAC_DWT_H
29 #define MAX_DWT_SUPPORT 8
30 #define MAX_DECOMPOSITIONS 8
86 #define COMPOSE_53iL0(b0, b1, b2)\
87 (b1 - ((int)(b0 + (unsigned)(b2) + 2) >> 2))
89 #define COMPOSE_DIRAC53iH0(b0, b1, b2)\
90 (b1 + ((int)(b0 + (unsigned)(b2) + 1) >> 1))
92 #define COMPOSE_DD97iH0(b0, b1, b2, b3, b4)\
93 (int)(((unsigned)(b2) + ((int)(9U*b1 + 9U*b3 - b4 - b0 + 8) >> 4)))
95 #define COMPOSE_DD137iL0(b0, b1, b2, b3, b4)\
96 (int)(((unsigned)(b2) - ((int)(9U*b1 + 9U*b3 - b4 - b0 + 16) >> 5)))
98 #define COMPOSE_HAARiL0(b0, b1)\
99 ((int)(b0 - (unsigned)((int)(b1 + 1U) >> 1)))
101 #define COMPOSE_HAARiH0(b0, b1)\
102 ((int)(b0 + (unsigned)(b1)))
104 #define COMPOSE_FIDELITYiL0(b0, b1, b2, b3, b4, b5, b6, b7, b8)\
105 ((unsigned)b4 - ((int)(-8*(b0+(unsigned)b8) + 21*(b1+(unsigned)b7) - 46*(b2+(unsigned)b6) + 161*(b3+(unsigned)b5) + 128) >> 8))
107 #define COMPOSE_FIDELITYiH0(b0, b1, b2, b3, b4, b5, b6, b7, b8)\
108 ((unsigned)b4 + ((int)(-2*(b0+(unsigned)b8) + 10*(b1+(unsigned)b7) - 25*(b2+(unsigned)b6) + 81*(b3+(unsigned)b5) + 128) >> 8))
110 #define COMPOSE_DAUB97iL1(b0, b1, b2)\
111 ((unsigned)(b1) - ((int)(1817*(b0 + (unsigned)b2) + 2048) >> 12))
113 #define COMPOSE_DAUB97iH1(b0, b1, b2)\
114 ((unsigned)(b1) - ((int)( 113*(b0 + (unsigned)b2) + 64) >> 7))
116 #define COMPOSE_DAUB97iL0(b0, b1, b2)\
117 ((unsigned)(b1) + ((int)( 217*(b0 + (unsigned)b2) + 2048) >> 12))
119 #define COMPOSE_DAUB97iH0(b0, b1, b2)\
120 ((unsigned)(b1) + ((int)(6497*(b0 + (unsigned)b2) + 2048) >> 12))
void(* spatial_compose)(struct DWTContext *cs, int level, int width, int height, int stride)
void ff_spatial_idwt_slice2(DWTContext *d, int y)
void(* vertical_compose_h1)(void)
int ff_spatial_idwt_init2(DWTContext *d, IDWTELEM *buffer, int width, int height, int stride, enum dwt_type type, int decomposition_count, IDWTELEM *temp)
void(* vertical_compose_9tap)(IDWTELEM *dst, IDWTELEM *b[8], int width)
void(* vertical_compose_2tap)(IDWTELEM *b0, IDWTELEM *b1, int width)
void(* vertical_compose_h0)(void)
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
void(* vertical_compose_3tap)(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
BYTE int const BYTE int int int height
void(* horizontal_compose)(IDWTELEM *b, IDWTELEM *tmp, int width)
DWTCompose cs[MAX_DECOMPOSITIONS]
#define MAX_DECOMPOSITIONS
GLint GLenum GLboolean GLsizei stride
IDWTELEM * b[MAX_DWT_SUPPORT]
void(* vertical_compose)(void)
one set of lowpass and highpass combined
void(* vertical_compose_5tap)(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, int width)
void(* vertical_compose_l0)(void)
void(* vertical_compose_l1)(void)