comparison vorbis_data.c @ 7933:6375f3f92e74 libavcodec

Use DECLARE_ALIGNED_16() on vorbis windows as they are used in dsputils functions that require such alignment. Patch by Siarhei Siamashka (siarhei siamashka gmail com)
author superdump
date Sun, 28 Sep 2008 16:16:05 +0000
parents 322023e630a6
children d157ccc267e7
comparison
equal deleted inserted replaced
7932:7729da3e4866 7933:6375f3f92e74
16 * You should have received a copy of the GNU Lesser General Public 16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software 17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21 #include "dsputil.h"
21 #include "vorbis.h" 22 #include "vorbis.h"
22 23
23 static const float vwin64[32] = { 24 DECLARE_ALIGNED_16(static const float, vwin64[32]) = {
24 0.0009460463F, 0.0085006468F, 0.0235352254F, 0.0458950567F, 25 0.0009460463F, 0.0085006468F, 0.0235352254F, 0.0458950567F,
25 0.0753351908F, 0.1115073077F, 0.1539457973F, 0.2020557475F, 26 0.0753351908F, 0.1115073077F, 0.1539457973F, 0.2020557475F,
26 0.2551056759F, 0.3122276645F, 0.3724270287F, 0.4346027792F, 27 0.2551056759F, 0.3122276645F, 0.3724270287F, 0.4346027792F,
27 0.4975789974F, 0.5601459521F, 0.6211085051F, 0.6793382689F, 28 0.4975789974F, 0.5601459521F, 0.6211085051F, 0.6793382689F,
28 0.7338252629F, 0.7837245849F, 0.8283939355F, 0.8674186656F, 29 0.7338252629F, 0.7837245849F, 0.8283939355F, 0.8674186656F,
29 0.9006222429F, 0.9280614787F, 0.9500073081F, 0.9669131782F, 30 0.9006222429F, 0.9280614787F, 0.9500073081F, 0.9669131782F,
30 0.9793740220F, 0.9880792941F, 0.9937636139F, 0.9971582668F, 31 0.9793740220F, 0.9880792941F, 0.9937636139F, 0.9971582668F,
31 0.9989462667F, 0.9997230082F, 0.9999638688F, 0.9999995525F, 32 0.9989462667F, 0.9997230082F, 0.9999638688F, 0.9999995525F,
32 }; 33 };
33 34
34 static const float vwin128[64] = { 35 DECLARE_ALIGNED_16(static const float, vwin128[64]) = {
35 0.0002365472F, 0.0021280687F, 0.0059065254F, 0.0115626550F, 36 0.0002365472F, 0.0021280687F, 0.0059065254F, 0.0115626550F,
36 0.0190823442F, 0.0284463735F, 0.0396300935F, 0.0526030430F, 37 0.0190823442F, 0.0284463735F, 0.0396300935F, 0.0526030430F,
37 0.0673285281F, 0.0837631763F, 0.1018564887F, 0.1215504095F, 38 0.0673285281F, 0.0837631763F, 0.1018564887F, 0.1215504095F,
38 0.1427789367F, 0.1654677960F, 0.1895342001F, 0.2148867160F, 39 0.1427789367F, 0.1654677960F, 0.1895342001F, 0.2148867160F,
39 0.2414252576F, 0.2690412240F, 0.2976177952F, 0.3270303960F, 40 0.2414252576F, 0.2690412240F, 0.2976177952F, 0.3270303960F,
48 0.9925852598F, 0.9947991032F, 0.9964856900F, 0.9977308602F, 49 0.9925852598F, 0.9947991032F, 0.9964856900F, 0.9977308602F,
49 0.9986155015F, 0.9992144193F, 0.9995953200F, 0.9998179155F, 50 0.9986155015F, 0.9992144193F, 0.9995953200F, 0.9998179155F,
50 0.9999331503F, 0.9999825563F, 0.9999977357F, 0.9999999720F, 51 0.9999331503F, 0.9999825563F, 0.9999977357F, 0.9999999720F,
51 }; 52 };
52 53
53 static const float vwin256[128] = { 54 DECLARE_ALIGNED_16(static const float, vwin256[128]) = {
54 0.0000591390F, 0.0005321979F, 0.0014780301F, 0.0028960636F, 55 0.0000591390F, 0.0005321979F, 0.0014780301F, 0.0028960636F,
55 0.0047854363F, 0.0071449926F, 0.0099732775F, 0.0132685298F, 56 0.0047854363F, 0.0071449926F, 0.0099732775F, 0.0132685298F,
56 0.0170286741F, 0.0212513119F, 0.0259337111F, 0.0310727950F, 57 0.0170286741F, 0.0212513119F, 0.0259337111F, 0.0310727950F,
57 0.0366651302F, 0.0427069140F, 0.0491939614F, 0.0561216907F, 58 0.0366651302F, 0.0427069140F, 0.0491939614F, 0.0561216907F,
58 0.0634851102F, 0.0712788035F, 0.0794969160F, 0.0881331402F, 59 0.0634851102F, 0.0712788035F, 0.0794969160F, 0.0881331402F,
83 0.9995171241F, 0.9996636648F, 0.9997741654F, 0.9998550016F, 84 0.9995171241F, 0.9996636648F, 0.9997741654F, 0.9998550016F,
84 0.9999119692F, 0.9999502656F, 0.9999744742F, 0.9999885497F, 85 0.9999119692F, 0.9999502656F, 0.9999744742F, 0.9999885497F,
85 0.9999958064F, 0.9999989077F, 0.9999998584F, 0.9999999983F, 86 0.9999958064F, 0.9999989077F, 0.9999998584F, 0.9999999983F,
86 }; 87 };
87 88
88 static const float vwin512[256] = { 89 DECLARE_ALIGNED_16(static const float, vwin512[256]) = {
89 0.0000147849F, 0.0001330607F, 0.0003695946F, 0.0007243509F, 90 0.0000147849F, 0.0001330607F, 0.0003695946F, 0.0007243509F,
90 0.0011972759F, 0.0017882983F, 0.0024973285F, 0.0033242588F, 91 0.0011972759F, 0.0017882983F, 0.0024973285F, 0.0033242588F,
91 0.0042689632F, 0.0053312973F, 0.0065110982F, 0.0078081841F, 92 0.0042689632F, 0.0053312973F, 0.0065110982F, 0.0078081841F,
92 0.0092223540F, 0.0107533880F, 0.0124010466F, 0.0141650703F, 93 0.0092223540F, 0.0107533880F, 0.0124010466F, 0.0141650703F,
93 0.0160451800F, 0.0180410758F, 0.0201524373F, 0.0223789233F, 94 0.0160451800F, 0.0180410758F, 0.0201524373F, 0.0223789233F,
150 0.9999695157F, 0.9999788026F, 0.9999857885F, 0.9999908879F, 151 0.9999695157F, 0.9999788026F, 0.9999857885F, 0.9999908879F,
151 0.9999944746F, 0.9999968817F, 0.9999984010F, 0.9999992833F, 152 0.9999944746F, 0.9999968817F, 0.9999984010F, 0.9999992833F,
152 0.9999997377F, 0.9999999317F, 0.9999999911F, 0.9999999999F, 153 0.9999997377F, 0.9999999317F, 0.9999999911F, 0.9999999999F,
153 }; 154 };
154 155
155 static const float vwin1024[512] = { 156 DECLARE_ALIGNED_16(static const float, vwin1024[512]) = {
156 0.0000036962F, 0.0000332659F, 0.0000924041F, 0.0001811086F, 157 0.0000036962F, 0.0000332659F, 0.0000924041F, 0.0001811086F,
157 0.0002993761F, 0.0004472021F, 0.0006245811F, 0.0008315063F, 158 0.0002993761F, 0.0004472021F, 0.0006245811F, 0.0008315063F,
158 0.0010679699F, 0.0013339631F, 0.0016294757F, 0.0019544965F, 159 0.0010679699F, 0.0013339631F, 0.0016294757F, 0.0019544965F,
159 0.0023090133F, 0.0026930125F, 0.0031064797F, 0.0035493989F, 160 0.0023090133F, 0.0026930125F, 0.0031064797F, 0.0035493989F,
160 0.0040217533F, 0.0045235250F, 0.0050546946F, 0.0056152418F, 161 0.0040217533F, 0.0045235250F, 0.0050546946F, 0.0056152418F,
281 0.9999980900F, 0.9999986724F, 0.9999991103F, 0.9999994297F, 282 0.9999980900F, 0.9999986724F, 0.9999991103F, 0.9999994297F,
282 0.9999996543F, 0.9999998049F, 0.9999999000F, 0.9999999552F, 283 0.9999996543F, 0.9999998049F, 0.9999999000F, 0.9999999552F,
283 0.9999999836F, 0.9999999957F, 0.9999999994F, 1.0000000000F, 284 0.9999999836F, 0.9999999957F, 0.9999999994F, 1.0000000000F,
284 }; 285 };
285 286
286 static const float vwin2048[1024] = { 287 DECLARE_ALIGNED_16(static const float, vwin2048[1024]) = {
287 0.0000009241F, 0.0000083165F, 0.0000231014F, 0.0000452785F, 288 0.0000009241F, 0.0000083165F, 0.0000231014F, 0.0000452785F,
288 0.0000748476F, 0.0001118085F, 0.0001561608F, 0.0002079041F, 289 0.0000748476F, 0.0001118085F, 0.0001561608F, 0.0002079041F,
289 0.0002670379F, 0.0003335617F, 0.0004074748F, 0.0004887765F, 290 0.0002670379F, 0.0003335617F, 0.0004074748F, 0.0004887765F,
290 0.0005774661F, 0.0006735427F, 0.0007770054F, 0.0008878533F, 291 0.0005774661F, 0.0006735427F, 0.0007770054F, 0.0008878533F,
291 0.0010060853F, 0.0011317002F, 0.0012646969F, 0.0014050742F, 292 0.0010060853F, 0.0011317002F, 0.0012646969F, 0.0014050742F,
540 0.9999998805F, 0.9999999170F, 0.9999999444F, 0.9999999643F, 541 0.9999998805F, 0.9999999170F, 0.9999999444F, 0.9999999643F,
541 0.9999999784F, 0.9999999878F, 0.9999999937F, 0.9999999972F, 542 0.9999999784F, 0.9999999878F, 0.9999999937F, 0.9999999972F,
542 0.9999999990F, 0.9999999997F, 1.0000000000F, 1.0000000000F, 543 0.9999999990F, 0.9999999997F, 1.0000000000F, 1.0000000000F,
543 }; 544 };
544 545
545 static const float vwin4096[2048] = { 546 DECLARE_ALIGNED_16(static const float, vwin4096[2048]) = {
546 0.0000002310F, 0.0000020791F, 0.0000057754F, 0.0000113197F, 547 0.0000002310F, 0.0000020791F, 0.0000057754F, 0.0000113197F,
547 0.0000187121F, 0.0000279526F, 0.0000390412F, 0.0000519777F, 548 0.0000187121F, 0.0000279526F, 0.0000390412F, 0.0000519777F,
548 0.0000667623F, 0.0000833949F, 0.0001018753F, 0.0001222036F, 549 0.0000667623F, 0.0000833949F, 0.0001018753F, 0.0001222036F,
549 0.0001443798F, 0.0001684037F, 0.0001942754F, 0.0002219947F, 550 0.0001443798F, 0.0001684037F, 0.0001942754F, 0.0002219947F,
550 0.0002515616F, 0.0002829761F, 0.0003162380F, 0.0003513472F, 551 0.0002515616F, 0.0002829761F, 0.0003162380F, 0.0003513472F,
1055 0.9999999925F, 0.9999999948F, 0.9999999965F, 0.9999999978F, 1056 0.9999999925F, 0.9999999948F, 0.9999999965F, 0.9999999978F,
1056 0.9999999986F, 0.9999999992F, 0.9999999996F, 0.9999999998F, 1057 0.9999999986F, 0.9999999992F, 0.9999999996F, 0.9999999998F,
1057 0.9999999999F, 1.0000000000F, 1.0000000000F, 1.0000000000F, 1058 0.9999999999F, 1.0000000000F, 1.0000000000F, 1.0000000000F,
1058 }; 1059 };
1059 1060
1060 static const float vwin8192[4096] = { 1061 DECLARE_ALIGNED_16(static const float, vwin8192[4096]) = {
1061 0.0000000578F, 0.0000005198F, 0.0000014438F, 0.0000028299F, 1062 0.0000000578F, 0.0000005198F, 0.0000014438F, 0.0000028299F,
1062 0.0000046780F, 0.0000069882F, 0.0000097604F, 0.0000129945F, 1063 0.0000046780F, 0.0000069882F, 0.0000097604F, 0.0000129945F,
1063 0.0000166908F, 0.0000208490F, 0.0000254692F, 0.0000305515F, 1064 0.0000166908F, 0.0000208490F, 0.0000254692F, 0.0000305515F,
1064 0.0000360958F, 0.0000421021F, 0.0000485704F, 0.0000555006F, 1065 0.0000360958F, 0.0000421021F, 0.0000485704F, 0.0000555006F,
1065 0.0000628929F, 0.0000707472F, 0.0000790635F, 0.0000878417F, 1066 0.0000628929F, 0.0000707472F, 0.0000790635F, 0.0000878417F,