Feasible? GFX HW audio processing (OpenGL ES)
#1 Members - Reputation: 259
Posted 12 November 2012 - 10:30 AM
Say, is it feasible to attempt to speed up audio processing (like FFT and other DSP stuff) using the graphics hardware on such google Android devices which provide GFX hardware, using OpenGL ES?
I'd reckon one issue would be a botteneck in mem transfer between GFX chip and CPU, increasing latency - well that's my assumption - I have no experience yet with such devices or android.
Btw., I know audio playback in general has high latency on Android, but that's supposed to be fixed in 4.2, which would be what I'd target then.
- unshaven
save old not-yet-restored Opera recordings from rotting
#2 Moderators - Reputation: 7816
Posted 12 November 2012 - 10:56 AM
Then again, if you are only talking about future 4.2 devices, perhaps if you cherry-pick that one magical future device, it may be worth it. Who knows?
#3 Members - Reputation: 259
Posted 12 November 2012 - 11:41 AM
Probably not. I don't believe most devices have the same raw horsepower to make GPGPU programming worthwhile.
Then again, if you are only talking about future 4.2 devices, perhaps if you cherry-pick that one magical future device, it may be worth it. Who knows?
It will definitely be a "hand picked" device, it's not a project with the goal to support all devices on the planet. But there will also be other features influencing the picking.
save old not-yet-restored Opera recordings from rotting
#4 Members - Reputation: 2763
Posted 12 November 2012 - 12:38 PM
That said, I wonder how integrated the GPU is with memory... With very modern integrated graphics on PCs, its getting very close to the point where you don't have to move the data at all (though, you compete with the system for bandwidth and sometimes cache). I'm not sure whether SOCs are further behind or ahead in this respect.
#5 Members - Reputation: 282
Posted 12 November 2012 - 04:38 PM
I believe most of the mobile GPUs (PowerVR and Mali definitely) are based on tile rendering for memory and power (as in electric) efficiency, so reading stuff from back GPU memory would likely be inefficient in the extreme.
It is possible to do low latency audio (check out caustic http://singlecellsoftware.com/caustic) on the latest versions of ICS and seamless video playback on stock Android is possible if you are clever.
Example of NEON:
http://hilbert-space.de/?p=22
Info on NEON:
http://elinux.org/images/4/40/Elc2011_anderson_arm.pdf
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344d/DDI0344D_cortex_a8_r2p1_trm.pdf - See Chapter 13
http://en.wikipedia.org/wiki/ARM_architecture#Advanced_SIMD_.28NEON.29
Edited by PurpleAmethyst, 12 November 2012 - 04:39 PM.
#6 Members - Reputation: 3830
Posted 12 November 2012 - 07:06 PM
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.






