Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"04-30-13 - Packing Values in Bits - Flat Codes"

2 Comments -

1 – 2 of 2
Blogger Cyan said...

Taking your example, one could also note that 5 x 5 = 125 ~ 128 => 7 bits, so it becomes possible to use 7 bits to store 2 values.

Same for 3 :
3 x 3 x 3 = 27 ~ 32
or
3 x 3 x 3 x 3 x 3 = 243 ~ 256

Obviously it's not generic, and most probably not always practical.

Nonetheless, I think this method is used in some kind of texture compression format.

May 7, 2013 at 10:32 AM

Blogger cbloom said...

Yeah, that's a very useful general technique.

I used it in one of my LZ4 variants,
LZ4PLO-6*9*5 :

http://cbloomrants.blogspot.com/2012/10/10-22-12-lz-bytewise-conclusions.html

May 7, 2013 at 12:28 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.