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