EloiStree / 2019_09_19_MathCompressionOfImage

Experiment of image compression by using math for Unity in aim to stream from GPU the image through Wifi
1 stars 0 forks source link

Question: What would happen if we use a base (4 bytes) :) ? #10

Open EloiStree opened 4 years ago

EloiStree commented 4 years ago

image

1111 : 16 0.5|1+1
1111 1111 :16 x 16 =256 1|2+1
1111 1111 | 1111 1111 :256 x 256 = 65536 2|4+1
1111 1111 | 1111 1111 | 1111 1111 | 1111 1111 :65536 x 65536 = 4294967296 4|9+1

Log 4294967296 (18 446 744 073 709 551 616 8) = ? Answser: 130.828523929851

EloiStree commented 4 years ago

69396524931096244766567048633317779034165388135689192089529200058335701940045663751174602427533630346678309298038791752593996015298230966587203824769010550450454983864554699092364526537022891240076831328224465094115893662477860703277430788382759619905044479794078870628311366086208111522003764099048139462901640037870021540192495063656005483526319448731906019601168910125475501161762149285234290290688782111175431472425510258474207732641537394962512330542164607425666416340592736739918165475665651510

(500 lenght =250 bytes in binary vs 51*4bytes+1 byte =200

363399896(4294967296^51) + 4188890527(4294967296^50) + 2380489563(4294967296^49) + 1175508422(4294967296^48) + 4123160866(4294967296^47) + 230116743(4294967296^46) + 2233182442(4294967296^45) + 10766413(4294967296^44) + 1763854735(4294967296^43) + 1969525383(4294967296^42) + 2562887550(4294967296^41) + 117331698(4294967296^40) + 2324029276(4294967296^39) + 2692551042(4294967296^38) + 3137992348(4294967296^37) + 320387343(4294967296^36) + 3094978592(4294967296^35) + 2409114265(4294967296^34) + 812631470(4294967296^33) + 2453184514(4294967296^32) + 2854495737(4294967296^31) + 3073747427(4294967296^30) + 3345015093(4294967296^29) + 928856061(4294967296^28) + 3781643139(4294967296^27) + 904180053(4294967296^26) + 3101858135(4294967296^25) + 3609092849(4294967296^24) + 616556673(4294967296^23) + 3779112223(4294967296^22) + 2586909966(4294967296^21) + 3767589481(4294967296^20) + 2401170434(4294967296^19) + 848459563(4294967296^18) + 62818664(4294967296^17) + 1841784660(4294967296^16) + 1538885457(4294967296^15) + 2555759903(4294967296^14) + 1705159311(4294967296^13) + 1638177386(4294967296^12) + 1236352133(4294967296^11) + 510783957(4294967296^10) + 851815408(4294967296^9) + 95179909(4294967296^8) + 1666878354(4294967296^7) + 327786374(4294967296^6) + 3096625039(4294967296^5) + 3959038081(4294967296^4) + 1102670377(4294967296^3) + 726494855(4294967296^2) + 997237315*(4294967296^1) + 1606428470