Go to the documentation of this file.
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 - ((b0 + b2 + 2) >> 2))
89 #define COMPOSE_DIRAC53iH0(b0, b1, b2)\
90 (b1 + ((b0 + b2 + 1) >> 1))
92 #define COMPOSE_DD97iH0(b0, b1, b2, b3, b4)\
93 (b2 + ((-b0 + 9*b1 + 9*b3 - b4 + 8) >> 4))
95 #define COMPOSE_DD137iL0(b0, b1, b2, b3, b4)\
96 (b2 - ((-b0 + 9*b1 + 9*b3 - b4 + 16) >> 5))
98 #define COMPOSE_HAARiL0(b0, b1)\
99 (b0 - ((b1 + 1) >> 1))
101 #define COMPOSE_HAARiH0(b0, b1)\
104 #define COMPOSE_FIDELITYiL0(b0, b1, b2, b3, b4, b5, b6, b7, b8)\
105 (b4 - ((-8*(b0+b8) + 21*(b1+b7) - 46*(b2+b6) + 161*(b3+b5) + 128) >> 8))
107 #define COMPOSE_FIDELITYiH0(b0, b1, b2, b3, b4, b5, b6, b7, b8)\
108 (b4 + ((-2*(b0+b8) + 10*(b1+b7) - 25*(b2+b6) + 81*(b3+b5) + 128) >> 8))
110 #define COMPOSE_DAUB97iL1(b0, b1, b2)\
111 (b1 - ((1817*(b0 + b2) + 2048) >> 12))
113 #define COMPOSE_DAUB97iH1(b0, b1, b2)\
114 (b1 - (( 113*(b0 + b2) + 64) >> 7))
116 #define COMPOSE_DAUB97iL0(b0, b1, b2)\
117 (b1 + (( 217*(b0 + b2) + 2048) >> 12))
119 #define COMPOSE_DAUB97iH0(b0, b1, b2)\
120 (b1 + ((6497*(b0 + b2) + 2048) >> 12))