multithreaded vorbis encoding
Thomas Eschenbacher <[email protected]> Thu, 17 Nov 2011 19:33:55 +0100
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have some code that encodes PCM data into a vorbis stream, using the workflow shown in http://www.xiph.org/vorbis/doc/libvorbis/overview.html. By analyzing that process with valgrind/cachegrind I found out that 95% of the time used for encoding is spent in the function "vorbis_analysis(&vb, 0)". My question now is: would it be technically possible to parallelize this? I think about using multiple worker threads for the vorbis_analysis calls, especiall on multi core systems this would be a big benefit. => Are the blocks passed as "vb" independent from each other, so that I can encode them in parallel? regards, Thomas -- ______________________________________________________________________ Thomas Eschenbacher <[email protected]>