Views: 20,069,160 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-27-24 02:59 PM |
Guest: |
0 users reading New lossy image format! | 1 bot |
Main - Computers and technology - New lossy image format! | Hide post layouts | New reply |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 71/345 EXP: 377088 Next: 27683 Since: 11-03-14 Last post: 1949 days ago Last view: 891 days ago |
I made a new lossy image format. For now, dimensions must be multiple of 4.
Compare: 2,359,296 bytes (Raw image) 393,220 bytes (My image) It uses 8 bytes per 4x4 pixel area. Format: Header: 02 Width 02 Height Data: 4x4 Block: 01 Red 1 01 Red 2 01 Green 1 01 Green 2 01 Blue 1 01 Blue 2 02 Walsh matrices to use (1 nybble per channel) The top-left 4x4 corner is what my format uses: Black in this picture means color 1, white means color 2. So, bitwise, its: 0000RRRRGGGGBBBB |
MercuryPenny |
| ||
Normal user Level: 53 Posts: 167/712 EXP: 1144103 Next: 13016 Since: 05-24-14 From: :mroF Last post: 1137 days ago Last view: 1136 days ago |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 2885/9020 EXP: 56283596 Next: 204048 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 72/345 EXP: 377088 Next: 27683 Since: 11-03-14 Last post: 1949 days ago Last view: 891 days ago |
Yeah, it's just an early alpha build. I came up with new specifications, and am working on the conversion code (there are still some bugs). Will be much better in the end, though. |
Jesse |
| ||
Member Normal user Level: 53 Posts: 472/688 EXP: 1125145 Next: 31974 Since: 09-05-13 Last post: 2380 days ago Last view: 1942 days ago |
and how exactly can windows understand these files? |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 2901/9020 EXP: 56283596 Next: 204048 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
> 02 Walsh matrices to use (1 nybble per channel)
So I take it you use 4 bytes per channel, that is, 12 bytes. If you add one bit per channel, you'll be able to use more matrice types without needing more space. Also, your example image isn't a very good example given the compression method you're employing. Your format would work best for photographs. (for something like the drawing you used, a paletted format with an appropriately sized palette and LZ77 type compression would be very efficient while preserving the image's quality) ____________________ NSMBHD - Kafuka - Jul melonDS the most fruity DS emulator there is zafkflzdasd |
Yoshimaster96 |
| ||
Member Normal user Level: 39 Posts: 76/345 EXP: 377088 Next: 27683 Since: 11-03-14 Last post: 1949 days ago Last view: 891 days ago |
Actually, it's 8 bytes per 4x4 area. Technically, I could double the amount of matrices, but I don't know what to put there. If I multiplied the number by 4, I'd get 64 8x8 matrices.
9 bytes could look like this: The following is split by nybble, so first entry is MSN1 MSN2, second entry is LSN1 LSN2: 01 Red 1 01 Red 2 01 Green 1 01 Green 2 01 Blue 1 01 Blue 2 The following is split by nybble, so entry is MSN matrix LSN matrix: 01 Red Matrix 01 Green Matrix 01 Blue Matrix |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 2905/9020 EXP: 56283596 Next: 204048 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
Main - Computers and technology - New lossy image format! | Hide post layouts | New reply |
Page rendered in 0.036 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 211/211, time: 0.010 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |