Mercurial > libavcodec.hg
comparison ra288.c @ 7364:907d3376da93 libavcodec
Simplify co(): write constant in a more readable way
author | vitor |
---|---|
date | Thu, 24 Jul 2008 03:22:19 +0000 |
parents | d346c4da00bd |
children | 031d4866b192 |
comparison
equal
deleted
inserted
replaced
7363:d346c4da00bd | 7364:907d3376da93 |
---|---|
156 | 156 |
157 for (x=0; x <= n; x++) { | 157 for (x=0; x <= n; x++) { |
158 st2[x] = st2[x] * 0.5625 + buffer1[x]; | 158 st2[x] = st2[x] * 0.5625 + buffer1[x]; |
159 out[x] = st2[x] + buffer2[x]; | 159 out[x] = st2[x] + buffer2[x]; |
160 } | 160 } |
161 *out *= 1.00390625; /* to prevent clipping */ | 161 *out *= 257./256.; /* to prevent clipping */ |
162 } | 162 } |
163 | 163 |
164 static void update(Real288_internal *glob) | 164 static void update(Real288_internal *glob) |
165 { | 165 { |
166 float buffer1[40], temp1[37]; | 166 float buffer1[40], temp1[37]; |