jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 668 forks source link

Question about method "writeImageDesc" #83

Open LancerComet opened 6 years ago

LancerComet commented 6 years ago

Code in https://github.com/jnordberg/gif.js/blob/6258ac58ec2d0fca17921fb01211ca8bcc4e4bbb/src/GIFEncoder.js#L481

There is a "0x80" in first bit of packet fields in image descriptor, but I saw some reference say that this should be a "0" or "1".

Could you explain why it's 0x80 ? Much appreciated ☺