40 for(i = 0; i < 4; i++){
41 const int z0 = 13*(block[i+4*0] + block[i+4*2]);
42 const int z1 = 13*(block[i+4*0] - block[i+4*2]);
43 const int z2 = 7* block[i+4*1] - 17*block[i+4*3];
44 const int z3 = 17* block[i+4*1] + 7*block[i+4*3];
46 temp[4*i+0] = z0 + z3;
47 temp[4*i+1] = z1 + z2;
48 temp[4*i+2] = z1 - z2;
49 temp[4*i+3] = z0 - z3;
62 memset(block, 0, 16*
sizeof(int16_t));
64 for(i = 0; i < 4; i++){
65 const int z0 = 13*(temp[4*0+i] + temp[4*2+i]) + 0x200;
66 const int z1 = 13*(temp[4*0+i] - temp[4*2+i]) + 0x200;
67 const int z2 = 7* temp[4*1+i] - 17*temp[4*3+i];
68 const int z3 = 17* temp[4*1+i] + 7*temp[4*3+i];
70 dst[0] = av_clip_uint8( dst[0] + ( (z0 + z3) >> 10 ) );
71 dst[1] = av_clip_uint8( dst[1] + ( (z1 + z2) >> 10 ) );
72 dst[2] = av_clip_uint8( dst[2] + ( (z1 - z2) >> 10 ) );
73 dst[3] = av_clip_uint8( dst[3] + ( (z0 - z3) >> 10 ) );
91 for(i = 0; i < 4; i++){
92 const int z0 = 39*(temp[4*0+i] + temp[4*2+i]);
93 const int z1 = 39*(temp[4*0+i] - temp[4*2+i]);
94 const int z2 = 21* temp[4*1+i] - 51*temp[4*3+i];
95 const int z3 = 51* temp[4*1+i] + 21*temp[4*3+i];
97 block[i*4+0] = (z0 + z3) >> 11;
98 block[i*4+1] = (z1 + z2) >> 11;
99 block[i*4+2] = (z1 - z2) >> 11;
100 block[i*4+3] = (z0 - z3) >> 11;
108 dc = (13*13*dc + 0x200) >> 10;
109 for (i = 0; i < 4; i++)
111 for (j = 0; j < 4; j++)
112 dst[j] = av_clip_uint8( dst[j] + dc );
120 int16_t
dc = (13 * 13 * 3 * block[0]) >> 11;
123 for (i = 0; i < 4; i++, block += 4)
124 for (j = 0; j < 4; j++)