Hello Andrew,
I've looked into this before, but it seems quite a bit of work to make the
encoder functions re-entrant.
The main problem are the static variables, which are all over the place. The
easiest way (I think) is to wrapp them all in a big structure and pass a
pointer to this structure to the different function. This would be a good
start to be at least able to process multiple streams. However, to split the
code in multiple threads would be far more difficult (I think), since
results of the different encoding stages are depending on each other. Did
somebody else looked did already made an attempt to make it re-entrant for
multiple streams or make it multi threading?
Albert.


-----Original Message-----
From: Andrew Coles <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Sunday, May 16, 1999 12:16 AM
Subject: [MP3 ENCODER] Making LAME multi-threaded


>How feasable would it be to make LAME multi-threaded?
>
>If this was done then it would also support multiple processors (assuming
>the correct threads library was used) which would provide a significant
>speed increase on multi-processor machines.
>
>Just a thought. Any comments?
>
>Andrew
>
>--
>MP3 ENCODER mailing list

--
MP3 ENCODER mailing list

Reply via email to