4 ms·
No APIs for hardware h.264 decoding? What, you haven't seen OpenCL? You can't write a GPU-accelerated video player? Mplayer's been GPU accelerated in h.264 (
by Groxx 17y ago
No APIs for hardware h.264 decoding? What, you haven't seen OpenCL? You can't write a GPU-accelerated video player? Mplayer's been GPU accelerated in h.264 (well, x.264) for a relatively long time, on both Linux and OSX. Are you saying a behemoth like Adobe can't learn a trick or two from someone else?
There's no excuse for Flash to be so bad.
edit: for a better, in-browser example, tried Unity lately? In-browser GPU accelerated 3D graphics. And it's never crashed any of my systems, in any browser. ( personal favorite: http://blurst.com/ http://blurst.com/ )
edit again: hah, check this out. Note the "helloracer.com" link in the top article, and that Unity works on the iPhone. http://drawlogic.com/category/unity3d/ http://drawlogic.com/category/unity3d/
- sandGorgon 17y agoI did'nt know about this, but +1 to you. It would be interesting if this could be brought to Gruber and/or Adobe's attention.
- zyb09 17y agoI think you can't access them as a browser plugin though.
- bonaldi 17y agoIt's also a total canard: hardware decoding is virtually brand-new in Flash. I think it only came with 10.1, right? But the performance problem and disparities have been around for much, much longer. With things like version 9, Adobe were much more upfront. There was a puff blog touting how 9 was much faster on the Mac because they were no longer doing some ludicrously expensive font-checking in the middle of (what should have been) very tight loops. Which do you buy: Adobe can't make Flash reasonable on the Mac because of mean ol' Apple, or they choose not to because of (understandable, given how Apple treats them on things like Carbon) institutional bias towards Windows and a nasty, hairy codebase?
- vetinari 17y agoSorry, but OpenCL is not API for hardware H.264 decoding as we know it on other platforms. Yes, OpenCL allows you to run code on GPU, but that's where it ends. It is no match to DXVA in Windows or VA-API/VDPAU in Linux, which allows you using the silicon dedicated to decoding MPEG-2/4 ASP/4 AVC/VC-1. There is no equivalent to these APIs in OSX.
- Groxx 17y agoWhich still leaves the ability to speed up h.264 / video in general with GPU rendering, which is far more optimized for it than your CPU. It's not ideal, but it's significantly better than nothing. Granted, it's not "true" h.264 hardware decoding, but it's better than pure-CPU-through-Flash, and as far as I can tell they have yet to take advantage of it, and have been exceptionally late to the game no matter what.
- vetinari 17y agoThat's difficult to say without benchmarking. Yes, you can offload some computations to GPU (you certainly are not going to parse the bitstream or VLD decode using shader programs), but do you get net gain, when you are shuffling buffers over PCI-E? You also limit your target audience to NVidia 9400 and up when talking about OSX, basically telling the Macbook users with Intel graphic cards, that they do not need to apply (Intel 3100 and 4500 are perfectly capable of decoding H.264 and VC-1, just not through shaders).