开发者

GIF data block formula

开发者 https://www.devze.com 2023-04-01 20:24 出处:网络
In the GIF specification here: http://www.w3.org/Graphics/GIF/spec-gif89a.txt It gives the clear-code formula of:

In the GIF specification here:

http://www.w3.org/Graphics/GIF/spec-gif89a.txt

It gives the clear-code formula of:

2** codesize

Mathematically speaking, what does the above formula mean?

Sorry, I had to re-open this question given that 2 to the power of 4 is apparently 8, but the example given in the GIF specification states 16 as the answer to their formula:

example if the code size indicated was 4 (image was 4 bits/pixel) the Clear code value would be 16 (10000 binary)开发者_StackOverflow社区.


It means 2 raised to the power of codesize. The ** notation for exponentiation comes from FORTRAN, I believe.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号