Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Progressive rendering of HEVC is not possible in the same way as it is done for JPEG or PNG. It is also not very suited to GPU rendering.

A C++ decoder with assembly optimizations could easily run four times as fast as the Javascript version. Unfortunately distributing it would not be possible due to patents.



Why would a C++ version have to worry about patents but the JS one does not?


They both have to worry, just a different person. For JS, it is the page author / publisher. For C++, it would be the browser vendor.


Four times? You can expect the C/C++ version (with some SIMD intrinsics) to run 10-30x faster than the JIT-optimized JS version.


There is also the overhead of using a canvas element as a render target instead of a normal image surface, and using the canvas API instead of just writing color values straight to a buffer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: