WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74372
WebAudio: Optimize calculateNormalizationScale().
https://bugs.webkit.org/show_bug.cgi?id=74372
Summary
WebAudio: Optimize calculateNormalizationScale().
Jer Noble
Reported
2011-12-12 17:06:26 PST
WebAudio: Optimize calculateNormalizationScale().
Attachments
Patch
(5.82 KB, patch)
2011-12-12 17:13 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(6.55 KB, patch)
2012-01-12 16:08 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(6.38 KB, patch)
2012-01-13 10:59 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(6.63 KB, patch)
2012-01-13 12:41 PST
,
Jer Noble
eric.carlson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2011-12-12 17:13:28 PST
Created
attachment 118916
[details]
Patch
Chris Rogers
Comment 2
2012-01-12 14:44:52 PST
Comment on
attachment 118916
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=118916&action=review
> Source/WebCore/platform/audio/Reverb.cpp:67 > + float channelPower = 0.0;
WebKit style: 0 instead of 0.0
> Source/WebCore/platform/audio/Reverb.cpp:68 > + vsvesq(response->channel(i)->data(), 1, &power, length);
You need to pass in &channelPower instead of &power
> Source/WebCore/platform/audio/VectorMath.cpp:90 > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess)
nit: I'd use destP instead of dest to be consistent with the other functions
> Source/WebCore/platform/audio/VectorMath.cpp:92 > + vDSP_svesq(const_cast<float*>(sourceP), sourceStride, dest, framesToProcess);
Might need the #if defined(__ppc__) || defined(__i386__) work-around like the other functions...
> Source/WebCore/platform/audio/VectorMath.cpp:309 > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess);
nit: I'd use destP instead of dest to be consistent with the other functions
> Source/WebCore/platform/audio/VectorMath.h:40 > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess);
Simple comment describing what function does. consistency nit: dest -> destP
Jer Noble
Comment 3
2012-01-12 16:06:27 PST
(In reply to
comment #2
)
> (From update of
attachment 118916
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=118916&action=review
> > > Source/WebCore/platform/audio/Reverb.cpp:67 > > + float channelPower = 0.0; > > WebKit style: 0 instead of 0.0
Will change.
> > Source/WebCore/platform/audio/Reverb.cpp:68 > > + vsvesq(response->channel(i)->data(), 1, &power, length); > > You need to pass in &channelPower instead of &power
Whoops! Good catch.
> > Source/WebCore/platform/audio/VectorMath.cpp:90 > > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess) > > nit: I'd use destP instead of dest to be consistent with the other functions
How about "sumP"?
> > Source/WebCore/platform/audio/VectorMath.cpp:92 > > + vDSP_svesq(const_cast<float*>(sourceP), sourceStride, dest, framesToProcess); > > Might need the #if defined(__ppc__) || defined(__i386__) work-around like the other functions...
Nope, this is one of the functions not in vDSP_translate.h.
> > Source/WebCore/platform/audio/VectorMath.cpp:309 > > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess); > > nit: I'd use destP instead of dest to be consistent with the other functions
Ditto.
> > Source/WebCore/platform/audio/VectorMath.h:40 > > +void vsvesq(const float* sourceP, int sourceStride, float* dest, size_t framesToProcess); > > Simple comment describing what function does.
Sure thing.
> consistency nit: dest -> destP
Ditto.
Jer Noble
Comment 4
2012-01-12 16:08:06 PST
Created
attachment 122330
[details]
Patch
Chris Rogers
Comment 5
2012-01-12 17:06:28 PST
Looks ok to me, but it seems like your patch is not applying. You might need to update your source and re-upload a new patch. Ok with me once that's done and the bots pass. I'm not a reviewer so I can't R+
Jer Noble
Comment 6
2012-01-13 10:59:41 PST
Created
attachment 122462
[details]
Patch
WebKit Review Bot
Comment 7
2012-01-13 12:31:35 PST
Comment on
attachment 122462
[details]
Patch
Attachment 122462
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11236142
Jer Noble
Comment 8
2012-01-13 12:41:01 PST
Created
attachment 122480
[details]
Patch Fixed a compile error in the non-Darwin section of VectorMath.cpp.
Eric Carlson
Comment 9
2012-01-13 15:05:15 PST
Comment on
attachment 122480
[details]
Patch rs=me based on Chris' "unofficial" review
Jer Noble
Comment 10
2012-01-13 15:52:24 PST
Committed
r105004
: <
http://trac.webkit.org/changeset/105004
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug