Skip to content

Add sixel_decode_raw_rgba, fix decoding of high-color SIXEL's#2

Open
WSLUser wants to merge 1 commit intoWSLUser:masterfrom
libsixel:decode_rgba
Open

Add sixel_decode_raw_rgba, fix decoding of high-color SIXEL's#2
WSLUser wants to merge 1 commit intoWSLUser:masterfrom
libsixel:decode_rgba

Conversation

@WSLUser
Copy link
Copy Markdown
Owner

@WSLUser WSLUser commented Dec 14, 2021

Closes libsixel#15.
Closes libsixel#16.
Closes saitoha#149.
Closes saitoha#28.
Closes saitoha#61.

This PR fixes both problems at once. It does so by adding a new decode
function, and using it by default in img2sixel.

This function returns to the user RGBA data instead of palette'd data.
This sidesteps the many issues I found when considering raising the
maximum size of a palette to 255255255*255. For one thing, I already
knew I needed at some point for Kitty project something like this so I
wouldn't need to allocate my own, which is needless effort when the
decoder can do it.

This is ready for review. @dankamongmen may have time. I'll leave it for
a while as I go back to working on Kitty. If no one has time to review,
I'll merge it in ~4 days or so.

Closes #15.
Closes #16.
Closes saitoha#149.
Closes saitoha#28.
Closes saitoha#61.

This PR fixes both problems at once. It does so by adding a new decode
function, and using it by default in `img2sixel`.

This function returns to the user RGBA data instead of palette'd data.
This sidesteps the many issues I found when considering raising the
maximum size of a palette to 255*255*255*255. For one thing, I already
knew I needed at some point for Kitty project something like this so I
wouldn't need to allocate my own, which is needless effort when the
decoder can do it.

This is ready for review. @dankamongmen may have time. I'll leave it for
a while as I go back to working on Kitty. If no one has time to review,
I'll merge it in ~4 days or so.
@dankamongmen
Copy link
Copy Markdown

nice work! i'll take a look at it today or tomorrow.

@WSLUser
Copy link
Copy Markdown
Owner Author

WSLUser commented Jan 6, 2022

This is my own personal PR which I copied from the original with intent to get the conflicts resolved. Just haven't had chance to do so yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants