comparison faandct.c @ 6408:7af599600f2d libavcodec

One variable less. No real change to the actual code.
author michael
date Tue, 26 Feb 2008 15:19:37 +0000
parents 0a50abd54b7f
children 813ff53ed933
comparison
equal deleted inserted replaced
6407:7f9e2b5893fc 6408:7af599600f2d
75 75
76 static av_always_inline void row_fdct(FLOAT temp[64], DCTELEM * data) 76 static av_always_inline void row_fdct(FLOAT temp[64], DCTELEM * data)
77 { 77 {
78 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 78 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
79 FLOAT tmp10, tmp11, tmp12, tmp13; 79 FLOAT tmp10, tmp11, tmp12, tmp13;
80 FLOAT z1, z2, z3, z4, z5, z11, z13; 80 FLOAT z2, z3, z4, z5, z11, z13;
81 int i; 81 int i;
82 82
83 for (i=0; i<8*8; i+=8) { 83 for (i=0; i<8*8; i+=8) {
84 tmp0= data[0 + i] + data[7 + i]; 84 tmp0= data[0 + i] + data[7 + i];
85 tmp7= data[0 + i] - data[7 + i]; 85 tmp7= data[0 + i] - data[7 + i];
96 tmp12= tmp1 - tmp2; 96 tmp12= tmp1 - tmp2;
97 97
98 temp[0 + i]= tmp10 + tmp11; 98 temp[0 + i]= tmp10 + tmp11;
99 temp[4 + i]= tmp10 - tmp11; 99 temp[4 + i]= tmp10 - tmp11;
100 100
101 z1= (tmp12 + tmp13)*A1; 101 tmp12 += tmp13;
102 temp[2 + i]= tmp13 + z1; 102 tmp12 *= A1;
103 temp[6 + i]= tmp13 - z1; 103 temp[2 + i]= tmp13 + tmp12;
104 temp[6 + i]= tmp13 - tmp12;
104 105
105 tmp10= tmp4 + tmp5; 106 tmp10= tmp4 + tmp5;
106 tmp11= tmp5 + tmp6; 107 tmp11= tmp5 + tmp6;
107 tmp12= tmp6 + tmp7; 108 tmp12= tmp6 + tmp7;
108 109
123 124
124 void ff_faandct(DCTELEM * data) 125 void ff_faandct(DCTELEM * data)
125 { 126 {
126 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 127 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
127 FLOAT tmp10, tmp11, tmp12, tmp13; 128 FLOAT tmp10, tmp11, tmp12, tmp13;
128 FLOAT z1, z2, z3, z4, z5, z11, z13; 129 FLOAT z2, z3, z4, z5, z11, z13;
129 FLOAT temp[64]; 130 FLOAT temp[64];
130 int i; 131 int i;
131 132
132 emms_c(); 133 emms_c();
133 134
149 tmp12= tmp1 - tmp2; 150 tmp12= tmp1 - tmp2;
150 151
151 data[8*0 + i]= lrintf(SCALE(8*0 + i) * (tmp10 + tmp11)); 152 data[8*0 + i]= lrintf(SCALE(8*0 + i) * (tmp10 + tmp11));
152 data[8*4 + i]= lrintf(SCALE(8*4 + i) * (tmp10 - tmp11)); 153 data[8*4 + i]= lrintf(SCALE(8*4 + i) * (tmp10 - tmp11));
153 154
154 z1= (tmp12 + tmp13)* A1; 155 tmp12 += tmp13;
155 data[8*2 + i]= lrintf(SCALE(8*2 + i) * (tmp13 + z1)); 156 tmp12 *= A1;
156 data[8*6 + i]= lrintf(SCALE(8*6 + i) * (tmp13 - z1)); 157 data[8*2 + i]= lrintf(SCALE(8*2 + i) * (tmp13 + tmp12));
158 data[8*6 + i]= lrintf(SCALE(8*6 + i) * (tmp13 - tmp12));
157 159
158 tmp10= tmp4 + tmp5; 160 tmp10= tmp4 + tmp5;
159 tmp11= tmp5 + tmp6; 161 tmp11= tmp5 + tmp6;
160 tmp12= tmp6 + tmp7; 162 tmp12= tmp6 + tmp7;
161 163
176 178
177 void ff_faandct248(DCTELEM * data) 179 void ff_faandct248(DCTELEM * data)
178 { 180 {
179 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 181 FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
180 FLOAT tmp10, tmp11, tmp12, tmp13; 182 FLOAT tmp10, tmp11, tmp12, tmp13;
181 FLOAT z1;
182 FLOAT temp[64]; 183 FLOAT temp[64];
183 int i; 184 int i;
184 185
185 emms_c(); 186 emms_c();
186 187
202 tmp13 = tmp0 - tmp3; 203 tmp13 = tmp0 - tmp3;
203 204
204 data[8*0 + i] = lrintf(SCALE(8*0 + i) * (tmp10 + tmp11)); 205 data[8*0 + i] = lrintf(SCALE(8*0 + i) * (tmp10 + tmp11));
205 data[8*4 + i] = lrintf(SCALE(8*4 + i) * (tmp10 - tmp11)); 206 data[8*4 + i] = lrintf(SCALE(8*4 + i) * (tmp10 - tmp11));
206 207
207 z1 = (tmp12 + tmp13)* A1; 208 tmp12 += tmp13;
208 data[8*2 + i] = lrintf(SCALE(8*2 + i) * (tmp13 + z1)); 209 tmp12 *= A1;
209 data[8*6 + i] = lrintf(SCALE(8*6 + i) * (tmp13 - z1)); 210 data[8*2 + i] = lrintf(SCALE(8*2 + i) * (tmp13 + tmp12));
211 data[8*6 + i] = lrintf(SCALE(8*6 + i) * (tmp13 - tmp12));
210 212
211 tmp10 = tmp4 + tmp7; 213 tmp10 = tmp4 + tmp7;
212 tmp11 = tmp5 + tmp6; 214 tmp11 = tmp5 + tmp6;
213 tmp12 = tmp5 - tmp6; 215 tmp12 = tmp5 - tmp6;
214 tmp13 = tmp4 - tmp7; 216 tmp13 = tmp4 - tmp7;
215 217
216 data[8*1 + i] = lrintf(SCALE(8*0 + i) * (tmp10 + tmp11)); 218 data[8*1 + i] = lrintf(SCALE(8*0 + i) * (tmp10 + tmp11));
217 data[8*5 + i] = lrintf(SCALE(8*4 + i) * (tmp10 - tmp11)); 219 data[8*5 + i] = lrintf(SCALE(8*4 + i) * (tmp10 - tmp11));
218 220
219 z1 = (tmp12 + tmp13)* A1; 221 tmp12 += tmp13;
220 data[8*3 + i] = lrintf(SCALE(8*2 + i) * (tmp13 + z1)); 222 tmp12 *= A1;
221 data[8*7 + i] = lrintf(SCALE(8*6 + i) * (tmp13 - z1)); 223 data[8*3 + i] = lrintf(SCALE(8*2 + i) * (tmp13 + tmp12));
224 data[8*7 + i] = lrintf(SCALE(8*6 + i) * (tmp13 - tmp12));
222 } 225 }
223 } 226 }