phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.3k stars 1.43k forks source link

Future parallelism #183

Open ssssssssssss opened 6 years ago

ssssssssssss commented 6 years ago

Dear @phoboslab , Thanks for this great project. To make the decoder more performant, there are a few areas to explore.

  1. Enable the web workers to offload the decodePicture works to another thread
  2. Break lum and chrom processing into different workers
  3. Port parts of decoding works to shaders? VP8 parallel decoding and Shader based vcodec

I'm no expert here, thus I'd like to know what's your opinion?

BTW, during sequence video playing, is it feasible to use the motion vectors to determine which 8*8 macroblock is actually changing and needs repaint? In that case, we can optimize a bit.

industriousonesoft commented 4 years ago

@ssssssssssss What a brilliant idea!